0

问题:当我运行时make px4fmu-v2_default,我得到了这个:</p>

rootroot:~/Firmware$ make px4fmu-v2_default

Makefile:44: Not a valid CMake version or CMake not installed.
Makefile:45: On Ubuntu, install or upgrade via:
Makefile:46: 
Makefile:47: 3rd party PPA:
Makefile:48: sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
Makefile:49: sudo apt-get update
Makefile:50: sudo apt-get install cmake
Makefile:51: 
Makefile:52: Official website:
Makefile:53: wget https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.sh
Makefile:54: chmod +x cmake-3.3.2-Linux-x86_64.sh
Makefile:55: sudo mkdir /opt/cmake-3.3.2
Makefile:56: sudo ./cmake-3.3.2-Linux-x86_64.sh --prefix=/opt/cmake-3.3.2 --exclude-subdir
Makefile:57: export PATH=/opt/cmake-3.3.2/bin:$PATH
Makefile:58: 
Makefile:59: *** Fatal。 停止。

我的 CMAKE 版本

root@root:~/Firmware$ cmake --version

cmake version 3.0.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

为什么?

4

1 回答 1

0

https://github.com/PX4/Firmware/blob/master/Tools/check_cmake.sh

if [[ $cmake_ver == *" 2.8"* ]] || [[ $cmake_ver == *" 2.9"* ]] || [[ $cmake_ver == *" 3.0"* ]] || [[ $cmake_ver == *" 3.1"* ]]
then
  exit 1;
fi

该代码明确拒绝 cmake 版本 2.8、2.9、3.0(包括您的 3.0.2)、3.1。

您需要将您的 cmake 至少升级到 3.2 版。

于 2016-07-14T08:06:27.800 回答