MegaGlest Forum

Archives (read only) => Vanilla Glest => Linux and other ports => Topic started by: titi on 16 January 2008, 18:49:25

Title: Here is how to checkout and compile 3.0.0beta1
Post by: titi on 16 January 2008, 18:49:25
you must have installed
autogen
automake
jam
svn(subversion)
libsdl, libxerces, libxerces, libopenal and libvorbis
+ compiler and things like this

then type:


Code: [Select]
mkdir glestsource
cd glestsource
svn co https://glest.svn.sourceforge.net/svnroot/glest/trunk/source
svn co https://glest.svn.sourceforge.net/svnroot/glest/trunk/mk
cd mk/linux/
./autogen.sh
./configure
jam


Now you find the binary in the current directory.
whats else to do:

download the new data package
http://downloads.sourceforge.net/glest/ ... 0beta1.zip (http://downloads.sourceforge.net/glest/glest_data_3.0.0beta1.zip)

unpack it and copy your binary and the linux glests.ini ( is in the same directory as your binary) into the glest basedir.

start it.


if you have trouble with the fonts use this one ( change it in glest.ini )
FontConsole=-*-helvetica-*-*-*-*-12-*-*-*-*-*-*-*
FontDisplay=-*-helvetica-*-*-*-*-12-*-*-*-*-*-*-*
FontMenu=-*-helvetica-*-*-*-*-12-*-*-*-*-*-*-*


HINT: shadowmapping doesn't work at the moment use projected shadows here! ( in the ingame settings )



Attention! you cannot play with windows users at the moment. if you want to try it disable ( set to 0 )
NetworkConsistencyChecks=1
in glest.ini.
By this you can play server and windows machines can connect. But you cannot connect to a windows server with this check!


there is no master server available yet
you must connect to the irc channel find a partener there.
One player is server the other/others is are client and must enter the servers IP.( in the ini file or in the game when connecting )

if you are looking for multiplayer partners come to
irc://irc.freenode.net/glest (http://irc://irc.freenode.net/glest)
Title:
Post by: didli on 17 January 2008, 12:53:26
Thanks titi, I spend half an hour to figure out how to compile 3.0.0beta1 then I successfully tried your way ...
Glest Multiplayer up and running !
Title:
Post by: vinicius on 17 January 2008, 14:12:05
First, I wanna to thank you for the help. But I got some problems here.

I did everything correct, but when I write ./autogen.sh, it shows:

Quote
vinicius@vinicius-desktop:~/glestsource/mk/linux$ ./autogen.sh
aclocal...
./autogen.sh: 11: aclocal: not found
generating Jamconfig.in ...
./autogen.sh: 17: autoconf: not found
autoconf
./autogen.sh: 24: autoconf: not found
Updating Source symlinks...
vinicius@vinicius-desktop:~/glestsource/mk/linux$ ./configure
bash: ./configure: Arquivo ou diretório inexistente


Arquivo ou diretório inexistente means that don't exist File or directory in portuguese.

Can you help me?
Title:
Post by: Detructor on 17 January 2008, 17:56:54
same here...I've Ubuntu 7.10
jam is installed but I get this error.

Code: [Select]
detructor15@detructor15-desktop:~/Desktop/spiele/glest/mk/linux$ ./autogen.sh
aclocal...
./autogen.sh: 11: aclocal: not found
generating Jamconfig.in ...
./autogen.sh: 17: autoconf: not found
autoconf
./autogen.sh: 24: autoconf: not found
Updating Source symlinks...

after a 5 minute search in the www with google, I got the solution: you've to install "automake"
and I've to install:
libsdl1.2-dev, libxerces27, libxerces27-dev, libopenal-dev and libvorbis-dev

@Admins please get this package into the requirements...ty

and now I'm at the end of my knowledge
Code: [Select]
Exception: Can't open properties file: data/lang/english.lng

that comes when I try to start the game...
Title:
Post by: titi on 17 January 2008, 18:57:22
ok, to get the things running there is more to do!

you have to use the new data package
and edit the setup the glest.ini.

