0

阿木币

0

精华

6 小时

在线时间

应届白菜

Rank: 1

发表于 2021-3-29 11:08:27 12279 浏览 3 回复

求助:取make px4_sitl gazebo失败

make px4_sitl gazebo

[1/5] Performing configure step for 'sitl_gazebo'
-- install-prefix: /usr/local
-- Using C++17 compiler
-- Found Boost: /usr/include (found suitable version "1.58.0", minimum required is "1.58") found components: system thread filesystem chrono date_time atomic
CMake Warning (dev) at /opt/cmake-3.20.0/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (gazebo).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /opt/cmake-3.20.0/share/cmake-3.20/Modules/FindPkgConfig.cmake:70 (find_package_handle_standard_args)
  /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:30 (include)
  CMakeLists.txt:32 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Boost: /usr/include (found suitable version "1.58.0", minimum required is "1.40.0") found components: thread system filesystem program_options regex iostreams date_time chrono atomic
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found version "3.11.0")
-- Found Boost: /usr/include (found version "1.58.0")  
-- Looking for OGRE...
-- Found Ogre Ghadamon (1.9.0)
-- Found OGRE: optimized;/usr/lib/x86_64-linux-gnu/libOgreMain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreMain.so
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/lib/x86_64-linux-gnu/libOgrePaging.so;debug;/usr/lib/x86_64-linux-gnu/libOgrePaging.so
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/lib/x86_64-linux-gnu/libOgreProperty.so;debug;/usr/lib/x86_64-linux-gnu/libOgreProperty.so
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so;debug;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so
-- Looking for OGRE_Volume...
-- Found OGRE_Volume: optimized;/usr/lib/x86_64-linux-gnu/libOgreVolume.so;debug;/usr/lib/x86_64-linux-gnu/libOgreVolume.so
-- Looking for OGRE_Overlay...
-- Found OGRE_Overlay: optimized;/usr/lib/x86_64-linux-gnu/libOgreOverlay.so;debug;/usr/lib/x86_64-linux-gnu/libOgreOverlay.so
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found suitable version "3.11.0", minimum required is "2.3.0")
-- Checking for module 'uuid'
--   Found uuid, version 2.27.0
-- Found UUID: TRUE  
-- Checking for module 'tinyxml2'
--   Found tinyxml2, version 2.2.0
-- Looking for dlfcn.h - found
-- Looking for libdl - found
-- FreeImage.pc not found, we will search for FreeImage_INCLUDE_DIRS and FreeImage_LIBRARIES
-- Found UUID: TRUE  
-- Checking for module 'gts'
--   Found gts, version 0.7.6
-- Checking for module 'libswscale'
--   Found libswscale, version 3.1.101
-- Checking for module 'libavdevice >= 56.4.100'
--   Found libavdevice , version 56.4.100
-- Checking for module 'libavformat'
--   Found libavformat, version 56.40.101
-- Checking for module 'libavcodec'
--   Found libavcodec, version 56.60.100
-- Checking for module 'libavutil'
--   Found libavutil, version 54.31.100
-- Checking for module 'jsoncpp'
--   Found jsoncpp, version 1.7.2
-- Checking for module 'yaml-0.1'
--   Found yaml-0.1, version 0.1.6
-- Checking for module 'libzip'
--   Found libzip, version 1.0.1
CMake Error at CMakeLists.txt:34 (find_program):
  Could not find px4 using the following names:


-- Configuring incomplete, errors occurred!
See also "/home/zhou/Firmware/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log".
See also "/home/zhou/Firmware/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeError.log".
FAILED: cd /home/zhou/Firmware/build/px4_sitl_default/build_gazebo && /opt/cmake-3.20.0/bin/cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DSEND_ODOMETRY_DATA=ON -GNinja /home/zhou/Firmware/Tools/sitl_gazebo && /opt/cmake-3.20.0/bin/cmake -E touch /home/zhou/Firmware/build/px4_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-configure
ninja: build stopped: subcommand failed.
Makefile:205: recipe for target 'px4_sitl' failed

blueboats已获得悬赏 3 阿木币

最佳答案

百试不爽的办法,换个新系统,按照官方wiki全部重新装一遍所有环节 包括PX4等等 以及子模块是否更新好

扫一扫浏览分享
回复

使用道具 举报

255

阿木币

1

精华

55 小时

在线时间

老司机

Rank: 2

发表于 2021-3-29 11:38:05
百试不爽的办法,换个新系统,按照官方wiki全部重新装一遍所有环节 包括PX4等等 以及子模块是否更新好
回复 点赞 1

使用道具 举报

0

阿木币

0

精华

6 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2021-3-31 22:51:29
换系统可还行
回复 点赞

使用道具 举报

0

阿木币

0

精华

20 小时

在线时间

应届白菜

Rank: 1

发表于 2021-3-31 22:58:52
我也经常出问题,你用的是虚拟机嘛?可能是虚拟机内存不够了,重启一下试试,或者分配内存大一点,至少8G
回复 点赞

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表