LINUX.ORG.RU

Как собрать freeorion 0.4.8 под CentOS 7?

 , ,


1

2

Подскажите пожалуйста как собрать freeorion 0.4.8 под CentOS 7? Или установить другим способом последнюю версию ориона?

Скачал исходники, распаковал

Запускаю cmake,

[root@localhost src-tarball]# cmake .
CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
  CMake 3.1 or higher is required.  You are running version 2.8.12.2

Пытаюсь обновить cmake,

[root@localhost cmake-3.12.1]# ./bootstrap
---------------------------------------------
CMake 3.12.1, Copyright 2000-2018 Kitware, Inc. and Contributors
C compiler on this system is: cc       
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
Please specify one using environment variable CXX.
The C++ flags are "".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/deepforest/Загрузки/cmake-3.12.1/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------

[root@localhost cmake-3.12.1]# ./configure
---------------------------------------------
CMake 3.12.1, Copyright 2000-2018 Kitware, Inc. and Contributors
C compiler on this system is: cc       
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
Please specify one using environment variable CXX.
The C++ flags are "".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/deepforest/Загрузки/cmake-3.12.1/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------

[root@localhost cmake-3.12.1]# 

Deleted

Ответ на: комментарий от Vsevolod-linuxoid

А как по ним искать? Собирать совсем сложно?

Deleted
()

Ты блеат рукожоп смог положить стабильный православный дебиан, какой нафиг собирать пакеты.

anonymous
()
Ответ на: комментарий от anonymous

ты млять онанизмус, я стабильный и православный смог положить жопорукий дебилиан!))) лол)

Deleted
()
Последнее исправление: Deleted (всего исправлений: 1)
Ответ на: комментарий от Vsevolod-linuxoid

установил «gcc-c++», обновил cmake, пытаюсь собрать орион

[root@localhost src-tarball]# cmake .
-- Setting build type to 'Release' as none was specified.
-- Build type CMAKE_BUILD_TYPE set to Release
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- 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  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.5", minimum required is "2.7") 
CMake Error at /usr/local/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  (Required is at least version "2.7")
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.12/Modules/FindPythonLibs.cmake:265 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:197 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/deepforest/Загрузки/src-tarball/CMakeFiles/CMakeOutput.log".
See also "/home/deepforest/Загрузки/src-tarball/CMakeFiles/CMakeError.log".
[root@localhost src-tarball]# 

Deleted
()
Ответ на: комментарий от O02eg

да, спасибо «yum install python-devel» помогло, теперь это

[root@localhost src-tarball]# cmake .
-- Build type CMAKE_BUILD_TYPE set to Release
-- Use CCache for Unix Makefiles called with: ccache program  
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7") 
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:959 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:198 (find_package)


CMake Error at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:2044 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:198 (find_package)


CMake Error at CMakeLists.txt:212 (if):
  if given arguments:

    "GREATER" "106699"

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
See also "/home/deepforest/Загрузки/src-tarball/CMakeFiles/CMakeOutput.log".
See also "/home/deepforest/Загрузки/src-tarball/CMakeFiles/CMakeError.log".
[root@localhost src-tarball]# 

Deleted
()
Последнее исправление: Deleted (всего исправлений: 2)
Ответ на: комментарий от Deleted

То же самое с бустом, нет -dev пакетов. Сразу говорю, что версия старее 1.58 не подходит, даже не пытайся.

O02eg ★★★★★
()
Ответ на: комментарий от O02eg

Ok) буду обновлять буст

Установлено:
  boost-devel.x86_64 0:1.53.0-27.el7 
Unable to find the requested Boost libraries.

  Boost version: 1.53.0

  Boost include path: /usr/include

  Detected version of Boost is too old.  Requested version was 1.58 (or
  newer).

Deleted
()
Ответ на: комментарий от O02eg

а как обновить boost-devel?

[root@localhost src-tarball]# wget http://repo.enetres.net/enetres.repo -O /etc/yum.repos.d/enetres.repo
--2018-09-05 23:25:16--  http://repo.enetres.net/enetres.repo
Распознаётся repo.enetres.net (repo.enetres.net)... ошибка: Имя или служба не известны.
wget: не удаётся разрешить адрес «repo.enetres.net»

Deleted
()
Ответ на: комментарий от O02eg

дошел до vorbis, вроде все есть, а компилятор пишет что не зватает

