From: John F. Fay Date: Sun, 5 Feb 2012 19:36:27 +0000 (+0000) Subject: Adding a bit of documentation for MinGW that was left off the previous SVN commit X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=1f0a09b0b68542b61e03832a43bdf781a16ac4ad;p=freeglut Adding a bit of documentation for MinGW that was left off the previous SVN commit git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1071 7f0cb862-5218-0410-a997-914c9d46530a --- 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.