配置專案時 cmake 失敗

配置專案時 cmake 失敗

我有一個專案要編譯,這是該專案的自述文件,

Geodesic Object Proposals
=========================

Dependencies
------------
Required:
 * cmake
 * c++11 compiler( g++-4.7 or higher, vc++2013 or higher, clang might work too )
 * Eigen 3.2 (optionally you can download eigen and put in in external/eigen such that external/eigen/Eigen is a valid directory)
 * libpng and libjpg (needed by cimg)

Optional for python3 bindings:
 * python3 (python 2.7 should work too, but I didn't test it extensively)
 * numpy
 * boost-python
 * matio (optional to load datasets)
 * matplotlib for some visualizations
 * MATLAB (r2013a on Ubuntu 14.04 tested, others might work too. You might have to specify a new gcc version in mexopts)

事實上,我使用的ubuntu有一個預設版本的cmake 2.8.12.2,當我嘗試配置我的專案時,我選擇作為當前的生成器unix makefiles,我應該下載自述文件中提到的c ++ 11編譯器之一嗎?我有幾個錯誤

CMAKE_BACKWARDS_COMPATIBILITY 2.4
CMAKE_BUILD_TYPE
CMAKE_COLOR_MAKEFILE
CMAKE_CXX_COMPILER-NOTFOUND
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_MINIZEREL
CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_C_COMPILER   /usr/bin/cc
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_MINIZEREL
CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_INSTALL_PREFIX   /usr/local
CMAKE_LINKER    /usr/bin/ld
CMAKE_MAKE_PROGRAM   /usr/bin/make

還有很多其他人謝謝

答案1

運行以下命令:

sudo apt-get install build-essential

g++Trusty的最新版本是 4.8.2

Ubuntu 軟體包搜尋

使用以下命令安裝:

sudo apt-get install g++

相關內容