Questions, problems and discussion about compiling FreeOrion.
Moderator: Oberlus
-
redhound
- Space Krill
- Posts: 7
- Joined: Sat Dec 24, 2011 5:30 pm
#1
Post
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.
-
Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
#2
Post
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.
-
redhound
- Space Krill
- Posts: 7
- Joined: Sat Dec 24, 2011 5:30 pm
#3
Post
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:
Now GiGi compiled and installed ok, so next I will try to build freeorion itself.