|
|
Line 18: |
Line 18: |
|
#manually install boost c++ with the following commands : |
|
#manually install boost c++ with the following commands : |
|
#:<pre>tar zxf boost-1.33.1-mingw-bin.tar.gz</pre> |
|
#:<pre>tar zxf boost-1.33.1-mingw-bin.tar.gz</pre> |
|
#:<pre>mv boost/include/boost-1_33_1/boost /usr/include</pre> |
|
#:<pre>mv boost/include/boost-1_33_1/boost /usr/include && mv boost/lib/* /usr/lib</pre> |
|
#:<pre>mv boost/lib/* /usr/lib</pre> |
|
|
#download glob2 cvs (as anonymous for example) : |
|
#download glob2 cvs (as anonymous for example) : |
|
#:<pre>export CVS_RSH="ssh"</pre> |
|
#:<pre>export CVS_RSH="ssh" && cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/glob2 co glob2</pre> |
|
#:<pre>cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/glob2 co glob2</pre> |
|
|
#prerequisites before compiling glob2 : |
|
#prerequisites before compiling glob2 : |
|
#:<pre>mv /usr/bin/mingw32-make.exe /usr/bin/make.exe</pre> |
|
#:<pre>mv /usr/bin/mingw32-make.exe /usr/bin/make.exe && cd glob2</pre> |
|
#:<pre>cd glob2</pre> |
|
|
#:<pre>cp /usr/bin/SDL.dll /usr/bin/libvorbis-0.dll /usr/bin/libogg-0.dll /usr/bin/libvorbisenc-2.dll /usr/bin/libfreetype-6.dll .</pre> |
|
#:<pre>cp /usr/bin/SDL.dll /usr/bin/libvorbis-0.dll /usr/bin/libogg-0.dll /usr/bin/libvorbisenc-2.dll /usr/bin/libfreetype-6.dll .</pre> |
|
#:change in configure.in :<br />CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"<br /> with<br />CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I/usr/include/freetype2"<br /> LDFLAGS="$LDFLAGS `sdl-config --libs` -lSDL_ttf" |
|
#:change in configure.in :<br />CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"<br /> with<br />CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I/usr/include/freetype2"<br /> LDFLAGS="$LDFLAGS `sdl-config --libs` -lSDL_ttf" |
|
#compiling glob2 (don't worry about the warnings) : |
|
#compiling glob2 (don't worry about the warnings) : |
|
#:<pre>./bootstrap</pre> |
|
#:<pre>./bootstrap && ./configure && make</pre> |
|
#:<pre>./configure</pre> |
|
|
#:<pre>make</pre> |
|
|
#To make the executable smaller : |
|
#To make the executable smaller : |
|
#:<pre>strip ./src/glob2.exe</pre> |
|
#:<pre>strip ./src/glob2.exe</pre> |
This page explains how to compile globulation2 on windows using mingw.
For any problems or suggestions, don't hesitate to contact me. Ion bidon
Remark : globulation2 does not compiles with mingw gcc versions 3.2.3, 2.95.3-8 and 3.4.2. But don't worry, gcc version 3.3.1 works and is included in glob2_required_libs_mingw.tar.bz2.
Compile globulation2 on windows using mingw
- install MinGW-3.1.0-1.exe in a directory (Mingw download page)
-install it for example in c:\mingw (warning! don't use spaces or capitals for the installation directory)
- install MSYS-1.0.10.exe in the same directory (Mingw download page)
-follow the steps of the installer and at the end it will ask you in a console if you have mingw installed. You must say yes and after, indicate the directory where it is installed.
-for example if you install MinGW in C:\mingw and MSYS in C:\mingw aswell, then continue with post install, select yes when asking if MinGW is installed, and input C:/mingw
- install msysDTK-1.0.1.exe in the same directory that you installed mingw and msys (Mingw download page)
- download glob2_required_libs_mingw.tar.bz2 from http://globulation2.org/dev/glob2_required_libs_mingw.tar.bz2 and put them in the home directory in mingw (for example C:\mingw\home\XXX\ where XXX is the username)
- double click the Msys icon that has been placed on your desktop
- Go in the directory where you put the glob2_required_libs_mingw.tar.bz2 (for example cd ~) and untar the libraries like this :
tar jxf glob2_required_libs_mingw.tar.bz2 -C /
- download boost c++ precompiled libraries :
wget http://viral.media.mit.edu/releases/boost-1.33.1-mingw-bin.tar.gz
- manually install boost c++ with the following commands :
tar zxf boost-1.33.1-mingw-bin.tar.gz
mv boost/include/boost-1_33_1/boost /usr/include && mv boost/lib/* /usr/lib
- download glob2 cvs (as anonymous for example) :
export CVS_RSH="ssh" && cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/glob2 co glob2
- prerequisites before compiling glob2 :
mv /usr/bin/mingw32-make.exe /usr/bin/make.exe && cd glob2
cp /usr/bin/SDL.dll /usr/bin/libvorbis-0.dll /usr/bin/libogg-0.dll /usr/bin/libvorbisenc-2.dll /usr/bin/libfreetype-6.dll .
- change in configure.in :
CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
with
CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I/usr/include/freetype2"
LDFLAGS="$LDFLAGS `sdl-config --libs` -lSDL_ttf"
- compiling glob2 (don't worry about the warnings) :
./bootstrap && ./configure && make
- To make the executable smaller :
strip ./src/glob2.exe
Test globulation2 on windows :
- download glob2_windows_runtime.tar.bz2
wget http://globulation2.org/dev/glob2_windows_runtime.tar.bz2
- extract it with :
tar jxf glob2_windows_runtime.tar.bz2
- go in the glob2 directory where you have compiled glob2 and type
./syncdata
./syncmaps
- copy the content of glob2/data/ to glob2_runtime/data/
- copy the content of glob2/maps/ to glob2_runtime/maps/
- copy glob2.exe which is in the src directory (glob2/src/) to glob2_runtime/
- run glob2.exe from the glob2_runtime directory and play :)