|
发表于 2022-9-27 09:13:25
3113 浏览 2 回复
[新手上路]
编译prometheus_px4出现如下错误,ninja: error: rebuilding 'build.ninj...
prometheus问答
提问前请先确定以下问题:: |
阅读完相关wiki,代码最新编译未通过 |
第一步:问题BUG描述: |
uanhe@duanhe:~/prometheus_px4$ make amovlab_sitl_default gazebo_p450
[0/5] Performing build step for 'sitl_gazebo'
[0/1] Re-running CMake...
-- install-prefix: /usr/local
-- cmake build type: RelWithDebInfo
-- Using C++17 standard
-- ccache enabled (export CCACHE_DISABLE=1 to disable)
CMake Error at CMakeLists.txt:48 (find_package):
By not providing "Findgazebo.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "gazebo", but
CMake did not find one.
Could not find a package configuration file provided by "gazebo" with any
of the following names:
gazeboConfig.cmake
gazebo-config.cmake
Add the installation prefix of "gazebo" to CMAKE_PREFIX_PATH or set
"gazebo_DIR" to a directory containing one of the above files. If "gazebo"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/home/duanhe/prometheus_px4/build/amovlab_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log".
See also "/home/duanhe/prometheus_px4/build/amovlab_sitl_default/build_gazebo/CMakeFiles/CMakeError.log".
FAILED: build.ninja
/usr/bin/cmake -S/home/duanhe/prometheus_px4/Tools/sitl_gazebo -B/home/duanhe/prometheus_px4/build/amovlab_sitl_default/build_gazebo
ninja: error: rebuilding 'build.ninja': subcommand failed
[1/5] Generating ../../logs
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build
cd /home/duanhe/prometheus_px4/build/amovlab_sitl_default/build_gazebo && /usr/bin/cmake --build /home/duanhe/prometheus_px4/build/amovlab_sitl_default/build_gazebo -- -j 14
ninja: build stopped: subcommand failed.
make: *** [Makefile:226:amovlab_sitl_default] 错误 1 |
第二步:PX4版本是否为Prometheus_PX4_V1.11.1分支?: |
是 Prometheus_PX4_V1.11.1 |
第三步:测试prometheus_px4是否正常: |
不正常 |
第四步:Prometheus版本是否为最新master?: |
是master版本 |
第五步:测试Prometheus是否正常: |
否 |
将无人系统(无人机/无人车等)使用过程中的硬件平台、软件环境、问题截图等有效信息尽可能详尽的描述,有助于问题被快速解答。(截图支持编辑栏直接复制粘贴哦~)
我知道答案
回答被采纳将会获得 3 阿木币 已有2人回答
|
扫一扫浏览分享
|
|
|
|
|
|
|
发表于 2022-9-27 09:29:01
gazebo环境没有安装好,在你下载promehtues_px4之后,还要运行环境配置脚本 |
|
|
|
|
|
|
|
发表于 2022-10-26 13:15:56
|
|
|
|
|
|
|