Precompiled SDL1.3 binaries for win/cross compiling

I know SDL1.3 is still in development, but is there any possibility of
precompiled binaries at this point? I am cross compiling for windows on
linux and just realized that my linker can’t find the library hehe…

  • Swyped from my droid.

I’m doing this to cross-compile on Ubuntu, and it works for me:On Wed, Apr 13, 2011 at 00:11, Jonathan Greig wrote:

I know SDL1.3 is still in development, but is there any possibility of
precompiled binaries at this point? I am cross compiling for windows on
linux and just realized that my linker can’t find the library hehe…


./autogen.sh
./configure --prefix="" --target=i586-mingw32msvc
–host=i586-mingw32msvc --build=i686-linux-gnu
make
make DESTDIR=pwd/xx/ install

Then just copy the files you need from the “xx” directory
I’m using the Ubuntu “mingw32” package to cross-compile.

Hope it helps,
~Nuno Lucas

  • Swyped from my droid.

Thank you very much. I successfully cross-compiled SDL1.3 using:

./autogen.sh
./configure --prefix=$HOME/.SDL1.3-WIN --target=i586-mingw32msvc
–host=i586-mingw32msvc --build=i686-linux-gnu
make
make install

but I get linker errors when trying to compile my app and try to dynamically
link -lSDL. The weird part is I can statically link just fine. I even tested the
statically linked .exe in a vanilla XP virtual machine and it worked fine.

Can you give me an example of how you cross-compile an app? Normally linker
errors aren’t a problem, but I’ve tried several variations with no luck linking
dynamically.

I link with the SDL DLL at runtime, so don’t really know how to help you.
I have a wrapper that links to SDL 1.2 or the new SDL 1.3 according with my
requirements, so I never actually tested dynamic linking.

There is a page on libsdl that may help you:
http://www.libsdl.org/extras/win32/cross/README.txt
This is the 3rd link on this page:
http://www.libsdl.org/extras/win32/gcc.html

Regards,
~Nuno LucasOn 04/13/2011 08:30 AM, Jonathan Greig wrote:

On Tue, Apr 12, 2011 at 6:57 PM, Nuno Lucas <@Nuno_Lucas mailto:Nuno_Lucas> wrote:

On Wed, Apr 13, 2011 at 00:11, Jonathan Greig <redteam316 at gmail.com <mailto:redteam316 at gmail.com>> wrote:
 > I know SDL1.3 is still in development, but is there any possibility of
 > precompiled binaries at this point? I am cross compiling for windows on
 > linux and just realized that my linker can't find the library hehe...

I'm doing this to cross-compile on Ubuntu, and it works for me:

---------------------------
./autogen.sh
./configure --prefix="" --target=i586-mingw32msvc
--host=i586-mingw32msvc --build=i686-linux-gnu
make
make DESTDIR=`pwd`/__xx__/ install
---------------------------

Then just copy the files you need from the "__xx__" directory
I'm using the Ubuntu "mingw32" package to cross-compile.


Hope it helps,
~Nuno Lucas

 >
 > - Swyped from my droid.