Author Topic: Glest 3.2.2 for Linux  (Read 69411 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,228
    • View Profile
    • http://www.titusgames.de
Glest 3.2.2 for Linux
« on: 3 April 2009, 20:54:45 »
Download binaries and data.  ( !! If the game works modify file glest.ini to setup a better display resolution! !!)

The sourcecode is also available, but we recommend the official binaries, compiled by me:
http://downloads.sourceforge.net/glest/glest_source_3.2.2.zip  ( official source code package )
or
http://www.titusgames.de/glest-source-3.2.1.tar.bz2 repackaged source tarball ( with right version string (by titi))

The official binary was compiled on an old ubuntu 6.06 to be as comptible as possible (glibc 2.38).
Hint: If you have a very up to date debian/ubuntu system, you might get in trouble with
libopenal.so.0 which is not available on these systems. Try this workaround:
Code: [Select]
ln -s /usr/lib/libopenal.so.1 <PathToGlestInstallation>/lib/libopenal.so.0


Linux 32-bit installer: https://forum.megaglest.org/index.php?topic=3031.0
« Last Edit: 5 July 2010, 21:52:22 by -Archmage- »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Platyhelminth

  • Guest
Re: Glest 3.2.2 for Linux
« Reply #1 on: 19 July 2009, 09:54:36 »
If you are a x86_64 user with Ubuntu (or debian), you have to use ia32-libs and getlibs to make this "official" binary work.
For ia32-libs you have to enter this command (or something like this):
Code: [Select]
sudo apt-get install ia32-libs
For getlibs, you have to install getlibs from this package : http://frozenfox.freehostia.com/cappy/getlibs-all.deb . Getlibs role is to get 32bit dependencies, after it has been installed you have to enter a command like this:

Code: [Select]
getlibs <PathToGlestInstallation>/glest.bin
For trouble with libopenal.so.0 the command is like:

Code: [Select]
ln -s /usr/lib32/libopenal.so.1 <PathToGlestInstallation>/lib/libopenal.so.0
If you dont already have a 32bit libopenal then you have to enter this command before:

Code: [Select]
getlibs -l libopenal.so.1
        Why doing this when it is much more easyer to directly use a 64bit binary ? ? ?
_ because this game has some problemes in multiplayer, it only works if every body use the same binary. It is a shame, but if you want to play in multiplayer you have to use this 32bit binary.
        You want to play with windows users with wine by using windows binary ?
_ forgive it. It doesn't work for multiplayer.
« Last Edit: 16 August 2009, 03:52:08 by Platyhelminth »

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #2 on: 24 October 2009, 19:34:23 »
I'd like to make an installer for 32 and 64 bit machines.

32-bit first.
« Last Edit: 24 October 2009, 19:37:53 by -Archmage- »
Egypt Remastered!

Proof: Owner of glest@mail.com

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #3 on: 24 October 2009, 21:37:20 »
Put together a package based on the Download links you posted Titi.

Get it here

Please tell me if I'm missing anything, or if something is not supposed to be in there.
Egypt Remastered!

Proof: Owner of glest@mail.com

sg1efc

  • Guest
Re: Glest 3.2.2 for Linux
« Reply #4 on: 25 October 2009, 01:45:38 »
Put together a package based on the Download links you posted Titi.

Get it here

Please tell me if I'm missing anything, or if something is not supposed to be in there.

Thank you very much for this Archmage.  :)

Looking forward to trying this next week when I do a fresh install with Ubuntu 9.10.  When I installed some mods in 3.2.1, I somehow broke Glest & even after completely uninstalled and reinstalled a few times, still can't get the game maps to load to play a game, Lots of laughs.   :)

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #5 on: 25 October 2009, 02:59:40 »
Those are just the files, I'm going to make an installer, after I get a reply.
My Linux computer is down so I don't know if that's correct because I can't test it.

Also, why plain Ubuntu, try Kubuntu, it's awesome.
( update by titi: I removed you ubuntu discussion here because its completly offtopic in this topic )
« Last Edit: 25 October 2009, 23:39:10 by titi »
Egypt Remastered!

Proof: Owner of glest@mail.com

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #6 on: 4 November 2009, 19:48:46 »
Alternative way to download the latest Glest:

Go into Synaptic, type "glest" in the quick search box, select the glest 3.2.1 data and then 3.2.2 source for installation, click "apply".
Glest is playable although the data package is complete so download the glest linux data, and put it in "/usr/share/games/", then navigate to "usr/share/games" and make sure the glest data is named "glest", and also make sure that it is complete.
Egypt Remastered!

