ANNOUNCE: New cross compile libs

For those who want to be able to cross compile SDL apps which
use additional libraries, I’ve posted a new crossgcc page with
more instructions, files, and binaries.

The significant change with these binaries versus the ones at
slothmud.org is that the DLLs link to msvcrt instead of crtdll,
and were compiled with GCC 2.95.2.

The files are currently at:

http://www.newimage.com/~rhk/crossgcc/

And hopefully when Sam gets time he will move them to libsdl.org,
since my site is only 64K ISDN :slight_smile:

Have fun!

-Ray

For those who want to be able to cross compile SDL apps which
use additional libraries, I’ve posted a new crossgcc page with
more instructions, files, and binaries.

The significant change with these binaries versus the ones at
slothmud.org is that the DLLs link to msvcrt instead of crtdll,
and were compiled with GCC 2.95.2.

The files are currently at:

http://www.newimage.com/~rhk/crossgcc/

And hopefully when Sam gets time he will move them to libsdl.org,
since my site is only 64K ISDN :slight_smile:

They are already there:
http://www.libsdl.org/Xmingw32/

The prebuilt libraries are not there yet, but I’ll add them when I
get back from LinuxWorld.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Ray Kelm wrote:

For those who want to be able to cross compile SDL apps which
use additional libraries, I’ve posted a new crossgcc page with
more instructions, files, and binaries.

The significant change with these binaries versus the ones at
slothmud.org is that the DLLs link to msvcrt instead of crtdll,
and were compiled with GCC 2.95.2.

The files are currently at:

http://www.newimage.com/~rhk/crossgcc/

the script ran perfectly but when i use g+±cross with my usual flags i
get the error:

/usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95.2/…/…/…/…/i386-mingw32msvc/bin/ld:
cannot find -lpthread

could it come from the fact i tried to install a cross compiler with the
elder script (that used to be on the libsdl.org web page)
and anyhow what should i do ?

thanks a lot !–


Hi, I’m a signature virus. plz set me as your signature and help me
spread
:slight_smile:


trias sylvain wrote:

Ray Kelm wrote:

For those who want to be able to cross compile SDL apps which
use additional libraries, I’ve posted a new crossgcc page with
more instructions, files, and binaries.

The significant change with these binaries versus the ones at
slothmud.org is that the DLLs link to msvcrt instead of crtdll,
and were compiled with GCC 2.95.2.

The files are currently at:

http://www.newimage.com/~rhk/crossgcc/

the script ran perfectly but when i use g+±cross with my usual flags i
get the error:

/usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95.2/…/…/…/…/i386-mingw32msvc/bin/ld:
cannot find -lpthread

could it come from the fact i tried to install a cross compiler with the
elder script (that used to be on the libsdl.org web page)
and anyhow what should i do ?

thanks a lot !


Hi, I’m a signature virus. plz set me as your signature and help me
spread
:slight_smile:


Unless you’ve installed the port of the pthread library, it doesn’t
exist for win32. My guess is that the code you are compiling was
not configured correctly for win32 cross compiling. This could be
because the target name has changed from i386-mingw32 to
i386-mingw32msvc, to reflect the fact that it is linked to msvcrt
instead of crtdll.

Often the target string is used to determine which libs to link, and
it’s possible that your configure script (or whatever is your
equivalent), is looking for exactly “i386-mingw32” instead of
perhaps “i386-mingw32*”.

Unless you’ve installed the port of the pthread library, it doesn’t
exist for win32. My guess is that the code you are compiling was
not configured correctly for win32 cross compiling. This could be
because the target name has changed from i386-mingw32 to
i386-mingw32msvc, to reflect the fact that it is linked to msvcrt
instead of crtdll.

Often the target string is used to determine which libs to link, and
it’s possible that your configure script (or whatever is your
equivalent), is looking for exactly “i386-mingw32” instead of
perhaps “i386-mingw32*”.

An easy way to make sure that you have the right cross-compiling
environment is to use the cross-configure.sh and cross-make.sh scripts
on the website:
http://www.libsdl.org/Xmingw32/

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software