On 3 Apr 2004 at 21:48, Maurice Lombardi wrote:
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
Tried all that. Still no show (XP dos box).
"Mingw:D:\src\grx246\src>mingw32-make -f makefile.w32 if exist ..\lib\win32\libgrx20.a del ..\lib\win32\libgrx20.a exist: -c: line 2: syntax error: unexpected end of file mingw32-make: *** [../lib/win32/libgrx20.a] Error 258"
(and changing back slashes to front slashes doesn't help).
Here's stuff from my environment:
C_INCLUDE_PATH=d:\mingw\include GPC_UNIT_PATH=d:\gpc\obj;d:\gpc\sys;d:\gpc\winapi;d:\gpc\win32 LIBRARY_PATH=d:\mingw\lib;d:\usr\lib OS=Windows_NT Path=d:\mingw\bin;d:\msys\1.0\bin [.....]
And it doesn't work in a Win95 dos box either.
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.
Yes, I am not using configure - just a tweaked makefile (which I have now sent to the GRX maintainers). Configure is not really needed here. If one has MSYS or Cygwin installed, the new makefile will work.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/