README.mingw_cross: Clarify + remove autotools instructions since autotools support was removed
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1329 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
ef625ea1a3
commit
45daf31758
@ -3,16 +3,16 @@ Cross-compilation from GNU/Linux (static and shared DLL)
|
|||||||
|
|
||||||
Install MinGW, and specify which MinGW you're using:
|
Install MinGW, and specify which MinGW you're using:
|
||||||
|
|
||||||
- on Debian/Ubuntu, mingw-w64, 32-bit executables:
|
|
||||||
|
|
||||||
apt-get install mingw-w64
|
|
||||||
GNU_HOST=i686-w64-mingw32
|
|
||||||
|
|
||||||
- on Debian/Ubuntu, mingw-w64, 64-bit executables:
|
- on Debian/Ubuntu, mingw-w64, 64-bit executables:
|
||||||
|
|
||||||
apt-get install mingw-w64
|
apt-get install mingw-w64
|
||||||
GNU_HOST=x86_64-w64-mingw32
|
GNU_HOST=x86_64-w64-mingw32
|
||||||
|
|
||||||
|
- on Debian/Ubuntu, mingw-w64, 32-bit executables:
|
||||||
|
|
||||||
|
apt-get install mingw-w64
|
||||||
|
GNU_HOST=i686-w64-mingw32
|
||||||
|
|
||||||
- on Fedora, mingw32, 32-bit executables:
|
- on Fedora, mingw32, 32-bit executables:
|
||||||
|
|
||||||
yum install mingw32-gcc
|
yum install mingw32-gcc
|
||||||
@ -24,29 +24,17 @@ Install MinGW, and specify which MinGW you're using:
|
|||||||
GNU_HOST=i586-mingw32msvc
|
GNU_HOST=i586-mingw32msvc
|
||||||
|
|
||||||
|
|
||||||
With the GNU Autotools
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
Cross-compile with:
|
|
||||||
|
|
||||||
./configure --host=$GNU_HOST --prefix=/freeglut
|
|
||||||
make -j4
|
|
||||||
make install DESTDIR=$(pwd)
|
|
||||||
|
|
||||||
Everything is now in the new 'freeglut/' directory.
|
|
||||||
The .dll is in 'freeglut/bin/'.
|
|
||||||
|
|
||||||
|
|
||||||
With CMake
|
With CMake
|
||||||
----------
|
----------
|
||||||
|
|
||||||
Cross-compile with:
|
Cross-compile with:
|
||||||
|
|
||||||
|
mkdir cross-woe/ && cd cross-woe/
|
||||||
cmake \
|
cmake \
|
||||||
-D GNU_HOST=$GNU_HOST \
|
-D GNU_HOST=$GNU_HOST \
|
||||||
-D CMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake \
|
-D CMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake \
|
||||||
-D CMAKE_INSTALL_PREFIX=/freeglut \
|
-D CMAKE_INSTALL_PREFIX=/freeglut \
|
||||||
.
|
..
|
||||||
make -j4
|
make -j4
|
||||||
make install DESTDIR=$(pwd)
|
make install DESTDIR=$(pwd)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user