Proof: Owner of glest@mail.com

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #7 on: 7 November 2009, 06:51:24 »
Error Report:
Code: [Select]
./glest.bin: error while loading shared libraries: libxerces-c.so.27: cannot open shared object file: No such file or directory

Does anybody have a solution to this problem?
Egypt Remastered!

Proof: Owner of glest@mail.com

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #8 on: 11 November 2009, 02:49:40 »
New error:

Code: [Select]
seth@Kelley-2008:~/Programs/LinuxGlest/Glest_3.2.2$ ./glest.bin
./glest.bin: symbol lookup error: ./glest.bin: undefined symbol: _ZN11xercesc_2_76XMLUni22fgXercescDefaultLocaleE
Egypt Remastered!

Proof: Owner of glest@mail.com

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,228
    • View Profile
    • http://www.titusgames.de
Re: Glest 3.2.2 for Linux
« Reply #9 on: 11 November 2009, 13:15:52 »
start ./glest instead of ./glest.bin
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #10 on: 11 November 2009, 14:47:46 »
What does that do?
Just tried it, doesn't seem to do anything...
Egypt Remastered!

Proof: Owner of glest@mail.com

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Glest 3.2.2 for Linux
« Reply #11 on: 11 November 2009, 16:20:59 »
It uses the libraries in the subfolder lib, when they are not in your system. You probably made a symlink to your system libxerces, which is incompatible. Remove the symlink and try again ./glest.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #12 on: 11 November 2009, 16:24:15 »
How do I remove a symlink?
Egypt Remastered!

Proof: Owner of glest@mail.com

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Glest 3.2.2 for Linux
« Reply #13 on: 11 November 2009, 16:31:10 »
Just delete it.

What have you done between reply #7 and #8?

Please run:
Code: [Select]
$ ls -l /usr/lib | grep xerces
and post output.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #14 on: 11 November 2009, 16:38:30 »
Quote
What have you done between reply #7 and #8?

Tried running the glest binary, I did tons of stuff, but I don't have that terminal window open anymore, and I can't really remember what I did.



Output:
Code: [Select]
seth@Kelley-2008:~$ ls -l /usr/lib | grep xerces
drwxr-xr-x  2 root root     4096 2009-11-10 21:32 libxerces28
-rw-r--r--  1 root root  3796888 2009-08-24 11:28 libxerces-c-3.0.so
lrwxrwxrwx  1 root root       17 2009-11-10 21:32 libxerces-c.so -> libxerces-c.so.28
lrwxrwxrwx  1 root root       19 2009-11-01 14:25 libxerces-c.so.28 -> libxerces-c.so.28.0
-rw-r--r--  1 root root  4006344 2009-08-26 17:38 libxerces-c.so.28.0
lrwxrwxrwx  1 root root       22 2009-11-10 21:32 libxerces-depdom.so -> libxerces-depdom.so.28
lrwxrwxrwx  1 root root       24 2009-11-01 14:25 libxerces-depdom.so.28 -> libxerces-depdom.so.28.0
-rw-r--r--  1 root root   461504 2009-08-26 17:38 libxerces-depdom.so.28.0
Egypt Remastered!

Proof: Owner of glest@mail.com

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Glest 3.2.2 for Linux
« Reply #15 on: 11 November 2009, 16:50:54 »
Looks fine. Is there any entry in glest.log after running ./glest?

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #16 on: 11 November 2009, 16:51:46 »
Checking...

Done.

Code: [Select]
./glest.bin: error while loading shared libraries: ./lib/libstdc++.so.6: file too short

My first attempt to fix this would probably be a getlibs command or something of the sorts.

Edit: Would this work?:

Code: [Select]
getlibs -l libstdc++.so.6
« Last Edit: 11 November 2009, 16:56:39 by -Archmage- »
Egypt Remastered!

Proof: Owner of glest@mail.com

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Glest 3.2.2 for Linux
« Reply #17 on: 11 November 2009, 17:07:50 »
Oh, you use 64bit linux. I never used 64bit linux, so i can't help you with that.

You could try getlibs, but i think you have it already in /usr/lib32.

Just a thought:
Code: [Select]
$ LD_LIBRARY_PATH=/usr/lib32:./lib ./glest.bin

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #18 on: 11 November 2009, 17:12:29 »
Just tried:
$ LD_LIBRARY_PATH=/usr/lib32:./lib ./glest.bin

I still get:
Code: [Select]
./glest.bin: symbol lookup error: ./glest.bin: undefined symbol: _ZN11xercesc_2_76XMLUni22fgXercescDefaultLocaleE



Trying my getlibs thing....

Done, result:

Code: [Select]
seth@Kelley-2008:~/Programs/LinuxGlest/Glest_3.2.2$ getlibs -l libstdc++.so.6
libstdc++.so.6: ppu-g++
The following i386 packages will be installed:
ppu-g++
Continue [Y/n]? y
Downloading ...
Installing libraries ...
seth@Kelley-2008:~/Programs/LinuxGlest/Glest_3.2.2$
Egypt Remastered!

Proof: Owner of glest@mail.com

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #19 on: 11 November 2009, 17:14:17 »
I still have the symlink problem...
How do I delete it?
I really don't know anything about symlinks...
Egypt Remastered!

Proof: Owner of glest@mail.com

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Glest 3.2.2 for Linux
« Reply #20 on: 11 November 2009, 17:32:57 »
It's not a symlink. I thought you made one for libxerces. The used libraries are incompatible.

Have you tried what Platyhelminth said in the second post?

Just thoughts, because i'm not familiar with this 64bit-32bit-problems.
Code: [Select]
$ getlibs -l libxerces-c28
$ ls -l /usr/lib32 | grep xerces
Only proceed, if there is libxerces-c.so.28.
Code: [Select]
$ mv lib/libxerces-c.so.27 lib/libxerces-c.so.27_renamed
$ ln -s /usr/lib32/libxerces-c.so.28 lib/libxerces-c.so.27
$ ./glest

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,228
    • View Profile
    • http://www.titusgames.de
Re: Glest 3.2.2 for Linux
« Reply #21 on: 11 November 2009, 20:00:23 »
Why don't you simply use the installer from www.liflg.org? They have a 64 bit version.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #22 on: 12 November 2009, 13:48:19 »
Because that starts all over with the libxerces problem.
Egypt Remastered!

Proof: Owner of glest@mail.com

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,886
  • Make it so.
    • View Profile
    • My Website
Re: Glest 3.2.2 for Linux
« Reply #23 on: 24 November 2009, 23:00:37 »
Can someone compile on (K)Ubuntu 9.10 with libxerces-c.so.28?

Yggdrasil, I don't know if I tried what you posted, trying now......


This command:
Code: [Select]
getlibs -l libxerces-c28 Did this:
Code: [Select]
seth@Kelley-2008:~/Programs/LinuxGlest$ getlibs -l libxerces-c28
libxerces-c28: libxerces-c28
The following i386 packages will be installed:
libxerces-c28
Continue [Y/n]? y
Downloading ...
Installing libraries ...
[sudo] password for seth:
seth@Kelley-2008:~/Programs/LinuxGlest$


This command:
Code: [Select]
ls -l /usr/lib32 | grep xerces Did this:
Code: [Select]
seth@Kelley-2008:~/Programs/LinuxGlest$ ls -l /usr/lib32 | grep xerces
-rw-r--r-- 1 root root  9335228 2009-11-07 01:42 libxerces-c.a
-rw-r--r-- 1 root root      877 2009-11-07 01:42 libxerces-c.la
lrwxrwxrwx 1 root root       18 2009-11-07 01:42 libxerces-c.so -> libxerces-c-3.0.so
lrwxrwxrwx 1 root root       19 2009-11-10 21:26 libxerces-c.so.27 -> libxerces-c.so.28.0
lrwxrwxrwx 1 root root       19 2009-11-24 18:04 libxerces-c.so.28 -> libxerces-c.so.28.0
-rw-r--r-- 1 root root  3881496 2009-11-24 18:04 libxerces-c.so.28.0
lrwxrwxrwx 1 root root       24 2009-11-24 18:04 libxerces-depdom.so.28 -> libxerces-depdom.so.28.0
-rw-r--r-- 1 root root   440024 2009-11-24 18:04 libxerces-depdom.so.28.0
seth@Kelley-2008:~/Programs/LinuxGlest$
As you can see I don't have plain libxerces-c.so.28, I have libxerces-c.so.28.0...
I assume it's safe to proceed with slightly modified commands?

« Last Edit: 24 November 2009, 23:12:39 by -Archmage- »
Egypt Remastered!

Proof: Owner of glest@mail.com

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Glest 3.2.2 for Linux
« Reply #24 on: 25 November 2009, 14:04:03 »
You don't need to run the rest. You have already libxerces-c.so.27.

If it still does not work, i have no further idea. Better try building yourself or use the package of your distribution.

 

anything