[sdlsound] Cross-compiling?

Andreas Umbach marvin at cyclops.webvision.ch
Tue Apr 16 09:40:41 EDT 2002


> > Has anybody attempted to cross-compile SDL_sound and some of it's support
> > libs yet?
> 
> I just made a very quick attempt. Read below.
>
> .....
>
> Running cross-make.sh, I got a clean build, but it refused to link without
> a win32 version of SDL installed (which I didn't have).
> 
> In short, with the right libraries available, this probably works, and the
> base library and built-in decoders seem to build.

I tried this, and at first configure refused to build shared libraries.
After adding AC_LIBTOOL_WIN32_DLL to configure.in I get the following:

/bin/sh ./libtool --mode=link i386-mingw32msvc-gcc  -g -O0 -Werror -I/usr/local/cross-tools/i386-mingw32msvc/include -I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main  -o libSDL_sound.la -rpath /usr/local/cross-tools/i386-mingw32msvc/lib -release 0.1          -version-info 5:0:0 SDL_sound.lo extra_rwops.lo audio_convert.lo decoders/libdecoders.la                decoders/timidity/libtimidity.la decoders/mpglib/libmpglib.la -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -mwindows
./libtool: test: =: unary operator expected
./libtool: test: !=: unary operator expected
./libtool: test: !=: unary operator expected
./libtool: test: =: unary operator expected
./libtool: test: !=: unary operator expected
./libtool: test: !=: unary operator expected
libtool: link: warning: undefined symbols not allowed in i386-pc-mingw32msvc shared libraries

And after that, cross-make.sh complete, but no shared libraries are built.

Any idea how to get this to work?

- Andreas



More information about the sdlsound mailing list