Crosscompiling with tdragon's gcc
Moderator: Moderators
Crosscompiling with tdragon's gcc
Found this little gem during the weekend: http://www.profv.de/mingw_cross_env/. After dropping the author an email, he said he always wanted a more recent gcc, but didn't know about tdragon's, so the day after support was there. Installation: untar, make, done (it downloads sources itself), and it even crosscompiles boost! (for tdragon support you need to grab hg clone, it's not released yet.)
Re: Crosscompiling with tdragon's gcc
hmm.. this is usefull for unix distors with poor packaging systems, or simply no mingw packages by default?
or what would be good for us, about this?
or what would be good for us, about this?
Re: Crosscompiling with tdragon's gcc
we can have a gcc that doesn't suck, need to poke bibim when he's back.
Re: Crosscompiling with tdragon's gcc
so we would have a better MinGW. like.. later version, more gcc like/compatible... things like that?
Re: Crosscompiling with tdragon's gcc
yeah, my main interest is debug symbols that actually work with gdb, but the optimizer improvements are worth it too, imho.
edit: i finished the spring crosscompilation and it works flawlessly. scons script for future reference:
would've used cmake but no idea how to force crosscompilation there ^^
edit: i finished the spring crosscompilation and it works flawlessly. scons script for future reference:
Code: Select all
#!/bin/sh
#sconscross.sh
export MINGDIR=$HOME/usr/mingw_cross_env/usr/
export CC=$HOME/usr/mingw_cross_env/usr/bin/i386-mingw32msvc-gcc
export CXX=$HOME/usr/mingw_cross_env/usr/bin/i386-mingw32msvc-g++
export AR=$HOME/usr/mingw_cross_env/usr/bin/i386-mingw32msvc-ar
export RANLIB=$HOME/usr/mingw_cross_env/usr/bin/i386-mingw32msvc-ranlib
scons $* platform=windows
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Crosscompiling with tdragon's gcc
You could have checked the wiki:imbaczek wrote:would've used cmake but no idea how to force crosscompilation there ^^
wiki wrote:# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)
# which compilers to use for C and C++
SET(CMAKE_C_COMPILER i686-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i686-mingw32-g++)
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH /usr/i686-mingw32)
SET(MINGWLIBS /home/karl/spring/mingwlibs_v12)
Code: Select all
Pass this with "-DCMAKE_TOOLCHAIN_FILE=/your/toolchain/file" to cmake or select it in the gui to make a cross-compilation.
Re: Crosscompiling with tdragon's gcc
was looking in cmake docs, dunno what i missed, but it doesn't matter; it works and that's ok.
also, it doesn't crash like the builds from buildserv.
also, it doesn't crash like the builds from buildserv.
Re: Crosscompiling with tdragon's gcc
Do we have working buildbot yet? Or a binary for Windows?
Re: Crosscompiling with tdragon's gcc
i compiled one using my own crosscompiling setup, here it is: http://www.darkstars.co.uk/downloads/vi ... 136ac0.zip
seems to work fine.
seems to work fine.
Re: Crosscompiling with tdragon's gcc
Thanks so much, that will be veeeeeery useful.
Re: Crosscompiling with tdragon's gcc
Says it can't run, something about boost_thread-mgw43-mt-1_36.dll... crap.
Re: Crosscompiling with tdragon's gcc
forgot a dll. lemme see...
Re: Crosscompiling with tdragon's gcc
Sorry to be such a pain, I've just been dying to get a current build running...
Re: Crosscompiling with tdragon's gcc
these are the missing dlls: http://www.darkstars.co.uk/downloads/vi ... ost136.zip
Last edited by imbaczek on 04 Feb 2009, 14:30, edited 1 time in total.
Re: Crosscompiling with tdragon's gcc
Doesnt #buildserv offer the latest binaries as well? I recall it doing so.Argh wrote:Do we have working buildbot yet? Or a binary for Windows?
Also, if you wanna compile it on windows with vs2005, shoot me a pm.
Re: Crosscompiling with tdragon's gcc
the problem is buildserv's binaries are broken for quite some time now.
Re: Crosscompiling with tdragon's gcc
why iam i trying to get my branch running on buildserv then!?!?
BIBIM!!!!!!!!!!!!!!!
BIBIM!!!!!!!!!!!!!!!
Re: Crosscompiling with tdragon's gcc
your branch may be fine as you didn't merge master for quite some time. compiling works, btw ;p
Re: Crosscompiling with tdragon's gcc
It's working over here. Horrible graphics errors with the trees and other issues, but I'll live.
Re: Crosscompiling with tdragon's gcc
screenshots, screenshots, screenshots!