Compiling GiGi on Linux

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

Post Reply
Message
Author
redhound
Space Krill
Posts: 7
Joined: Sat Dec 24, 2011 5:30 pm

Compiling GiGi on Linux

#1 Post by redhound » Sat Dec 24, 2011 5:39 pm

I have an error then building GiGi 1074 from latest svn trunk with boost 1.48 in Ubuntu 11.10 x86_64:

Code: Select all

[ 89%] Building CXX object test/CMakeFiles/AdamParser-test.dir/TestAdamParser.cpp.o
Linking CXX executable ../AdamParser-test
CMakeFiles/AdamParser-test.dir/TestAdamParser.cpp.o: In function `adam_parser::test_method()':
TestAdamParser.cpp:(.text+0xefc): undefined reference to `GG::Parse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, adobe::adam_callback_suite_t const&)'
collect2: execution of ld ended with return code 1
make[2]: *** [AdamParser-test] Error 1
make[1]: *** [test/CMakeFiles/AdamParser-test.dir/all] Error 2
make: *** [all] Error 2
*Some error messages was originally in russian.

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

Re: Compiling GiGi on Linux

#2 Post by Geoff the Medio » Sat Dec 24, 2011 5:59 pm

I'll ping tzlaine about this, but I suspect you can just omit that and any other "Test" source files that cause compile problems.

redhound
Space Krill
Posts: 7
Joined: Sat Dec 24, 2011 5:30 pm

Re: Compiling GiGi on Linux

#3 Post by redhound » Sun Dec 25, 2011 2:57 pm

I comment those lines in CMakeList.txt:

Code: Select all

...
# enable_testing() 
...
# add_subdirectory(test)
GiGi compiled successfully, but sudo make install failed to install docs.
So, I comment this line also, to disable documentation building:

Code: Select all

# find_package(Doxygen)
Now GiGi compiled and installed ok, so next I will try to build freeorion itself.

Post Reply