|
|
Line 34: |
Line 34: |
|
|
|
|
|
==Compiling Globulation 2== |
|
==Compiling Globulation 2== |
|
|
===Compiling from released source code=== |
|
|
:*Download and extract the release to c:\mingw\home\XXX\ (where XXX is the username), then run: |
|
⚫ |
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF"> mv glob2-0. 8.18 glob2_release</td></tr></table> |
|
|
|
|
|
:*Download Globulation 2 from cvs (as anonymous for example): |
|
⚫ |
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF"> export CVS_RSH="ssh" && cvs -z3 -d:pserver:anonymous@cvs. savannah.nongnu.org:/sources/ glob2 co glob2</td></tr></table> |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">mv glob2 glob2_cvs</td></tr></table> |
|
|
|
|
|
:*In order for compiling to work properly, run the following commands: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">cd glob2_release</td></tr></table> |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">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 .</td></tr></table> |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">cp ../glob2_cvs/bootstrap .</td></tr></table> |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">cp ../glob2_cvs/libgag/src/win32_dirent.h ./libgag/src/</td></tr></table> |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">cp ../glob2_cvs/libgag/src/win32_dirent.cpp ./libgag/src/</td></tr></table> |
|
|
|
|
|
:*Open glob2_release/configure.in and find: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"</td></tr></table> |
|
|
::and replace with: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I/usr/include/freetype2"<br />LDFLAGS="$LDFLAGS `sdl-config --libs` -lSDL_ttf"</td></tr></table> |
|
|
|
|
|
:*Now to start compiling globulation 2. Don't worry about the warnings. If something is wrong, it will grind to a halt and it will let you know why: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">./bootstrap && ./configure && make</td></tr></table> |
|
|
|
|
|
:*To make the executable smaller in size, run the following command: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">strip ./src/glob2.exe</td></tr></table> |
|
|
|
|
|
===Compiling from CVS=== |
|
:*Download Globulation 2 from cvs (as anonymous for example): |
|
:*Download Globulation 2 from cvs (as anonymous for example): |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">export CVS_RSH="ssh" && cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/glob2 co glob2</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">export CVS_RSH="ssh" && cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/glob2 co glob2</td></tr></table> |
Line 51: |
Line 78: |
|
:*To make the executable smaller in size, run the following command: |
|
:*To make the executable smaller in size, run the following command: |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">strip ./src/glob2.exe</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">strip ./src/glob2.exe</td></tr></table> |
|
|
|
|
|
:*Finally, to get the data, maps, and campaigns needed to play the game, run the following commands: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">./syncdata</td></tr></table> |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">./syncmaps</td></tr></table> |
|
|
|
|
|
|
|
|
Line 60: |
Line 91: |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">tar jxf glob2_windows_runtime.tar.bz2</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">tar jxf glob2_windows_runtime.tar.bz2</td></tr></table> |
|
|
|
|
|
⚫ |
:*Copy the folders data/ , maps /, and campaigns/ to glob2_runtime/ |
|
:*Go in the glob2 directory where you have compiled glob2 and type |
|
⚫ |
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">. /syncdata</td></tr></table> |
|
⚫ |
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #000000; padding: .3em .9em .3em; color: #000000; background-color: #F8F8FF">./ syncmaps</td></tr></table> |
|
|
|
|
|
:*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/ |
|
:*Copy glob2.exe which is in the src directory (glob2/src/) to glob2_runtime/ |