[solved] bulding FO: undefined reference to `GG::Clr::Clr()'

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
FlorianSchmidt
Space Krill
Posts: 6
Joined: Sun Feb 08, 2009 9:38 pm

[solved] bulding FO: undefined reference to `GG::Clr::Clr()'

#1 Post by FlorianSchmidt »

Revision: 2807

First I had to deal with the same error as mentioned in this thread.

Code: Select all

util/Serialize.cpp:50:4: error: #error "Incompatible endianness for binary serialization."
But adding

Code: Select all

env.AppendUnique(CCFLAGS=['-DOGRE_GUI_GLX', '-DOGRE_CONFIG_LITTLE_ENDIAN', '-I/opt/freeorion/freeorion-build/include', '-I/opt/freeorion/freeorion-build/include/OGRE'])
to SConstruct as suggested got me around this.
"/opt/freeorion/freeorion-build" is the prefix where GG, boost and ogre are installed. I am using Gentoo linux and I was able to install all the other dependencies from within Gentoo.

Now I am dealing with:

Code: Select all

Empire/Empire.o: In function `Empire::Empire()':
Empire.cpp:(.text+0x824a): undefined reference to `GG::Clr::Clr()'
Empire/Empire.o: In function `Empire::Empire()':
Empire.cpp:(.text+0x96ea): undefined reference to `GG::Clr::Clr()'
I am out of ideas, any hints?
Or is any additional information required?

thanks
cu
Florian
Last edited by FlorianSchmidt on Thu Feb 12, 2009 8:24 pm, edited 1 time in total.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: bulding FO: undefined reference to `GG::Clr::Clr()'

#2 Post by OndrejR »

FO don't see GG. In Debian there is file /etc/ld.so.conf where should be path to /usr/local/lib. If there is something similar in Gentoo, then also add /opt/... where GG libs are installed and run ldconfig and then scons configure on FO.

FlorianSchmidt
Space Krill
Posts: 6
Joined: Sun Feb 08, 2009 9:38 pm

Re: bulding FO: undefined reference to `GG::Clr::Clr()'

#3 Post by FlorianSchmidt »

Thanks for your reply OndrejR.

Code: Select all

$ cat /etc/ld.so.conf | grep freeorion
already gives

Code: Select all

/opt/freeorion/freeorion-build/lib
/opt/freeorion/freeorion-build/lib/OGRE
I also ran ldconfig before configuring FO.

FlorianSchmidt
Space Krill
Posts: 6
Joined: Sun Feb 08, 2009 9:38 pm

Re: bulding FO: undefined reference to `GG::Clr::Clr()'

#4 Post by FlorianSchmidt »

Got it.

The thread that I linked to in my initial post now holds all the solutions I needed.

Lothos
Space Krill
Posts: 1
Joined: Mon Feb 16, 2009 8:01 pm

Re: [solved] bulding FO: undefined reference to `GG::Clr::Clr()'

#5 Post by Lothos »

Hello!

What did you do? I did read this thread, but have no idea what to do, since the last posts only deal with some debugging.

It would be really great if you can help me fix this problem.

J

FlorianSchmidt
Space Krill
Posts: 6
Joined: Sun Feb 08, 2009 9:38 pm

Re: [solved] bulding FO: undefined reference to `GG::Clr::Clr()'

#6 Post by FlorianSchmidt »

I did this (first post) to get around the "Incompatible endianness for binary serialization." - error.
I added the line somewhere near the end, but not as the last line.

And I did this (also first post) to get around the error in the subject of this thread.

Post Reply