Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Howto: Glest Advanced Engine on Debian Squeeze

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Howto: Glest Advanced Engine on Debian Squeeze

#1 Post by kedaha »

How to install Glest Advanced Engine on Debian Squeeze [Edited to add further details 14 May 2011]:
How to to make the Glest Advanced Engine (or GAE) Official Compile Guide for Linux available here a little clearer as applied to Debian.
For further information about GAE itself, please see: http://glest.wikia.com/wiki/Glest_Advanced_Engine
I installed it on a 64-bit Gnome system. A 32-bit deb, glestae-0.3.2, can be obtained here installable with gdebi.
(For the following command to work, it is necessary first to install git):

Code: Select all

# aptitude install git
To obtain the source code:

Code: Select all

$ git clone git://glestae.git.sourceforge.net/gitroot/glestae/glestae glestae_git
Following the Official Guide:
This creates a new folder in the current directory named glestae_git with all the sources and data. The rest of the article assumes you're in this folder.
And also:
Get the dependencies:
* g++ (it might work with other compilers)
* CMake 2.6 or later
* SDL 1.2.5 or later
* OpenAL
* Vorbis
* Lua 5.1
* PhysicsFS (physfs) 2.0 or later
* zlib
* Freetype
* libpng
* libjpeg (or libjpeg-turbo)
* glew
* wxWidgets 2.8 or later, optional, needed for map editor and model viewer
* CppUnit?, optional, needed for testsuite
* LibXml?2, optional, needed for Blender export script
The following command should take care of most, if not all the dependencies listed above, including the last three optional dependencies:

Code: Select all

# aptitude install cmake doxygen g++ libsdl1.2-dev libsdl1.2-dev libopenal-dev libvorbis-dev liblua5.1-0-dev libphysfs-dev libfreetype6-dev zlib1g-dev libpng12-dev libglew1.5-dev libwxbase2.8-dev libcppunit-dev libxml++1.0-dev zlib1g-dev libwxgtk2.8-0 libalien-wxwidgets-perl wx2.8-headers libwxgtk2.8-dev libwxbase2.8-0 libwxbase2.8-dev libjpeg62 libjpeg62-dev
Now do (any errors are due to missing packages which can be found using Synaptic):

Code: Select all

user@squeeze:~$ cd glestae_git
user@squeeze:~/glestae_git$ mkdir build
user@squeeze:~/glestae_git$ cd build
user@squeeze:~/glestae_git/build$ cmake -DGAE_DATA_DIR=$PWD/../data/game ..
user@squeeze:~/glestae_git/build$ make
To do make install, the procedure is a) but to create your own deb package so that it appears in Synaptic (recommended) see b)
a) To do: make install, then

Code: Select all

user@squeeze:~/glestae_git/build$ su
Password:
root@squeeze:~# /home/user/glestae_git/build# make install
This will install GAE although make install isn't recommended for reasons given in Soul Singin's topic, but according to: http://sourceforge.net/apps/trac/glestae/wiki/Packaging
CPack can also generate RPM and DEB packages
After installation, Glest Advanced Engine, the G3D Viewer and Map Editor will appear in the Gnome menu.

To make a quick deb package:
b) To make your own deb package, switch to root, continue as follows:

Code: Select all

user@squeeze:~/glestae_git/build$ su
Password:
[/code]
If it isn't installed on your system:

Code: Select all

# aptitude install checkinstall
Now run checkinstall (if necessary consult further documentation here):

Code: Select all

root@squeeze:/home/user/glestae_git/build# checkinstall 
The three executable files are:
/usr/local/bin/gae_g3dviewer
/usr/local/bin/gae_mapeditor
/usr/local/bin/glestadv

The menu entries can be found in Gnome menu > Games > Strategy >
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Howto: Glest Advanced Engine on Debian wheezy

#2 Post by kedaha »

Although the megaglest 3D multi-player real time strategy game in wheezy is very good, I read somewhere that work has resumed on the Glest_Advanced_Engine so - in case anyone's interested - this is an update:
I tried the above build instructions in wheezy and was able to successfully build GAE. The only difference is that a couple of package names have changed - so to meet the dependencies listed at CompileGuideLinux - do:

Code: Select all

# aptitude install cmake doxygen g++ libsdl1.2-dev libsdl1.2-dev libopenal-dev libvorbis-dev liblua5.1-0-dev libphysfs-dev libfreetype6-dev zlib1g-dev libpng12-dev libglew-dev libwxbase2.8-dev libcppunit-dev libghc-sdl-dev libxml++2.6-dev zlib1g-dev libwxgtk2.8-0 libalien-wxwidgets-perl wx2.8-headers  libwxgtk2.8-dev libwxbase2.8-0 libwxbase2.8-dev libjpeg62 libjpeg62-dev
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

Post Reply