Author Topic: Compiling GAE on Linux  (Read 2054 times)

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Compiling GAE on Linux
« on: 3 October 2008, 06:26:51 »
Hi all,

I've just uploaded the source to the SVN repository, so now I will help people compile it for linux. It should also be possible to compile on Windows but I only want to do one thing at once.

1. Get Dependencies:
The name is most likely [libraryname]-devel especially in package management software.
SVN (to download the source) or download from release system
SDL
OpenAL SDK
Xerces-c
OggVorbis
OpenGL SDK (if you already have the headers don't worry, I think the files are outdated)
Perforce Jam (Boost Jam didn't work when I tried it)
wxWidgets (if you want the map editor)

Might also need autoconf and autogen.

The next are available from the download section of glestae project:
Glest Data files
Four Path Magitech (not sure if this is needed)

Let me know if I missed any.

2. Check out the source:
This is for the current latest release. You can omit '/tags/0.2.7' if you want the whole repository but its over 25MB.
svn co https://glestae.svn.sourceforge.net/svn ... tags/0.2.7 [directory to put it in]

OR
Download it from the release system. http://sourceforge.net/project/showfile ... _id=293627

NOTE: you can also use a GUI like KDE SVN.

If you want to look at the source before 'checking it out' you can go to http://glestae.svn.sourceforge.net/viewvc/glestae/

3. Configure:
a. Go to the directory where you checked out the files
(in a console)
b. Go to 'mk/linux'
c. Type './configure'
d. If it says to use jam, it worked and you can go to the next step, otherwise you need a dependency from step 1 or something else went wrong. If it didn't work try autogen. ie. 'sh autogen.sh' then run configure again.

4. Run jam:
a. Type 'jam'
b. It should be compiling now and will take a while.
c. If it gets to the end without any errors (should say something like linking glestadv) go to next step, otherwise there might be a problem with the code or missing a dependency.

5. Copy and run binary:
The binary should be in the directory, named 'glestadv'.
a. Copy this to the root of the data files
b. Make sure the glestadv.ini is in the directory and configured the way you want it
c. Run the binary as normal

These instructions are not completely tested so there could be a few errors. I would like everyone to be able to compile the source. After linux users can compile I will help with Windows users unless someone else does it before me.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

jrepan

  • Guest
Re: Compiling GAE on Linux
« Reply #1 on: 3 October 2008, 09:46:53 »
I was able to compile it.
I had to run ./autogen.sh before ./configure and binary is named glest(not glestadv).
EDIT: Binary is named glestadv in 0.3.x branch, but not in 0.2.7

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Compiling GAE on Linux
« Reply #2 on: 6 October 2008, 12:55:34 »
Thanks for sharing Jrepan. Did I list too many dependencies? Any problems with Glest data?
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

jrepan

  • Guest
Re: Compiling GAE on Linux
« Reply #3 on: 8 October 2008, 12:13:37 »
Quote from: "hailstone"
Did I list too many dependencies?
I think not. Glest package for Arch Linux has same dependencies.
Quote
Any problems with Glest data?
I used original Glest data and I had to create data/core/menu/textures/textentry.tga(copied button_big.tga, because it doesn't have separate texture(yet?)).

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Compiling GAE on Linux
« Reply #4 on: 10 October 2008, 13:12:44 »
Will need to work out something with the data then but it is good that it is working.

If anybody has problems with compiling GAE on Linux this is the place to ask for help. People are keen to compile on Windows so I will work on that this weekend.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

gruese

  • Guest
Re: Compiling GAE on Linux
« Reply #5 on: 13 October 2008, 08:24:04 »
Hey, a windows how-to-compile would be great. I tried it using Visual C++ 2005 Express Edition but failed at the include stage.

 

anything