delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/05/14:40:16

Date: Mon, 5 Dec 94 09:07:49 EDT
From: acmq AT alpha (Antonio Carlos Moreirao de Queiroz)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: xview-pc & bcc2grx problem
Cc: jerry AT jvdsys DOT textlitho DOT nl

Jerry van Dijk writes:

> 	- Does xview-pc actually work with djgpp 1.12m2, grx103m1
> 	  and bcc2grx ?

Actually, I didn't try it with djgpp 1.12m2. The version in the
distribution file was generated with djgpp 1.11m5. But you
compiled the example with 1.12m5, and it produced the expected
result (black text in black background). So, it works.

> 	- Is there another X-like windows library I could use

I know of xlibemu and SUIT, but have no experience with them.

> 	I downloaded xview from oak.oakland.edu (xv_pc17.zip) and
> 	tried the (C) test program. Unfortunatly, it displayed all
> 	text black on black :-(

Expected. My documentation should say the this always occur...

> 	The documentation mentions this and says its a bug in bcc2grx
> 	and gives instructions to change the bcc2grx code. However, in
> 	bcc2grx this bug is already fixed. 

The source code is correct, but the compiled library isn't. 

> 	Then I decided to recompile bcc2grx, just to make sure. What 
> 	happened was:
> 
> 	| gcc -O2 -fomit-frame-pointer -Wall -I../INCLUDE -c bccgrx.c

What the documentation says is to recompile the module bccgrx06.c:
Recompile the module (bccgrx06.c) and substitute it in the "libbcc.a" library
with the commands (supposing all the files in the same directory):
    gcc -O2 bccgrx06.c -c
    ar -r libbcc.a bccgrx06.o

I am not sure if this will work with 1.12m2. The last resource is to
correct directly the compiled program that is printing black over black:

 - Load the compiled program in a binary editor.
  - Search for the sequence: C7 05 EC B8 01 00 00 00 01 00
  - Change to:               C7 05 EC B8 01 00 00 00 00 01
  - Save the changed program.

I will recompile the interface with 1.12m2 and test it.

Antonio Carlos Moreirao de Queiroz
COPPE - Programa de Engenharia Eletrica
Universidade Federal do Rio de Janeiro
CP 68504
21945-970 Rio de Janeiro, RJ, Brazil
Tel: 55-21-260-5010
Fax: 55-21-290-6626
E-mail: acmq AT coe DOT ufrj DOT br



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019