First, I had to install cmake:
Code: Select all
sudo snap install cmake --classic
Code: Select all
~/Projects/FreeOrion/freeorion-build$ cmake ../freeorion
-- Build type CMAKE_BUILD_TYPE set to Release
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Use CCache for Unix Makefiles called with: ccache program
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.17", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.17", minimum required is "2.7")
-- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.58.0") found components: date_time filesystem iostreams locale log log_setup regex serialization system thread chrono atomic
-- Found Boost: /usr/include (found version "1.65.1") missing components: python27
CMake Warning at /snap/cmake/301/share/cmake-3.17/Modules/FindBoost.cmake:1986 (message):
No header defined for python-py27; skipping header check (note: header-only
libraries have no designated component)
Call Stack (most recent call first):
CMakeLists.txt:259 (find_package)
-- Found Boost: /usr/include (found version "1.65.1") missing components: python-py27
-- Found Boost: /usr/include (found version "1.65.1") found components: python
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.1")
CMake Warning (dev) at /snap/cmake/301/share/cmake-3.17/Modules/FindOpenGL.cmake:305 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
FindOpenGL found both a legacy GL library:
OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so
and GLVND libraries for OpenGL and GLX:
OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
CMakeLists.txt:271 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDL2.so (found version "2.0.8")
CMake Deprecation Warning at GG/CMakeLists.txt:29 (cmake_policy):
The OLD behavior for policy CMP0044 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.58.0") found components: date_time filesystem regex system thread log chrono atomic log_setup
-- Found GLEW: /usr/include (found version "2.0.0")
CMake Warning (dev) at /snap/cmake/301/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args` (cppcheck)
does not match the name of the calling package (CPPCheck). This can lead
to problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindCPPCheck.cmake:12 (find_package_handle_standard_args)
check/CMakeLists.txt:1 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE)
CMake Warning (dev) at /snap/cmake/301/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args`
(pycodestyle) does not match the name of the calling package (PyCodestyle).
This can lead to problems in calling code that expects `find_package`
result variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindPyCodestyle.cmake:11 (find_package_handle_standard_args)
check/CMakeLists.txt:2 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find pycodestyle (missing: PYCODESTYLE_EXECUTABLE)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lucas/Projects/FreeOrion/freeorion-build
Code: Select all
[100%] Linking CXX executable freeorion
/usr/bin/ld: warning: libicui18n.so.55, needed by /usr/local/lib/libboost_locale.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicuuc.so.55, needed by /usr/local/lib/libboost_locale.so, not found (try using -rpath or -rpath-link)
Code: Select all
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt-get update
sudo apt-get install libicu55
Now compilation advances a bit more, but still fails:
Code: Select all
~/Projects/FreeOrion/freeorion-build$ make -j3
[ 19%] Built target freeorionparseobj
[ 35%] Built target GiGi
[ 35%] Built target freeorionparse
[ 36%] Built target GiGiSDL
Build number matches build number in existing Version.cpp, skip regenerating it
Building v0.4.9 HEAD build 2020-02-02.db53471
[ 36%] Built target freeorionversion
[ 62%] Built target freeorioncommon
[ 62%] Linking CXX executable freeoriond
[ 63%] Linking CXX executable freeorionca
[ 63%] Linking CXX executable freeorion
[ 69%] Built target freeorionca
[ 75%] Built target freeoriond
libGiGi.so: undefined reference to `boost::re_detail_106501::cpp_regex_traits_implementation<char>::transform_primary[abi:cxx11](char const*, char const*) const'
libGiGi.so: undefined reference to `boost::re_detail_106501::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
collect2: error: ld returned 1 exit status
CMakeFiles/freeorion.dir/build.make:1110: recipe for target 'freeorion' failed
make[2]: *** [freeorion] Error 1
CMakeFiles/Makefile2:679: recipe for target 'CMakeFiles/freeorion.dir/all' failed
make[1]: *** [CMakeFiles/freeorion.dir/all] Error 2
Makefile:168: recipe for target 'all' failed
make: *** [all] Error 2
Code: Select all
libGiGi.so: undefined reference to `boost::re_detail_106501::cpp_regex_traits_implementation<char>::transform_primary[abi:cxx11](char const*, char const*) const'
libGiGi.so: undefined reference to `boost::re_detail_106501::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'