PX4/ Ошибка при прошивке
Вопрос: Когда я бегу make px4fmu-v2_default
Get Я понимаю это:
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).
Зачем?
1 ответ
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.