Problems in compilation

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
dalele
Space Krill
Posts: 4
Joined: Tue Jun 20, 2006 12:53 pm

Problems in compilation

#1 Post by dalele »

I updated to the most recent SVN version of FO.

But:

Code: Select all

$ scons
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for pkg-config... ok
Checking for GiGiSDL >= 0.6.0... ok
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.33.1... yes
Looking for boost lib boost_serialization...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... yes
Looking for boost lib boost_iostreams...
Checking for main() in C++ library boost_iostreams... yes
Boost configuration... ok
Checking for libgraph >= 2.8... ok
Checking for libgvc >= 2.8... ok
Checking for log4cpp >= 0.3.4b... ok
Checking for C++ header file log4cpp/Category.hh... yes
Checking for log4cpp::Category::getRoot() in C++ library log4cpp... yes
Configuration successful... yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -pthread -g -O2 -Wall -DFREEORION_LINUX -DENABLE_BINRELOC -I/usr/include/SDL -I/usr/local/include -I/usr/include/graphviz -I/usr/include/graphviz -I/usr/local/include -c -o combat/Combat.o combat/Combat.cpp
g++ -pthread -g -O2 -Wall -DFREEORION_LINUX -DENABLE_BINRELOC -I/usr/include/SDL -I/usr/local/include -I/usr/include/graphviz -I/usr/include/graphviz -I/usr/local/include -c -o Empire/ClientEmpireManager.o Empire/ClientEmpireManager.cpp
Empire/../Empire/Empire.h:31: error: uninitialized const 'INVALID_OBJECT_ID'
scons: *** [Empire/ClientEmpireManager.o] Error 1
scons: building terminated because of errors.
$
Somebody knows how to solve it? I have updated today the SVN and my system is ubuntu dapper.

Thanks

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

#2 Post by Geoff the Medio »

Ugh. Once again due to MSVC not complaining about a mistake of mine that it should have.

Should be fixed now.

dalele
Space Krill
Posts: 4
Joined: Tue Jun 20, 2006 12:53 pm

#3 Post by dalele »

Now it appears a new error:

Code: Select all

$ scons
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for pkg-config... ok
Checking for GiGiSDL >= 0.6.0... ok
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.33.1... yes
Looking for boost lib boost_serialization...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... yes
Looking for boost lib boost_iostreams...
Checking for main() in C++ library boost_iostreams... yes
Boost configuration... ok
Checking for libgraph >= 2.8... ok
Checking for libgvc >= 2.8... ok
Checking for log4cpp >= 0.3.4b... ok
Checking for C++ header file log4cpp/Category.hh... yes
Checking for log4cpp::Category::getRoot() in C++ library log4cpp... yes
Configuration successful... yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -pthread -g -O2 -Wall -DFREEORION_LINUX -DENABLE_BINRELOC -I/usr/include/SDL -I/usr/local/include -I/usr/include/graphviz -I/usr/include/graphviz -I/usr/local/include -c -o combat/Combat.o combat/Combat.cpp
g++ -pthread -g -O2 -Wall -DFREEORION_LINUX -DENABLE_BINRELOC -I/usr/include/SDL -I/usr/local/include -I/usr/include/graphviz -I/usr/include/graphviz -I/usr/local/include -c -o Empire/ClientEmpireManager.o Empire/ClientEmpireManager.cpp
g++ -pthread -g -O2 -Wall -DFREEORION_LINUX -DENABLE_BINRELOC -I/usr/include/SDL -I/usr/local/include -I/usr/include/graphviz -I/usr/include/graphviz -I/usr/local/include -c -o Empire/Empire.o Empire/Empire.cpp
Empire/../universe/Building.h:97: error: declaration of 'CaptureResult BuildingType::CaptureResult(int, int, int, bool) const'
Empire/../universe/Enums.h:336: error: changes meaning of 'CaptureResult' from 'enum CaptureResult'
scons: *** [Empire/Empire.o] Error 1
scons: building terminated because of errors.
$
Thanks Geoff the Medio

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

#4 Post by Geoff the Medio »

I think I've fixed that one too, though since I don't actually get the error myself, I'm not sure. Let me know if it still doesn't work.

dalele
Space Krill
Posts: 4
Joined: Tue Jun 20, 2006 12:53 pm

#5 Post by dalele »

From directory freeorion/FreeOrion I execute this, but the problem persists:

Code: Select all

cd ../.. && rm -fr freeorion && svn co https://svn.sourceforge.net/svnroot/freeorion/trunk freeorion && cd freeorion/FreeOrion && vim SConstruct && vim SConscript && vim client/human/chmain.cpp && scons
PD: I remove the references to FMOD when I edit the files.

Thanks again.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

#6 Post by Geoff the Medio »

Ok... I renamed that function so it shouldn't conflict with the enum name. If that doesn't fix things, I'm not sure what else to try. So... please try again.

dalele
Space Krill
Posts: 4
Joined: Tue Jun 20, 2006 12:53 pm

#7 Post by dalele »

Ok. Fixed :D

Thanks Geoff the Medio.

Post Reply