Marek Szczęsny a écrit:
I'm trying to install grx247
You should try the latest grx248 instead, but the problem is not there on Mac Apple with the system leopard
Mac OS X 10.5.4 (9E17) Darwin 9.4.0 and gcc version i686-apple-darwin9-gcc-4.0.1
Nobody I know has tried a Mac, and I have none at hand to check. But I would be interested to correct grx to make it work, if you make the checks
I tried use your makefile for linux and x11, but it doesn't work. During the installation there is the following problem
In file included from ./include/libgrx.h:39, from draw/bitblt.c:19: ../include/grx20.h:118:2: error: #error GRX is not supported on your COMPILER/CPU/OPERATING SYSTEM!
The file include/grx20.h defines at the beginning GRX_VERSION to be one of the supported systems. Yours should correspond to GRX_VERSION_GCC_386_X11, or GRX_VERSION_GENERIC_X11. The first is in principle faster because it does some very inner tasks in assembly, knowing the compiler. To select the correct version, grx20 uses some predefined symbols like __DJGPP__ __linux__ __i386__ __WIN32__ etc, which characterizes the COMPILER/CPU/OPERATING SYSTEM If you have no idea about that, compile a hello.c program with
gcc -E -dM hello.c > hello.defs and send the resulting hello.defs file here
As an example with djgpp/gcc 4.3.1 I obtain a file which contains among others
#define __GO32 1 #define __DBL_MIN_EXP__ (-1021) ... #define __CHAR_BIT__ 8 ... #define __unix__ 1 ... #define __unix 1 ... #define __DJGPP 2 ... #define __SIZEOF_INT__ 4 #define __SIZEOF_POINTER__ 4 ... #define __MSDOS__ 1 ... #define __DJGPP__ 2 #define __SIZEOF_LONG__ 4 ... #define __GNUC__ 4 ... #define __SIZEOF_LONG_DOUBLE__ 12 ... #define __tune_i586__ 1 ... #define __DJGPP_MINOR__ 4 ... #define __GO32__ 1 ... #define GO32 1 #define DJGPP_MINOR 4 ... #define MSDOS 1 ... #define __i386 1 ... #define unix 1 #define __i386__ 1 ... #define __tune_pentium__ 1 ... #define __MSDOS 1 .... #define __SIZEOF_DOUBLE__ 8 ... #define i386 1 ... #define __GNUC_MINOR__ 3 ... #define __DJGPP_MINOR 4 ... #define __SIZEOF_LONG_LONG__ 8 ... With this in hand I can give you a patch to try.
In file included from ./include/libgrx.h:39, from draw/bitblt.c:19: ../include/grx20.h:332: warning: no semicolon at end of struct or union ../include/grx20.h:332: error: syntax error before ‘*’ token ../include/grx20.h:343: error: syntax error before ‘}’ token ../include/grx20.h:363: error: syntax error before ‘*’ token
All these are spurious, produced by GRX_VERSION being undefined.
Maurice