Page 1 of 1

Compiling GiGi on Linux

Posted: Sat Dec 24, 2011 5:39 pm
by redhound
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.

Re: Compiling GiGi on Linux

Posted: Sat Dec 24, 2011 5:59 pm
by Geoff the Medio
I'll ping tzlaine about this, but I suspect you can just omit that and any other "Test" source files that cause compile problems.

Re: Compiling GiGi on Linux

Posted: Sun Dec 25, 2011 2:57 pm
by redhound
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.