|
|
Line 42: |
Line 42: |
|
:*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> |
|
:*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. Run it one more time (there are occasional issue which are fixed by running it again). If problems persist, write a bug report. |
|
::<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> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">scons --no-cache 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> |
Line 49: |
Line 49: |
|
|
|
|
|
==Testing Globulation 2 on windows== |
|
==Testing Globulation 2 on windows== |
|
|
===Running Globulation from compiled source=== |
|
:*Download [http://dl.sv.nongnu.org/releases/glob2/mingw/glob2_windows_runtime-2.tar.bz2 glob2_windows_runtime-2.tar.bz2] and put it in the home directory of msys (c:\msys\1.0\home\XXX\ where XXX is the username) |
|
:*Download [http://dl.sv.nongnu.org/releases/glob2/mingw/glob2_windows_runtime-2.tar.bz2 glob2_windows_runtime-2.tar.bz2] and put it in the home directory of msys (c:\msys\1.0\home\XXX\ where XXX is the username) |
|
:*Double click the MSYS icon that has been placed on your desktop during MSYS's installation. |
|
:*Double click the MSYS icon that has been placed on your desktop during MSYS's installation. |
|
:*Go in the directory where you put the glob2_windows_runtime-2.tar.bz2 (for example cd ~) and untar the libraries using the command below: |
|
:*Go in the directory where you put the glob2_windows_runtime-2.tar.bz2 (for example cd ~) and untar the libraries using the command below: |
|
<!-- ::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">mkdir glob2_runtime/</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_windows_runtime-2.tar.bz2 -C glob2_source/</td></tr></table> |
|
|
:*Drag the glob2 executable into the root source folder: |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">tar jxf glob2_windows_runtime-2.tar.bz2 -C glob2_runtime/</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> |
|
:*Copy the folders data/, maps/, and campaigns/ and the files AUTHORS and COPYING to glob2_runtime/, overwriting any existing files |
|
|
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">cp -a ./src/glob2.exe .</td></tr></table> |
|
:*Copy glob2.exe which is in the src directory (glob2/src/) to glob2_runtime/ |
|
|
:*Run glob2.exe from the glob2_runtime directory and play :) |
|
:*Run glob2.exe from the glob2_runtime directory and play :) |
|
|
===Building a Globulation 2 NSIS installer=== |
|
|
:*Coming soon |
|
|
|
|
|
|
|
|
[[Category:Developer Resources]] |
|
[[Category:Developer Resources]] |