Cross compiling SDL failing

Hi all,

I’ve followed the directions from http://www.libsdl.org/Xmingw32/ to
setup a cross compiler in linux. I have everything working but linking
SDL with the windows libraries keeps failing.

Then later on it complains about undefined references to
functions/variables from the windows libraries. I’m not sure what to do
now. I used the cross-configure.sh and cross-make.sh scripts from the
webpage also.

BTW, I thought in eariler versions of SDL you were able to build it
without the windib driver. I don’t see any configure option that
disables this in the newest CVS (as of 11 Mar).

Thanks,

  • David

Here is an excerpt from the link:

/bin/sh …/libtool --mode=link gcc -g -O2 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -I…/src/video/wincommon -DENABLE_WINDIB
-DENABLE_DIRECTX -DUSE_ASMBLIT -I./hermes -I…/src/hermes -I…/include
-I…/include/SDL -I…/src -I…/src/win32 -I…/src/main -I…/src/audio
-I…/src/video -I…/src/video/XFree86/extensions -I…/src/events
-I…/src/joystick -I…/src/cdrom -I…/src/thread -I…/src/timer
-I…/src/endian -I…/src/file -o libSDL.la -rpath
/usr/local/cross-tools/i386-mingw32msvc/lib -release 1.2
-version-info 0:4:0 SDL.lo SDL_error.lo SDL_fatal.lo SDL_getenv.lo
SDL_loadso.lo main/libarch.la
audio/libaudio.la video/libvideo.la events/libevents.la
joystick/libjoystick.la cdrom/libcdrom.la thread/libthread.la
timer/libtimer.la endian/libendian.la file/libfile.la
hermes/libhermes.la -luser32 -lgdi32 -lwinmm -ldxguid
rm -fr .libs/libSDL.la .libs/libSDL.* .libs/libSDL-1.2.*

*** Warning: This library needs some functionality provided by -luser32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lgdi32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lwinmm.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -ldxguid.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.