Nicola Girardi wrote:
Hello all,
hi dear, i'm trying to get my old programs to work too, but i can't compile my sources.
please, could you tell me what i need to get to use the bgi2grx unit? i mean, which pkgs to download and compile, how to compile them (command line options)
please help me!
thanks in advance
-- Nicola Girardi a.k.a. nikke <girardi(at)keycomm.it>
Dear Nicola,
you need at least 3 packages: The grx graphics package, the bgi2grx package (translates Borland C graphics commands to grx) and bgi2grx (translates BP graph commands to Borland C).
The grx package consists of 3 files:
grx23.zip grx23fnt.zip grx23rme.fst
the latter describes how to unpack, compile and install the package.
bcc2grx and bgi2grx consist of 1 file each:
bccgrx20.zip bgi2grx.zip
Both grx and bcc2grx could be downloaded from every DJGPP distribution, which could be found on a great number of SimTel.NET mirrors. A list of these mirror sites could be found under FAQ no. 4 in
http://agnes.dida.physik.uni-essen.de/~gnu-pascal/djgppfaq.html
(For you cis.uniroma2.it would be interesting) There, you find the files in the folder:
/pub/simtelnet/gnu/djgpp/v2tk/
bgi2grx could be found somewhere else, e.g.
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/contrib/
Compilation of grx is straight forward and one can follow the instructions given in grx23rme.fst. I compiled a version with X11 support (makefile.x11). The only problem was, that I had to install some X11 include files, which were missed by the compiler.
Compilation of bcc2grx was a bit more complicated. Instructions could be found in the readme file. First you have to tell make which system you are using and which version of grx (grx20 is right) by uncommenting some lines in the makedefs file. Furtheron add . (the pwd) to your PATH, if this is not the case already, or alternatively change "BIN2C = bin2c$(EX)" to "BIN2C = ./bin2c$(EX)" in the ./src/makefile. Otherwise make stops, because it cannot find the command bin2c. The second small problem was, that gcc couldn't find the X11 libraries, needed for the compilation of the examples. Adding e.g. -L/usr/X11R6/lib (or whereever your X11 libs are) to CFLAGS = ... in the ./test/makefile should solve it.
bgi2grx contains only the Pascal unit bgi2grx.pas and needn't be compiled.
I hope you and other people who want to install bgi2grx under Linux, find these hints somehow usefull.
Don't hesitate to ask, if there are still some problems.
Peter
I hope you and other people who want to install bgi2grx under Linux, find these hints somehow usefull.
i think you've wasted a bit of time for me, but it really made things much clearer for me. now, i missed the bcc2grx... just downloaded bgi2grx as a pascal unit but never got bcc2grx.
now i think i'll get everything to work.
- finally linux version for NNibbles should work... ;)