Created
March 23, 2011 13:13
-
-
Save Jessidhia/883069 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install development versions of gmp, mpfr, mpclib on the build system | |
(installing libmpc-dev on debian-based pulls all needed libraries) | |
alternatively also install ppl and cloog-ppl (libcloog-ppl-dev on debian-based) | |
sources for all of the above can be found in http://mirrors-us.seosue.com/gcc/infrastructure/ | |
get binutils, gcc-core, gcc-g++, mingwrt, w32api | |
extract all | |
ln -s w32api-*/ w32api # "w32api" symlink to the extracted dir; needed by mingwrt's compilation | |
# you can alternatively just rename the folder | |
build binutils with ./configure --target=i686-mingw32 --prefix=/usr | |
# NOTE: it *has* to be built from outside due to build system bugs that upstream refuses to fix | |
# NOTE: the --disable-shared --enable-static *are* mandatory here; lack of them will cause a linking error | |
mkdir gccbuild | |
cd gccbuild | |
configure gcc with /path/to/extracted/gcc/configure --target=i686-mingw32 --prefix=/usr \ | |
--enable-languages=c --disable-shared --enable-static | |
install gcc with make && make install | |
APPLY http://oss.netfarm.it/mplayer/misc/mingwrt_file64.diff to mingwrt | |
# copy all header files to the system include dir | |
mkdir /usr/i686-mingw32/include | |
cp w32api/include/* mingwrt*/include/* /usr/i686-mingw32/include/ | |
install w32api with ./configure --prefix=/usr/i686-mingw32 --host=i686-mingw32 | |
install mingwrt with ./configure --prefix=/usr/i686-mingw32 --host=i686-mingw32 | |
# TODO: check if building mingwrt before w32api 1) works, 2) eliminates the header copy step | |
reconfigure, rebuild and reinstall gcc with --enable-languages=c,c++ | |
*ALL* packages other than gcc and binutils need to be installed with | |
--prefix=/usr/i686-mingw32 --host=i686-mingw32 | |
Add "--disable-shared --enable-static" as desired :) | |
DIRECTX: | |
get all .h from http://git.gnome.org/browse/ekiga/tree/win32/directx/ | |
put in /usr/i686-mingw32/include/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment