Author Topic: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)  (Read 10930 times)

GlestTest

  • Swordman
  • *
  • Posts: 13
    • View Profile
Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« on: 31 December 2008, 12:09:00 »
Hello community.

I am running a 64bit Ubuntu 8.10
Since the 32bit version of Glest didn't work, I compiled the source... as described in the readme with ./configure and jam.

No file "glest" (or anything to start the program) was created in the compilation progress, so I used "glest", "glest.bin" and "glest.ini" from the 32bit binary. Additionally I copied in the data files into my glest folder.
When I try to run ./glest, *glest.log says "./glest.bin: error while loading shared libraries: libvorbis.so.0: cannot open shared object file: No such file or directory"
So, I copied the /usr/lib/libvorbis.so.0 file into the glest/lib/ folder. The error log then says: "./glest.bin: error while loading shared libraries: libvorbis.so.0: wrong ELF class: ELFCLASS64"

Can anybody please help me with this? I guess its a problem with the 32bit glest.bin and the 64bit libvorbis.so.0 ?

Thanks,
GlestTest

-----------
EDIT:
I downloaded a 32 bit version of libvorbis.so.0 and got error messages that some other files were missing. I made symbolic links to each of them. Now, glest tries to start up, crashes the Xserver :O  and prints to the *glest.log: "./glest.bin: symbol lookup error: ./glest.bin: undefined symbol: ov_open"

EDIT2: Found out that ov_open is related to ogg vorbis.
« Last Edit: 1 January 2009, 10:37:12 by GlestTest »

GlestTest

  • Swordman
  • *
  • Posts: 13
    • View Profile
Re: Trying to compile/run Glest on 64bit
« Reply #1 on: 31 December 2008, 13:14:06 »
I made it!!!!!!!!!!!!!
For anybody who is having problems: I will post a quick installation guide in an instant.

GlestTest

  • Swordman
  • *
  • Posts: 13
    • View Profile
Re: Trying to compile/run Glest on 64bit
« Reply #2 on: 31 December 2008, 14:03:23 »
EDIT:
It might be easier to compile Glest from source. Alternatively, you can try this:
/EDIT

Installation of Glest on 64bit Linux (without compiling) - Tested on a 64bit Ubuntu 8.10 with glest 3.1.2
-----------------------------------------------------------------------------------------------------------------------------------------------------

- Get the 32 bit binary and the glest_data from glest.org - upack them
- You should get 2 folders: glest_game and glest_linux32_bin_3.1.2
- Copy contents of glest_linux32_bin_3.1.2 into glest_game folder

- Get 32bit lib files, since the game cant run with the 64 bit files that reside in your /usr/lib/ folder:
- Go to http://packages.ubuntu.com or a similar repository site and search for the 32bit / i386 versions of following packages:

libopenal* - in my case: libopenal1_1.3.253-4ubuntu1_i386.deb
libvorbis* - in my case: libvorbis0a_1.2.0.dfsg-3.1_i386.deb
libvorbisfile* - in my case: libvorbisfile3_1.2.0.dfsg-1ubuntu0.1_i386.deb

- extract .deb files with dpkg -x File.deb  DestinationFolder
- extract .rpm files: Dunno how, use google ;)

- You should find those six files (or similar) in the extracted archives:
libopenal.so.1
libopenal.so.1.3.253
libvorbis.so.0
libvorbis.so.0.4.0
libvorbisfile.so.3
libvorbisfile.so.3.2.0

- Copy the six files into the glest_game/lib folder.
- Rename libopenal.so.1 to libopenal.so.0 since Glest looks for a libopenal.so.0 file
- Start ./glest - it should work

If not:
- look for a *glest.log file in your glest_game folder and see what went wrong.
- get missing lib files from repository site and/or rename/symlink existing lib files so glest will find them

Happy gaming

Please tell me if this worked for you
« Last Edit: 6 January 2009, 22:58:42 by GlestTest »

mictes

  • Guest
Re: Trying to compile/run Glest on 64bit
« Reply #3 on: 31 December 2008, 16:53:06 »
Thank you!
I have no 64bit system but I'll get one soon, so I'll test it out ^^

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Trying to compile/run Glest on 64bit
« Reply #4 on: 1 January 2009, 10:14:09 »
Thanks GlestTest. You could add Linux to the end of the topic title to make it more clear unless people wanted to discuss Windows 64-bit. I already have Glest working on it btw (EDIT: I mean Windows 64-bit).
« Last Edit: 1 January 2009, 13:22:50 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

GlestTest

  • Swordman
  • *
  • Posts: 13
    • View Profile
Re: Trying to compile/run Glest on 64bit
« Reply #5 on: 1 January 2009, 10:56:17 »
Quote from: "hailstone"
I already have Glest working on it btw.
On Linux? Did you get it to compile properly?

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #6 on: 1 January 2009, 12:51:17 »
What's the problem? Could you please post the build log, better only the error message.

Which version did you try to compile? Plain svn trunk is not compilable for linux at the moment. You have to add small patches, see http://http://glest.org/glest_board/viewtopic.php?f=11&t=3890. Not sure about the source for 3.1.2.

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #7 on: 1 January 2009, 13:21:49 »
Quote
On Linux? Did you get it to compile properly?
I was talking about Windows 64-bit.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

jrepan

  • Guest
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #8 on: 1 January 2009, 13:29:11 »
Glest can be compiled on 64bit Linux same way as on 32bit.

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #9 on: 2 January 2009, 07:48:49 »
I think you need to either use all 32bit libs or 64bit libs for it to compile properly - no mixed. I could be wrong though.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

GlestTest

  • Swordman
  • *
  • Posts: 13
    • View Profile
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #10 on: 2 January 2009, 19:11:23 »
Quote from: "jrepan"
Glest can be compiled on 64bit Linux same way as on 32bit.
Did you get a glest executable file after compiling?

jrepan

  • Guest
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #11 on: 2 January 2009, 20:41:33 »
Quote from: "GlestTest"
Quote from: "jrepan"
Glest can be compiled on 64bit Linux same way as on 32bit.
Did you get a glest executable file after compiling?
No, I didn't. But because of missing includes, not because I have 64bit Linux. Are you trying to compile 3.1.2 or svn? Also post your build log.
I have installed Glest from Arch Linux package and they use this patch for compiling. It is for 3.1.2

GlestTest

  • Swordman
  • *
  • Posts: 13
    • View Profile
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #12 on: 6 January 2009, 12:40:09 »
Quote from: "jrepan"
I have installed Glest from Arch Linux package and they use this patch for compiling. It is for 3.1.2
Thanks, but I have no idea how to apply this patch. Is it specific to the Arch Linux packetmanager?
I used the glest-source-3.1.2.tar.bz2 from SourceForge
Results from ./configure and jam attatched. (Forum didnt like .txt or .log files, so I had to tar.gz the files)
In short: Two files (socket.cpp, conversion.cpp) are missing declarations.

[attachment deleted by admin]

jrepan

  • Guest
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #13 on: 6 January 2009, 14:48:34 »
Quote from: "GlestTest"
Thanks, but I have no idea how to apply this patch. Is it specific to the Arch Linux packetmanager?
I used the glest-source-3.1.2.tar.bz2 from SourceForge
Results from ./configure and jam attatched. (Forum didnt like .txt or .log files, so I had to tar.gz the files)
In short: Two files (socket.cpp, conversion.cpp) are missing declarations.
Download that patch to directory where you compile Glest
Then run: patch -p1 < fix_includes.patch

GlestTest

  • Swordman
  • *
  • Posts: 13
    • View Profile
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #14 on: 6 January 2009, 17:18:54 »
It works. Thanks for your help!

RainCT

  • Guest
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #15 on: 17 February 2009, 23:31:55 »
Hey,

Any reason why you compiled it from source? Ubuntu Intrepid (8.10) includes Glest 3.2.1 in the official repositories (packages glest and glest-data in multiverse -as the data files aren't free-).

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #16 on: 11 March 2009, 20:59:39 »
you don't need to recompile ;)

you can run glest under wine, to install wine go here:wine HQ

it's a program designed to run windows programs on linux or mac

i installed glest version3.2.1 on linux kubuntu8.04 with wine and it runs it just like windows

i know cause i have a linux and a windows computer
« Last Edit: 31 March 2009, 20:42:16 by archmage101 »
Egypt Remastered!

Proof: Owner of glest@mail.com

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Trying to compile/run Glest on 64bit Linux (Ubuntu 8.10)
« Reply #17 on: 31 March 2009, 20:43:22 »
although i have found out from one of titi's posts that you can't play multiplayer with glest running under wine
Egypt Remastered!

Proof: Owner of glest@mail.com