|
|
(One intermediate revision by one other user not shown) |
Line 7: |
Line 7: |
|
#Install a mingw compiler: |
|
#Install a mingw compiler: |
|
#:<pre>sudo apt-get install mingw32-binutils mingw32 mingw32-runtime</pre> |
|
#:<pre>sudo apt-get install mingw32-binutils mingw32 mingw32-runtime</pre> |
|
#Install NSIS: |
|
#Install NSIS (required only if you want to build NSIS installer): |
|
#:<pre>sudo apt-get install nsis</pre> |
|
#:<pre>sudo apt-get install nsis</pre> |
|
#Create the following directory: |
|
#Create the following directory: |
Line 17: |
Line 17: |
|
#:<pre>tar -xjf glob2_required_libs_mingw-scons.tar.bz2</pre> |
|
#:<pre>tar -xjf glob2_required_libs_mingw-scons.tar.bz2</pre> |
|
#Download glob2 sources from mercurial (check [[Compiling#Sources_from_Mercurial]] for details): |
|
#Download glob2 sources from mercurial (check [[Compiling#Sources_from_Mercurial]] for details): |
|
#:<pre>hg clone http://hg.globulation2.org/glob2-new/</pre> |
|
#:<pre>hg clone https://bitbucket.org/giszmo/glob2</pre> |
|
#:<pre>cd glob2-new</pre> |
|
#:<pre>cd glob2-new</pre> |
|
#Compile: |
|
#Compile: |
Latest revision as of 19:31, 4 October 2012
This page explains how to build and test glob2 for Windows on a Debian/Ubuntu GNU/Linux operating system.
To see how to compile it natively on Windows, please see Mingw compilation.
Compile globulation2 for Windows on Debian using mingw
- Install a mingw compiler:
sudo apt-get install mingw32-binutils mingw32 mingw32-runtime
- Install NSIS (required only if you want to build NSIS installer):
sudo apt-get install nsis
- Create the following directory:
mkdir build
cd build
- Download glob2_required_libs_mingw-scons.tar.bz2:
wget http://dl.sv.nongnu.org/releases/glob2/mingw/glob2_required_libs_mingw-scons.tar.bz2
- Untar the libraries:
tar -xjf glob2_required_libs_mingw-scons.tar.bz2
- Download glob2 sources from mercurial (check Compiling#Sources_from_Mercurial for details):
hg clone https://bitbucket.org/giszmo/glob2
cd glob2-new
- Compile:
scons -j5 mingwcross=yes
- To create NSIS installer package run after previous step:
scons -j5 mingwcross=yes dist
Test globulation2 for Windows on Debian
- Install wine:
sudo apt-get install wine
- Copy files necessary to run:
cp src/glob2.exe .
cp ../local/bin/* ../local/lib/* .
- Run glob2:
wine glob2.exe