here is a working linux example of the glest.ini:
http://www.titusgames.de/glest.ini (http://www.titusgames.de/glest.ini)


If you want to setup it for your own:
things that must be changed in the windows version of the glest.ini:

use other fonts:
FontConsole=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontDisplay=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontMenu=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*

use 16bit
DepthBits=16


sound must be switched to OpenAL
FactorySound=OpenAL
Title:
Post by: Detructor on 17 January 2008, 19:03:56
oh...I see...it's an other svn tree.

get it...but as you said, there is much more to do :twisted:  :wink:

errh...that was even in the "normal" config file:
Code: [Select]
; === Properties File ===

AiLog=0
AiRedir=0
CheckGlCaps=1
ColorBits=32
ConsoleMaxLines=10
ConsoleTimeout=1
DayTime=1000
DebugMode=0
DepthBits=16
FactoryGraphics=OpenGL
FactorySound=OpenAL
FastSpeedLoops=2
Filter=Bilinear
FilterMaxAnisotropy=1
FirstTime=0
FocusArrows=1
FogOfWarSmoothing=1
FogOfWarSmoothingFrameSkip=3
FontConsole=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontDisplay=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontMenu=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
Lang=english.lng
MaxLights=1
NetworkConsistencyChecks=1
Platform=Linux
PhotoMode=0
RefreshFrequency=75
ScreenHeight=480
ScreenWidth=640
ServerIp=192.168.1.102
ServerPort=6666
ShadowAlpha=0.1
ShadowFrameSkip=2
ShadowTextureSize=256
Shadows=Projected
SoundStaticBuffers=16
SoundStreamingBuffers=4
SoundVolumeAmbient=80
SoundVolumeFx=80
SoundVolumeMusic=90
StencilBits=0
Textures3D=1
Windowed=0
Title:
Post by: titi on 17 January 2008, 19:07:29
OK, I will collect all this in my first post
Title:
Post by: titi on 17 January 2008, 19:10:30
connect to the irc channel if possible:
irc://irc.freenode.net/glest (http://irc://irc.freenode.net/glest)
Title:
Post by: Detructor on 17 January 2008, 21:31:11
okay, thanks for your help!
That was a great debugging session :D
Cause, I didn't know the buildings ;)
Title:
Post by: djezer on 18 January 2008, 03:31:01
I get the same "Exception: Font not found. " error message and can't get the game to start. any help? I'm on the latest version of ubuntu btw.
Title:
Post by: Somtin on 18 January 2008, 06:53:05
me to. I am also on latest ubuntu.

EDIT FIXED: where it says
FontConsole=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontDisplay=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontMenu=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
in the glest.ini file, replace all of the utopia's with a font of your choice, I am using freesans.
Title:
Post by: djezer on 18 January 2008, 14:40:38
OK the change of font worked for me. The sounds were weird about 2 seconds, then everything looked good.

The only thing I can't get to work is the multiplayer support. It says the server is at 86.7.216.52_ but I can't seem to join the server at all?

Is this normal, am I just doing something wrong or have I overlooked something.

Again, I'm on the latest ubuntu.

Thanks guys, looking forward to playing this game in multiplayer :)
Title: for Destructor (english.lng file problem)
Post by: velcroman on 18 January 2008, 17:55:05
Destructor wrote...

Quote
Exception: Can't open properties file: data/lang/english.lng (when trying to start the game)


I had the same problem.
Make sure to copy the data (folder/directory) into the same directory as the glest binary (i.e. the directory where you are launching the Glest from)

It worked for me. :)
Title:
Post by: sirdaniel on 18 January 2008, 19:22:19
Yes the english language worked for me.

