forked from Mirrors/openclonk
Mingw: Fix the instructions to actually work
Also provide a autogen.sh file to work around a bug of msys autoreconf.stable-5.2
parent
71dd7d454b
commit
698840e082
|
@ -10,28 +10,25 @@ You can build on Windows using either:
|
||||||
* MinGW and MSYS
|
* MinGW and MSYS
|
||||||
plus DXSDK 9 (if you want DirectX support)
|
plus DXSDK 9 (if you want DirectX support)
|
||||||
|
|
||||||
NoNetwork
|
|
||||||
=========
|
|
||||||
|
|
||||||
If you are using the public source package, will be able to build
|
|
||||||
the "NoNetwork" configurations only.
|
|
||||||
|
|
||||||
|
|
||||||
Notes for MinGW
|
Notes for MinGW
|
||||||
===============
|
===============
|
||||||
|
|
||||||
You need gcc, g++, mingw-runtime, w32api, msys, msyscore, autoconf, automake, and any packages needed by these.
|
You need gcc, g++, mingw-runtime, w32api, msys, msyscore, autoconf, automake,
|
||||||
These versions are known to work, though newer versions are probably also good.
|
and any packages needed by these. The versions listed below are known to work,
|
||||||
|
though newer versions are probably also good.
|
||||||
|
|
||||||
http://sourceforge.net/project/downloading.php?group_id=200665&filename=tdm-mingw-1.905.0-webdl.exe&a=64029035
|
http://sourceforge.net/project/downloading.php?group_id=200665&filename=tdm-mingw-1.905.0-webdl.exe&a=64029035
|
||||||
(from http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238465)
|
(from http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238465)
|
||||||
(see also http://www.tdragon.net/recentgcc/)
|
(see also http://www.tdragon.net/recentgcc/)
|
||||||
- The default options work. Use an installation path without spaces to be on the save side.
|
- The default options work. Use an installation path without spaces to be on
|
||||||
|
the save side.
|
||||||
|
|
||||||
http://sourceforge.net/project/downloading.php?group_id=2435&filename=MSYS-1.0.11-20090120-dll.tar.gz&a=78351117
|
http://sourceforge.net/project/downloading.php?group_id=2435&filename=MSYS-1.0.11-20090120-dll.tar.gz&a=78351117
|
||||||
http://sourceforge.net/project/downloading.php?group_id=2435&filename=msysCORE-1.0.11-20080826.tar.gz&a=60784616
|
http://sourceforge.net/project/downloading.php?group_id=2435&filename=msysCORE-1.0.11-20080826.tar.gz&a=60784616
|
||||||
(from http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=24963)
|
(from http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=24963)
|
||||||
- extract these into the same directory as installed above, merging the directory contents
|
- extract these into the same directory as installed above, merging the
|
||||||
|
directory contents
|
||||||
- create a shortcut to msys.bat
|
- create a shortcut to msys.bat
|
||||||
|
|
||||||
http://sourceforge.net/project/downloading.php?group_id=2435&filename=perl-5.6.1-MSYS-1.0.11-1.tar.bz2&a=91743036
|
http://sourceforge.net/project/downloading.php?group_id=2435&filename=perl-5.6.1-MSYS-1.0.11-1.tar.bz2&a=91743036
|
||||||
|
@ -41,11 +38,14 @@ http://sourceforge.net/project/downloading.php?group_id=2435&filename=automake1.
|
||||||
http://sourceforge.net/project/downloading.php?group_id=2435&filename=autoconf-4-1-bin.tar.bz2&a=70428585
|
http://sourceforge.net/project/downloading.php?group_id=2435&filename=autoconf-4-1-bin.tar.bz2&a=70428585
|
||||||
http://sourceforge.net/project/downloading.php?group_id=2435&filename=automake-3-1-bin.tar.bz2&a=12881354
|
http://sourceforge.net/project/downloading.php?group_id=2435&filename=automake-3-1-bin.tar.bz2&a=12881354
|
||||||
(from http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=67879)
|
(from http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=67879)
|
||||||
- you need to extract these from the msys shell with tar (other methods won't work):
|
- you need to extract these from the msys shell with tar (other methods won't
|
||||||
cd /
|
work). This assumes that the archives are in C:\Path\To\Downloads\, adjust
|
||||||
tar -xjf /path/to/downloads/*.bz2
|
the command as necessary:
|
||||||
|
cd /
|
||||||
TODO: Various libraries are also needed
|
for f in /c/Path/To/Downloads/*.bz2; do tar -xjf $f; done && echo done
|
||||||
|
|
||||||
|
Get the library package from openclonk.org and unpack it into the same
|
||||||
|
directory as the other archives.
|
||||||
|
|
||||||
If you want DirectX support, get a DirectX 9 SDK from Microsoft. Copy the
|
If you want DirectX support, get a DirectX 9 SDK from Microsoft. Copy the
|
||||||
contents of its include dir to the include dir of your MinGW installation,
|
contents of its include dir to the include dir of your MinGW installation,
|
||||||
|
@ -53,7 +53,7 @@ and pass --with-directx to configure below.
|
||||||
|
|
||||||
Start msys, cd to this directory, and execute:
|
Start msys, cd to this directory, and execute:
|
||||||
|
|
||||||
autoconf && automake -a && ./configure && make
|
./autogen.sh && ./configure && make
|
||||||
|
|
||||||
To use g++ version 4.3 or newer, you need to pass CXX='g++ -std=gnu++0x'
|
To use g++ version 4.3 or newer, you need to pass CXX='g++ -std=gnu++0x'
|
||||||
to configure. g++ version 4.2 is not able to compile Clonk.
|
to configure. g++ version 4.2 is not able to compile Clonk.
|
||||||
|
@ -67,8 +67,8 @@ If you want to separate the source directory and the output files, you can call
|
||||||
configure from another directory. You can call configure by it's relative path,
|
configure from another directory. You can call configure by it's relative path,
|
||||||
but using the full path helps gdb find the source files. Example:
|
but using the full path helps gdb find the source files. Example:
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
/path/to/clonksource/configure --with-directx CXXFLAGS='-Os'
|
/path/to/clonksource/configure --with-directx CXXFLAGS='-Os'
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
aclocal -I autotools --install
|
||||||
|
autoheader
|
||||||
|
autoconf
|
||||||
|
automake -a
|
||||||
|
|
Loading…
Reference in New Issue