I've tried with different boost versions (1.47, 1.49, 1.53) in order to compile freeorion from source, yet it seems impossible on ubuntu. Cmake . goes all well, but when compiling, it yields to the following error:
Code: Select all
[ 13%] Building CXX object CMakeFiles/freeorioncommon.dir/Empire/ResourcePool.cpp.o
[ 13%] Building CXX object CMakeFiles/freeorioncommon.dir/Empire/Diplomacy.cpp.o
[ 13%] Building CXX object CMakeFiles/freeorioncommon.dir/network/Message.cpp.o
[ 14%] Building CXX object CMakeFiles/freeorioncommon.dir/network/MessageQueue.cpp.o
In file included from /usr/local/include/boost/thread/detail/platform.hpp:17:0,
from /usr/local/include/boost/thread/condition_variable.hpp:12,
from /usr/local/include/boost/thread/condition.hpp:9,
from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.h:5,
from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:1:
/usr/local/include/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
In file included from /usr/local/include/boost/thread/condition_variable.hpp:12:0,
from /usr/local/include/boost/thread/condition.hpp:9,
from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.h:5,
from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:1:
/usr/local/include/boost/thread/detail/platform.hpp:67:9: error: #error "Sorry, no boost threads are available for this platform."
In file included from /usr/local/include/boost/thread/condition.hpp:9:0,
from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.h:5,
from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:1:
/usr/local/include/boost/thread/condition_variable.hpp:18:2: error: #error "Boost threads unavailable on this platform"
In file included from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.h:6:0,
from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:1:
/usr/local/include/boost/thread/mutex.hpp:18:2: error: #error "Boost threads unavailable on this platform"
In file included from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.h:5:0,
from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:1:
/usr/local/include/boost/thread/condition.hpp:13:13: error: ‘condition_variable_any’ does not name a type
In file included from /home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:1:0:
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.h:19:30: error: expected ‘)’ before ‘&’ token
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.h:42:5: error: ‘condition’ in namespace ‘boost’ does not name a type
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.h:43:5: error: ‘mutex’ in namespace ‘boost’ does not name a type
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:13:27: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp: In member function ‘bool MessageQueue::Empty() const’:
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:18:12: error: ‘boost::mutex’ has not been declared
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:18:31: error: expected ‘;’ before ‘lock’
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp: In member function ‘std::size_t MessageQueue::Size() const’:
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:23:12: error: ‘boost::mutex’ has not been declared
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:23:31: error: expected ‘;’ before ‘lock’
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp: In member function ‘void MessageQueue::Clear()’:
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:28:12: error: ‘boost::mutex’ has not been declared
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:28:31: error: expected ‘;’ before ‘lock’
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp: In member function ‘void MessageQueue::PushBack(Message&)’:
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:33:12: error: ‘boost::mutex’ has not been declared
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:33:31: error: expected ‘;’ before ‘lock’
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:37:9: error: ‘m_have_synchronous_response’ was not declared in this scope
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp: In member function ‘void MessageQueue::PopFront(Message&)’:
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:41:12: error: ‘boost::mutex’ has not been declared
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:41:31: error: expected ‘;’ before ‘lock’
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp: In member function ‘void MessageQueue::EraseFirstSynchronousResponse(Message&)’:
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:47:12: error: ‘boost::mutex’ has not been declared
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:47:31: error: expected ‘;’ before ‘lock’
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:50:9: error: ‘m_have_synchronous_response’ was not declared in this scope
/home/david/Centropruebas/freeorion/FreeOrion/network/MessageQueue.cpp:50:42: error: ‘lock’ was not declared in this scope
make[2]: *** [CMakeFiles/freeorioncommon.dir/network/MessageQueue.cpp.o] Error 1
make[1]: *** [CMakeFiles/freeorioncommon.dir/all] Error 2
make: *** [all] Error 2
Can anyone assist me?
Thank you.