|
|
(12 intermediate revisions by 4 users not shown) |
Line 1: |
Line 1: |
|
|
This page explains how to build and test glob2 for Windows on a Debian/Ubuntu GNU/Linux operating system. |
|
This developers article has been moved to http://globulation2.devjavu.com/ |
|
|
|
To see how to compile it natively on Windows, please see [[Mingw compilation]]. |
|
|
|
|
|
Please go there to find in. Thank you. |
|
|
|
|
|
|
|
===Compile globulation2 for Windows on Debian using mingw=== |
⚫ |
|
|
|
|
|
|
|
#Install a mingw compiler: |
|
|
#:<pre>sudo apt-get install mingw32-binutils mingw32 mingw32-runtime</pre> |
|
|
#Install NSIS (required only if you want to build NSIS installer): |
|
|
#:<pre>sudo apt-get install nsis</pre> |
|
|
#Create the following directory: |
|
|
#:<pre>mkdir build</pre> |
|
|
#:<pre>cd build</pre> |
|
|
#Download glob2_required_libs_mingw-scons.tar.bz2: |
|
|
#:<pre>wget http://dl.sv.nongnu.org/releases/glob2/mingw/glob2_required_libs_mingw-scons.tar.bz2</pre> |
|
|
#Untar the libraries: |
|
|
#:<pre>tar -xjf glob2_required_libs_mingw-scons.tar.bz2</pre> |
|
|
#Download glob2 sources from mercurial (check [[Compiling#Sources_from_Mercurial]] for details): |
|
|
#:<pre>hg clone https://bitbucket.org/giszmo/glob2</pre> |
|
|
#:<pre>cd glob2-new</pre> |
|
|
#Compile: |
|
|
#:<pre>scons -j5 mingwcross=yes</pre> |
|
|
#To create NSIS installer package run after previous step: |
|
|
#:<pre>scons -j5 mingwcross=yes dist</pre> |
|
|
|
|
|
|
|
|
===Test globulation2 for Windows on Debian=== |
|
|
|
|
|
#Install wine: |
|
|
#:<pre>sudo apt-get install wine</pre> |
|
|
#Copy files necessary to run: |
|
|
#:<pre>cp src/glob2.exe .</pre> |
|
|
#:<pre>cp ../local/bin/* ../local/lib/* .</pre> |
|
|
#Run glob2: |
|
|
#:<pre>wine glob2.exe</pre> |
|
|
|
|
⚫ |
|
|
|
[[Category:Developer Resources]] |