Hi,
SDL looks nice but I can’t build it on my WinXP + cygwin
machine. Its a recent cygwin version with
$ gcc --version
gcc (GCC) 3.2 20020927 (prerelease)
I unpack the SDl-1.2.6 tarball then
./configure
make
and it goes on for a good while compiling the c files but then when
it builds the DLL I get
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/…/…/…/…/i686-pc-mingw32/bin/ld: .libs/l
ibSDL.lax/libhermes.al/mmxp2_32.lo: bad reloc address 0x87 in section .text' make[2]: *** [libSDL.la] Error 1 make[2]: Leaving directory
/tmp/SDL-1.2.6/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SDL-1.2.6/src’
make: *** [all-recursive] Error 1
I also notice that it uses the -mno-cygwin flag when compiling the C files.
Any hints on how to build it?
Regards,
Robert Feldt
This is another nasm.exe problem. The nasm.exe must have something wrong
with it in the recent Cygwin distributions.
Try the :
http://www.libsdl.org/extras/win32/cygwin/nasm.exe
I have yet to try it myself. The other fix (which I just responded to
another post) is to remove nasm.exe(or rename it), do a make clean,
reconfigure and run make again. I might be remembering incorrectly, but
you may also have to remove the config.cache.
~ Philip D.S. Thoren
Robert Feldt wrote:> Hi,
SDL looks nice but I can’t build it on my WinXP + cygwin
machine. Its a recent cygwin version with
$ gcc --version
gcc (GCC) 3.2 20020927 (prerelease)
I unpack the SDl-1.2.6 tarball then
./configure
make
and it goes on for a good while compiling the c files but then when
it builds the DLL I get
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/…/…/…/…/i686-pc-mingw32/bin/ld:
.libs/l
ibSDL.lax/libhermes.al/mmxp2_32.lo: bad reloc address 0x87 in section
.text' make[2]: *** [libSDL.la] Error 1 make[2]: Leaving directory
/tmp/SDL-1.2.6/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SDL-1.2.6/src’
make: *** [all-recursive] Error 1
I also notice that it uses the -mno-cygwin flag when compiling the C files.
Any hints on how to build it?
Regards,
Robert Feldt