Author Topic: compile problems gae_0.2.8 ( linux 32bit )  (Read 1402 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
compile problems gae_0.2.8 ( linux 32bit )
« on: 29 October 2008, 20:09:49 »
Hi, I have problems compiling GAE 0.2.8 in Ubuntu 6.06 32 bit.

I downloaded
http://glest.codemonger.org/files/glest ... 0.2.8.tbz2
in gae/mk/linux
i typed:
./autogen.sh
./configure
jam

I can compile all other glest versions on this computer (official binaries were made by me).
So whats wrong here?
Code: [Select]
tscharn@p60-3000:~/Desktop/glest/gae/mk/linux$ jam
...found 535 target(s)...
...using 1 temp target(s)...
...updating 146 target(s)...
C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/platform/window_gl.o
shared_lib/include/platform/types.h:50: Fehler: expected initializer before »*« token
.....

Code: [Select]
tscharn@p60-3000:~/Desktop/glest/gae/mk/linux$ gcc --version
gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
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
Re: compile problems gae_0.2.8 ( linux 32bit )
« Reply #1 on: 29 October 2008, 20:50:13 »
ok found the problem:

He doesnt like these two lines in types.h

Code: [Select]
typedef SDL_mutex* MutexType;
typedef SDL_Thread* ThreadType;

I had to add
   #include <SDL_thread.h>
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
Re: compile problems gae_0.2.8 ( linux 32bit )
« Reply #2 on: 29 October 2008, 22:02:47 »
Not really a problem, but not nice:
The default binary builds with debuginfo option "-g" and the binary is 17MB. This should be changed.
In configure.ac matze behn once added the following lines to solve this problem:
Code: [Select]
...
# stupid autoconf is adding default -g -O2 flags when we don't want this :-/
test ".$CXXFLAGS" = "." && CXXFLAGS=" "
...

does this fix work?

I had to do
> strip glestadv
to get a small binary.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

daniel.santos

  • Guest
Re: compile problems gae_0.2.8 ( linux 32bit )
« Reply #3 on: 30 October 2008, 19:37:33 »
Quote from: "titi"
...I had to add
   #include <SDL_thread.h>

Thanks, I added this to types.h.  I guess that the SDL on my machine includes SDL_thread.h when I include SDL.h, and maybe either the 32 bit version doesn't or it's a difference in the SDL version.  I'm using amd64 Gentoo and I have media-libs/libsdl-1.2.13 installed.  Either way, there shouldn't be any harm in attempting to include it twice.

Also, this answers my question from the other thread, you are running 32 bit linux. :)  I have another machine here I can install that on, maybe I'll do that this next weekend.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: compile problems gae_0.2.8 ( linux 32bit )
« Reply #4 on: 30 October 2008, 19:43:18 »
its an old ubuntu 6.06.
I use this to create binaries because it has an old glibc. By this these binaries work on all other linux distributions.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything