Author Topic: Here is how to checkout and compile 3.0.0beta1  (Read 15464 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Here is how to checkout and compile 3.0.0beta1
« 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

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
« Last Edit: 19 January 2008, 21:09:07 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

didli

  • Guest
(No subject)
« Reply #1 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 !
« Last Edit: 1 January 1970, 00:00:00 by didli »

vinicius

  • Guest
(No subject)
« Reply #2 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?
« Last Edit: 1 January 1970, 00:00:00 by vinicius »

Detructor

  • Guest
(No subject)
« Reply #3 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...
« Last Edit: 1 January 1970, 00:00:00 by Detructor »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #4 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


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
« Last Edit: 17 January 2008, 19:06:41 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Detructor

  • Guest
(No subject)
« Reply #5 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
« Last Edit: 17 January 2008, 19:07:45 by Detructor »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #6 on: 17 January 2008, 19:07:29 »
OK, I will collect all this in my first post
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #7 on: 17 January 2008, 19:10:30 »
connect to the irc channel if possible:
irc://irc.freenode.net/glest
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Detructor

  • Guest
(No subject)
« Reply #8 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 ;)
« Last Edit: 1 January 1970, 00:00:00 by Detructor »

djezer

  • Guest
(No subject)
« Reply #9 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.
« Last Edit: 1 January 1970, 00:00:00 by djezer »

Somtin

  • Guest
(No subject)
« Reply #10 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.
« Last Edit: 1 January 1970, 00:00:00 by Somtin »

djezer

  • Guest
(No subject)
« Reply #11 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 :)
« Last Edit: 1 January 1970, 00:00:00 by djezer »

velcroman

  • Guest
for Destructor (english.lng file problem)
« Reply #12 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. :)
« Last Edit: 1 January 1970, 00:00:00 by velcroman »

sirdaniel

  • Guest
(No subject)
« Reply #13 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 :)
« Last Edit: 1 January 1970, 00:00:00 by sirdaniel »

daniel.santos

  • Guest
(No subject)
« Reply #14 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:

« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
-
« Reply #15 on: 19 January 2008, 01:40:35 »
There is some information on compiling at https://docs.megaglest.org/Compiling
« Last Edit: 18 June 2016, 19:11:47 by filux »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

djezer

  • Guest
(No subject)
« Reply #16 on: 19 January 2008, 03:10:27 »
Any idea on how to get the multiplayer working on linux?
« Last Edit: 1 January 1970, 00:00:00 by djezer »

vinicius

  • Guest
Re: Here is how to checkout and compile 3.0.0beta1
« Reply #17 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

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?
« Last Edit: 1 January 1970, 00:00:00 by vinicius »

sirdaniel

  • Guest
(No subject)
« Reply #18 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?
« Last Edit: 1 January 1970, 00:00:00 by sirdaniel »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #19 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
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #20 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.
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

sirdaniel

  • Guest
(No subject)
« Reply #21 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.
« Last Edit: 1 January 1970, 00:00:00 by sirdaniel »

weedkiller

  • Draco Rider
  • *****
  • Posts: 277
    • View Profile
(No subject)
« Reply #22 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...
« Last Edit: 1 January 1970, 00:00:00 by weedkiller »

jschneider

  • Guest
(No subject)
« Reply #23 on: 26 July 2008, 14:44:47 »
I have the following problems :
  • you forget liblua in the dependencies
  • The revision 175 doesn't compile with g++ 4.3. I fix this (we just have to add header) :
    Quote
    Index: shared_lib/sources/platform/posix/socket.cpp
    ===================================================================
    --- shared_lib/sources/platform/posix/socket.cpp        (révision 176)
    +++ shared_lib/sources/platform/posix/socket.cpp        (copie de travail)
    @@ -10,6 +10,8 @@

     #include <stdexcept>
     #include <sstream>
    +#include <stdlib.h>
    +#include <string.h>
     #if defined(HAVE_SYS_IOCTL_H)
     #define BSD_COMP /* needed for FIONREAD on Solaris2 */
     #include <sys/ioctl.h>
    Index: shared_lib/sources/util/conversion.cpp
    ===================================================================
    --- shared_lib/sources/util/conversion.cpp      (révision 176)
    +++ shared_lib/sources/util/conversion.cpp      (copie de travail)
    @@ -11,6 +11,8 @@

     #include "conversion.h"

    +#include <stdlib.h>
    +#include <string.h>
     #include <stdexcept>
     #include <cstdio>

    Index: shared_lib/sources/util/properties.cpp
    ===================================================================
    --- shared_lib/sources/util/properties.cpp      (révision 176)
    +++ shared_lib/sources/util/properties.cpp      (copie de travail)
    @@ -11,6 +11,7 @@

     #include "properties.h"

    +#include <string.h>
     #include <fstream>
     #include <stdexcept>

    Index: shared_lib/sources/util/util.cpp
    ===================================================================
    --- shared_lib/sources/util/util.cpp    (révision 176)
    +++ shared_lib/sources/util/util.cpp    (copie de travail)
    @@ -11,6 +11,7 @@

     #include "util.h"

    +#include <string.h>
     #include <ctime>
     #include <cassert>
     #include <stdexcept>
  • glest search data/lang/english.lng.lng enstead of data/lang/english.lng (is it a global bug ?). So I rename english.lng  to english.lng.lng and it's work well.
« Last Edit: 1 January 1970, 00:00:00 by jschneider »

@kukac@

  • Guest
topic
« Reply #24 on: 26 July 2008, 15:06:42 »
Well, the 300 is quite old :P try some never one (312, 320)
« Last Edit: 1 January 1970, 00:00:00 by @kukac@ »