|
|
Line 6: |
Line 6: |
|
#run msys.bat from the installation directory |
|
#run msys.bat from the installation directory |
|
#download glob2_required_libs_mingw.tar.bz2 : |
|
#download glob2_required_libs_mingw.tar.bz2 : |
|
#*wget http://globulation2.org/dev/glob2_required_libs_mingw.tar.bz2 |
|
#:<pre>wget http://globulation2.org/dev/glob2_required_libs_mingw.tar.bz2</pre> |
|
#untar the libraries like this : |
|
#untar the libraries like this : |
|
#*tar jxf glob2_required_libs_mingw.tar.bz2 -C / |
|
#:<pre>tar jxf glob2_required_libs_mingw.tar.bz2 -C /</pre> |
|
#download glob2 cvs (as anonymous for example) : |
|
#download glob2 cvs (as anonymous for example) : |
|
#*export CVS_RSH="ssh" |
|
#:<pre>export CVS_RSH="ssh"</pre> |
|
#*cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/glob2 co glob2 |
|
#:<pre>cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/glob2 co glob2</pre> |
|
#prerequisites before compiling glob2 : |
|
#prerequisites before compiling glob2 : |
|
#*cd glob2 |
|
#:<pre>cd glob2</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>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 : |
|
#compiling glob2 : |
|
#*./bootstrap |
|
#:<pre>./bootstrap</pre> |
|
#*./configure |
|
#:<pre>./configure</pre> |
|
#*make |
|
#:<pre>make</pre> |
|
#To make the executable smaller : |
|
#To make the executable smaller : |
|
#*strip ./src/glob2.exe |
|
#:<pre>strip ./src/glob2.exe</pre> |
|
|
|
|
|
===Test globulation2 on windows :=== |
|
===Test globulation2 on windows :=== |
|
|
|
|
|
#download glob2_windows_runtime.tar.bz2 |
|
#download glob2_windows_runtime.tar.bz2 |
|
#*wget http://globulation2.org/dev/glob2_windows_runtime.tar.bz2 |
|
#:<pre>wget http://globulation2.org/dev/glob2_windows_runtime.tar.bz2</pre> |
|
#extract it with |
|
#extract it with : |
|
#*tar jxf glob2_windows_runtime.tar.bz2 |
|
#:<pre>tar jxf glob2_windows_runtime.tar.bz2</pre> |
|
#go in the glob2 directory where you have compiled glob2 and type |
|
#go in the glob2 directory where you have compiled glob2 and type |
|
#*./syncdata |
|
#:<pre>./syncdata</pre> |
|
#*./syncmaps |
|
#:<pre>./syncmaps</pre> |
|
#copy the content of glob2/data/ to glob2_runtime/data/ |
|
#copy the content of glob2/data/ to glob2_runtime/data/ |
|
#copy the content of glob2/maps/ to glob2_runtime/maps/ |
|
#copy the content of glob2/maps/ to glob2_runtime/maps/ |