X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=README.mingw_cross;fp=README.mingw_cross;h=63eb435bb10ec0eb472e0ec026856f94978fa10a;hb=1f0a09b0b68542b61e03832a43bdf781a16ac4ad;hp=0000000000000000000000000000000000000000;hpb=e59890049071ca17cc97c0bcd08da2dc31ece38d;p=freeglut diff --git a/README.mingw_cross b/README.mingw_cross new file mode 100644 index 0000000..63eb435 --- /dev/null +++ b/README.mingw_cross @@ -0,0 +1,24 @@ +Cross-compilation from GNU/Linux (static and shared DLL) +======================================================== + +Install MinGW32 and prepare FreeGLUT on Debian/Ubuntu: + + apt-get install mingw32 + ./configure --host=i586-mingw32msvc --prefix=/freeglut + +Install MinGW32 and prepare FreeGLUT on Fedora: + + yum install mingw32-gcc + ./configure --host=i686-pc-mingw32 --prefix=/freeglut + +Cross-compile! + + make + make install DESTDIR=$(pwd) + +Everything is in the new freeglut/ directory. +The .dll is in the freeglut/bin/. + + +Compilation of your own programs is done as usual. +See README.cygwin_mingw for details.