|
|
Line 21: |
Line 21: |
|
:*Go in the directory where you put the glob2_required_libs_mingw.tar.bz2 (for example cd ~) and untar the libraries using the command below. This process could take a while: |
|
:*Go in the directory where you put the glob2_required_libs_mingw.tar.bz2 (for example cd ~) and untar the libraries using the command below. This process could take a while: |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">tar jxf glob2_required_libs_mingw.tar.bz2 -C /</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">tar jxf glob2_required_libs_mingw.tar.bz2 -C /</td></tr></table> |
|
|
:*Download [http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi python] and install it in the directory "C:\Python25" (this is default, don't change it). |
|
:*Finally, to allow the important command "make" to run, use the following command: |
|
|
|
:*Download [http://prdownloads.sourceforge.net/scons/scons-0.97.win32.exe scons] and install it |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">cp -a /bin/mingw32-make.exe /bin/make.exe</td></tr></table> |
|
|
|
|
|
|
|
|
|
==Compiling Globulation 2== |
|
==Compiling Globulation 2== |
Line 40: |
Line 39: |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">./syncmaps</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">./syncmaps</td></tr></table> |
|
===Step 2: Continue compiling=== |
|
===Step 2: Continue compiling=== |
|
:*Open glob2_source/configure.in and find: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"</td></tr></table> |
|
|
::and replace with: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I/usr/include/freetype2"<br />LDFLAGS="$LDFLAGS `sdl-config --libs` -lSDL_ttf"</td></tr></table> |
|
|
:*In the same file, find: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">LIBS="$LIBS -logg -lwsock32"</td></tr></table> |
|
|
::and replace with: |
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">LIBS="$LIBS -logg -lwsock32 /lib/libvorbisfile.a /lib/libvorbis.a /lib/libogg.a"</td></tr></table> |
|
|
:*Before compiling glob2, run these commands from the mingw console: |
|
:*Before compiling glob2, run these commands from the mingw console: |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">cd glob2_source</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">cd glob2_source</td></tr></table> |
|
: (note there is a . at the end of the following command) |
|
: (note there is a . at the end of the following command) |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">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 #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">cp -a ./libgag/include/*.h ./libgag/src/</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: |
|
:*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 #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">./bootstrap && ./configure && make</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">scons mingw=true</td></tr></table> |
|
:*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 #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">strip ./src/glob2.exe</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">strip ./src/glob2.exe</td></tr></table> |