=============================================================================================== N/S matched: vorbis ===============================================================================================
libvorbis.i686 : The Vorbis General Audio Compression Codec
libvorbis.x86_64 : The Vorbis General Audio Compression Codec
libvorbis-devel.i686 : Development tools for Vorbis applications
libvorbis-devel.x86_64 : Development tools for Vorbis applications
libvorbis-devel-docs.noarch : Documentation for developing Vorbis applications
mingw32-libvorbis.noarch : MinGW Windows libvorbis library
mingw64-libvorbis.noarch : MinGW Windows libvorbis library
vorbis-tools.x86_64 : The Vorbis General Audio Compression Codec tools
grip.x86_64 : Front-end for CD rippers and Ogg Vorbis encoders

  Показаны только совпадения по названиям и описаниям, для большего используйте «search all».
[root@localhost Загрузки]# 

Deleted
()
Ответ на: комментарий от O02eg

фуух, начоло собитаться, но вылазит это на одном месте

[root@localhost src-tarball]# make -j2
[  0%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser.cpp.o
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Version matches version in existing Version.cpp, skip regenerating it
Building v0.4.8 build ???
[  0%] Built target freeorionversion
[  0%] Building CXX object GG/CMakeFiles/GiGi.dir/src/DropDownList.cpp.o
/home/deepforest/Загрузки/src-tarball/GG/src/DropDownList.cpp: В функции-члене «boost::optional<std::_List_iterator<std::shared_ptr<GG::ListBox::Row> > > ModalListPicker::KeyPressCommon(GG::Key, uint32_t, GG::Flags<GG::ModKey>)»:
/home/deepforest/Загрузки/src-tarball/GG/src/DropDownList.cpp:402:43: ошибка: нет подходящей функции для вызова «GG::ListBox::BringRowIntoView(std::initializer_list<std::_List_iterator<std::shared_ptr<GG::ListBox::Row> > >&)»
             LB()->BringRowIntoView(prev_it);
                                           ^
/home/deepforest/Загрузки/src-tarball/GG/src/DropDownList.cpp:402:43: замечание: candidate is:
In file included from /home/deepforest/Загрузки/src-tarball/GG/GG/DropDownList.h:34:0,
                 from /home/deepforest/Загрузки/src-tarball/GG/src/DropDownList.cpp:25:
/home/deepforest/Загрузки/src-tarball/GG/GG/ListBox.h:396:21: замечание: void GG::ListBox::BringRowIntoView(GG::ListBox::iterator)
     void            BringRowIntoView(iterator it);          ///< moves the scrollbars so that row \a it is visible
                     ^
/home/deepforest/Загрузки/src-tarball/GG/GG/ListBox.h:396:21: замечание:   no known conversion for argument 1 from «std::initializer_list<std::_List_iterator<std::shared_ptr<GG::ListBox::Row> > >» to «GG::ListBox::iterator {aka std::_List_iterator<std::shared_ptr<GG::ListBox::Row> >}»
/home/deepforest/Загрузки/src-tarball/GG/src/DropDownList.cpp:403:20: ошибка: could not convert «prev_it» from «std::initializer_list<std::_List_iterator<std::shared_ptr<GG::ListBox::Row> > >» to «boost::optional<std::_List_iterator<std::shared_ptr<GG::ListBox::Row> > >»
             return prev_it;
                    ^
make[2]: *** [GG/CMakeFiles/GiGi.dir/src/DropDownList.cpp.o] Ошибка 1
make[1]: *** [GG/CMakeFiles/GiGi.dir/all] Ошибка 2
make[1]: *** Ожидание завершения заданий...
[  0%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/DoubleValueRefParser.cpp.o
In file included from /usr/include/c++/4.8.2/memory:81:0,
                 from /usr/local/include/boost/config/no_tr1/memory.hpp:21,
                 from /usr/local/include/boost/get_pointer.hpp:14,
                 from /usr/local/include/boost/proto/transform/default.hpp:21,
                 from /usr/local/include/boost/phoenix/core/meta_grammar.hpp:17,
                 from /usr/local/include/boost/phoenix/core/is_nullary.hpp:15,
                 from /usr/local/include/boost/phoenix/core/actor.hpp:20,
                 from /usr/local/include/boost/phoenix/core.hpp:12,
                 from /usr/local/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /usr/local/include/boost/spirit/home/support/terminal.hpp:16,
                 from /usr/local/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /usr/local/include/boost/spirit/home/lex/lexer/terminals.hpp:13,
                 from /usr/local/include/boost/spirit/home/lex/lexer.hpp:13,
                 from /usr/local/include/boost/spirit/home/lex.hpp:13,
                 from /usr/local/include/boost/spirit/home/lex/lexer_lexertl.hpp:15,
                 from /usr/local/include/boost/spirit/include/lex_lexertl.hpp:16,
                 from /home/deepforest/Загрузки/src-tarball/parse/Lexer.h:6,
                 from /home/deepforest/Загрузки/src-tarball/parse/ConditionParser.h:4,
                 from /home/deepforest/Загрузки/src-tarball/parse/ConditionParserImpl.h:4,
                 from /home/deepforest/Загрузки/src-tarball/parse/ConditionParser.cpp:1:
/usr/include/c++/4.8.2/bits/unique_ptr.h: In instantiation of «void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = ValueRef::ValueRefBase<int>]»:
/usr/include/c++/4.8.2/bits/unique_ptr.h:184:16:   required from «std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = ValueRef::ValueRefBase<int>; _Dp = std::default_delete<ValueRef::ValueRefBase<int> >]»
/usr/include/c++/4.8.2/bits/unique_ptr.h:157:61:   required from «constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr(std::nullptr_t) [with _Tp = ValueRef::ValueRefBase<int>; _Dp = std::default_delete<ValueRef::ValueRefBase<int> >; std::nullptr_t = std::nullptr_t]»
/home/deepforest/Загрузки/src-tarball/parse/../universe/Condition.h:200:73:   required from here
/usr/include/c++/4.8.2/bits/unique_ptr.h:65:22: ошибка: invalid application of «sizeof» to incomplete type «ValueRef::ValueRefBase<int>»
  static_assert(sizeof(_Tp)>0,
                      ^
/usr/include/c++/4.8.2/bits/unique_ptr.h: In instantiation of «void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = ValueRef::ValueRefBase<double>]»:
/usr/include/c++/4.8.2/bits/unique_ptr.h:184:16:   required from «std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = ValueRef::ValueRefBase<double>; _Dp = std::default_delete<ValueRef::ValueRefBase<double> >]»
/usr/include/c++/4.8.2/bits/unique_ptr.h:157:61:   required from «constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr(std::nullptr_t) [with _Tp = ValueRef::ValueRefBase<double>; _Dp = std::default_delete<ValueRef::ValueRefBase<double> >; std::nullptr_t = std::nullptr_t]»
/home/deepforest/Загрузки/src-tarball/parse/../universe/Condition.h:617:82:   required from here
/usr/include/c++/4.8.2/bits/unique_ptr.h:65:22: ошибка: invalid application of «sizeof» to incomplete type «ValueRef::ValueRefBase<double>»
/usr/include/c++/4.8.2/bits/unique_ptr.h: In instantiation of «void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = ValueRef::ValueRefBase<std::basic_string<char> >]»:
/usr/include/c++/4.8.2/bits/unique_ptr.h:184:16:   required from «std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = ValueRef::ValueRefBase<std::basic_string<char> >; _Dp = std::default_delete<ValueRef::ValueRefBase<std::basic_string<char> > >]»
/usr/include/c++/4.8.2/bits/unique_ptr.h:157:61:   required from «constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr(std::nullptr_t) [with _Tp = ValueRef::ValueRefBase<std::basic_string<char> >; _Dp = std::default_delete<ValueRef::ValueRefBase<std::basic_string<char> > >; std::nullptr_t = std::nullptr_t]»
/home/deepforest/Загрузки/src-tarball/parse/../universe/Condition.h:888:97:   required from here
/usr/include/c++/4.8.2/bits/unique_ptr.h:65:22: ошибка: invalid application of «sizeof» to incomplete type «ValueRef::ValueRefBase<std::basic_string<char> >»
make[2]: *** [CMakeFiles/freeorionparseobj.dir/parse/ConditionParser.cpp.o] Ошибка 1
make[2]: *** Ожидание завершения заданий...
make[1]: *** [CMakeFiles/freeorionparseobj.dir/all] Ошибка 2
make: *** [all] Ошибка 2
[root@localhost src-tarball]# 

Deleted
()

Ставь арч и не компостируй мозги.

Thetan ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.