Prof A Olowofoyeku (The African Chief) a écrit:
On 3 Apr 2004 at 16:42, Maurice Lombardi wrote:
[...]
Actually, that won't help him very much. He would first need to build GRX for Mingw. The makefile.w32 in the GRX package does not work (for one thing, all the "if exist ..." lines fail miserably, both under command.com and any other shell).
in fact it works under command.com, but you need to use mingw32-make instead of make, and set your DOS box parameters so that it sees only mingw and not msys.
Tried all that. Didn't work here - either under Win95 or XP.
Just retried to be sure (W98 dos box) mingw is set up with the following batch file:
REM ***** sample batch file to set up Mingw ***** rem without msys but with local rem where are the graphical libraries libpng.a etc, rem taken from https://sourceforge.net/projects/mingwrep/ rem and which do not depend on msys.dll (bad choice of location !!!) rem set prompt=MinGW: $p$g set PATH=c:\msys\1.0\local\bin;c:\MinGW\bin;c:\windows;c:\windows\command set LIBRARY_PATH=c:\msys\1.0\local\lib set C_INCLUDE_PATH=c:\msys\1.0\local\include set HOME=c:\lombardi\mingw32
grx246s was extracted in a temp directory (below my home), outside of mingw and msys trees
manual editing of makefile.grx, grx.pas, graph.pas.
then type
mingw32-make -f makefile.w32
The only correction was to eliminate --gpc-main=GRXMain in the two makefile.w32 under the pascal directory.
Anyway the msys solution is better. It would enable to run configure instead of manually editing the files. But configure has not yet the mingw target included.
Maurice