www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/11/11:59:56

Date: Tue, 11 May 1993 18:10:04 +0200
Conversion: Prohibited
From: <phc27 AT rz DOT uni-kiel DOT dbp DOT de>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: bcc2grx problem, ...

Hi Eirik,

it seems that getting BCC2GRX ruuning is a problem.

So here's a way I recommend :

0. DJGPP is installed

1. Install the LIBGRX package and check it.

   a. Unpack the cbgrx???.zip
   b. Set the environment variables
	 set GRXFONT=GCC/contrib/libgrx/fonts
	 set GRXDRV =GCC/contrib/libgrx/drivers/stdvga.grn ( <- or stdega.grn)
      where GCC is the home directory of djgpp. You may use GO32 instead of
      GRXDRV. See GCC/docs/readme for details.
   c. Check our installation by running
	   GCC\contrib\libgrx\drivers>go32 modetest
   d. if you succeded you can step on or install a special driver
      for your graphics hardware and go back to 1b

2. Install the BCC2GRX and check it

   a. Unpack the bccgrx??.zip   (please don't use bccgrx10.zip any more !)
   b. goto GCC/contrib/bcc2grx/test and say make (the makefile is set up
      for Borland Make 3.0, may need some changes with other makes)
   c. run bccbgi.exe

3. Set up BCC2GRX for your own programs

   a. Copy the GCC/contrib/bcc2grx/lib/libbcc.a to a directory in your
      LIBRARY_PATH or add GCC/contrib/bcc2grx/lib to LIBRARY_PATH.
   b. If you have LIBGRX 1.02 or earlier, replace the libgrx.a with the
      one from GCC/contrib/bcc2grx/lib.
      If you have LIBGRX 1.03 or newer, delete the libgrx coming with
      BCC2GRX. Note that you have to change the LGRX definition in
      test/makefile and tp2bcc/makefile !
   c. Copy the GCC/contrib/bcc2grx/include *subdir* to a directory in
      your C_INCLUDE_PATH or add GCC/contrib/bcc2grx/include to the
      ???_INCLUDE_PATH variables.

Now the BCC2GRX should be installed.

Some notes about initgraph() (from bcc2grx 1.1) :

  It's recommented to use something like the following code to init
  the graphics interface :

    int gd, gm;
    gd = DETECT;
    initgraph(&gd,&gm,PATH_TO_CHR_FILES);

  This code sets up the default graphics mode defined in the GRXDRV (or GO32)
  environment variable. If you need a special mode set by your program,
  you should call it running a .bat job :

     @echo off
     set GRXDRV = <special_driver> <special_mode>
     myprog.exe %1 %2 %3 ...

  If gd != DETECT on initgraph() then gm is used if it's inside the
  available moderange otherwise DETECT is assumed.

I admit that the readme isn't detailed enough in many parts ...

Hartmut





- Raw text -


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