But I can't play because i don't connect to server 86.7.216.52_
what happening? I want try this beta :)
Title:
Post by: daniel.santos on 18 January 2008, 23:24:48
This is how I compiled Beta 1 on my amd64 (Gentoo) system.  My system is setup with US English locale, so I have to make some minor tweaks to check out the Spanish language file, which contains unicode characters.  Also, I have vorbis and ogg installed under /usr (the root of it's install), so I specify that and I disable wx.  I am installing it into a subdirectory of my home, rather than globally under /.

Code: [Select]
# Set and create my install directory
dest=~/proj/glest
mkdir -p $dest

# Fixup my locale settings
export LC_CTYPE=en_US.UTF-8
locale

# Get sources
svn co https://glest.svn.sourceforge.net/svnroot/glest/trunk
pushd trunk/mk/linux/

# Compile and install
./autogen.sh
./configure --prefix=$dest --with-x --with-vorbis=/usr --with-ogg=/usr --with-wx-config=disabled_wx
jam && jam install

# Install data files, I prefer to use tar because I like the way it handles files.
popd
tar cC trunk/data/glest_game * | tar xC $dest
cp ./mk/linux/glest.ini $dest


This is basically what you have to have installed to build & run:

Title: -
Post by: hailstone on 19 January 2008, 01:40:35
There is some information on compiling at https://docs.megaglest.org/Compiling (https://docs.megaglest.org/Compiling)
Title:
Post by: djezer on 19 January 2008, 03:10:27
Any idea on how to get the multiplayer working on linux?
Title: Re: Here is how to checkout and compile 3.0.0beta1
Post by: vinicius on 19 January 2008, 15:25:26
Quote from: "titi"

Code: [Select]
mkdir glestsource
cd glestsource
svn co https://glest.svn.sourceforge.net/svnroot/glest/trunk/source
svn co https://glest.svn.sourceforge.net/svnroot/glest/trunk/mk
cd mk/linux/
./autogen.sh
./configure
jam

Now you find the binary in the current directory.
whats else to do:
download the new data package
http://downloads.sourceforge.net/glest/ ... 0beta1.zip (http://downloads.sourceforge.net/glest/glest_data_3.0.0beta1.zip)

unpack it and copy your binary and the linux glests.ini ( is in the same directory as your binary) into the glest basedir.


Which one is the glestbasedir? glestsource? mk/linux?
Title:
Post by: sirdaniel on 19 January 2008, 16:08:36
I found this message on try to join a connected game.

Code: [Select]
daniel@xucuru:~/svn/glestsource/mk/linux$ ./glest
Couldn't process event: Error connecting socket (Error: Operation now in progress)
Couldn't process event: Error connecting socket (Error: Operation now in progress)


What is this?
Title:
Post by: titi on 19 January 2008, 21:04:27
there is no master server available yet
you must connect to the irc channel find a partener there.
One player is server the other/others is are client and must enter the servers IP. ( in the ini file or in the game when connecting )
irc://irc.freenode.net/glest (http://irc://irc.freenode.net/glest)
Title:
Post by: hailstone on 20 January 2008, 07:58:43
On doing ./configure the error of 'configure: error: You need to have GLU headers and libraries installed' appeared. This was fixed by installing the Mesa-devel package which included the proper files. They are also meant to be a part of XFree86-devel but I couldn't find it in the package repositories.
Title:
Post by: sirdaniel on 20 January 2008, 16:45:20
Quote from: "hailstone"
On doing ./configure the error of 'configure: error: You need to have GLU headers and libraries installed' appeared. This was fixed by installing the Mesa-devel package which included the proper files. They are also meant to be a part of XFree86-devel but I couldn't find it in the package repositories.


To install linux headers kernel type:
Code: [Select]
# apt-get install build-essential linux-headers-`uname -r`
And probally you have to install too:
Code: [Select]
# apt-get install xfree86-dev

Try this, don't forgetter you must have requiments to install.
Title:
Post by: weedkiller on 26 April 2008, 08:11:43
YEA, maybe late but better than never... thanks titi for the instructions!

I got Glest3.1.2/GAE0.2.6 compiled on my Sidux/Debian. Now it works corectly without the damn movement error (units moved to the topleft map corner by every command, exept commands with another unit as target).

Now i will try if someone wants to play with me with this binary...
Title:
Post by: jschneider on 26 July 2008, 14:44:47
I have the following problems :
Title: topic
Post by: @kukac@ on 26 July 2008, 15:06:42
Well, the 300 is quite old :P try some never one (312, 320)