recipe for target ‘px4_sitl_default‘ failed这有个出错就重新安装的
其他
2021-01-30 10:08:00
阅读次数: 0
|
楼主
发表于 2020-8-23 20:54:20 786 浏览 7 回复
[SLAM] [Pixhawk/PX4]开发环境搭建(Ubuntu) 遇到一些问题
git clone https://github.com/PX4/Firmwarecd Firmwaregit submodule update --init --recursivemake px4_sitl_default gazebo
在执行最后一步《make px4_sitl_default gazebo》时,总是报错,如下
[5/86] Building CXX object OpticalFlow/CMakeFiles/OpticalFlow.dir/src/flow_opencv.cpp.o ninja: build stopped: subcommand failed. ninja: build stopped: subcommand failed. Makefile:193: recipe for target 'px4_sitl_default' failed make: *** [px4_sitl_default] Error 1
请问该如何解决,谢谢
我知道答案 回答被采纳将会获得2 阿木币 已有7人回答
|
扫一扫浏览分享
|
|
|
|
|
|
|
沙发
发表于 2020-8-24 08:57:08
看起来你子模块没更新好哦,换个网络,先git submodule update --init --recursive把这个阶段运行好再make |
|
|
|
|
|
|
|
板凳
楼主|
发表于 2020-8-24 20:47:11
您好 很感谢您的回复,我更新了 guo@guoPC:~/PX4/Firmwaregitsubmoduleupdate−−init−−recursiveguo@guoPC: /PX4/Firmware |
|
git submodule update --init --recursive 执行 git submodule update --init --recursive 已经没有反应了。但是make px4_sitl_default 没有报错,如下 guo@guoPC:~/PX4/Firmware$ make px4_sitl_default -- PX4 config file: /home/guo/PX4/Firmware/boards/px4/sitl/default.cmake -- PX4 config: px4_sitl_default -- PX4 platform: posix -- PX4 lockstep: enabled -- PX4 version: v1.9.2 -- cmake build type: RelWithDebInfo -- The CXX compiler identification is GNU 7.5.0 -- The C compiler identification is GNU 7.5.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- ccache enabled (export CCACHE_DISABLE=1 to disable) -- Found PythonInterp: /usr/bin/python (found version "2.7.17") -- Found PY_jinja2: /home/guo/.local/lib/python2.7/site-packages/jinja2 -- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1 -- Configuring done -- Generating done -- Build files have been written to: /home/guo/PX4/Firmware/build/px4_sitl_default [15/668] git submodule src/lib/ecl [183/668] git submodule src/drivers/gps/devices [186/668] git submodule mavlink/include/mavlink/v2.0 [668/668] Linking CXX shared library s...s/dyn_hello/examples__dyn_hello.px4mod
执行make px4_sitl_default gazebo guo@guoPC:~/PX4/Firmware$ make px4_sitl_default gazebo [3/7] Performing configure step for 'sitl_gazebo' -- install-prefix: /usr/local -- Using C++17 compiler -- Boost version: 1.65.1 -- Found the following Boost libraries: -- system -- thread -- filesystem -- chrono -- date_time -- atomic -- Boost version: 1.65.1 -- Found the following Boost libraries: -- thread -- system -- filesystem -- program_options -- regex -- iostreams -- date_time -- chrono -- atomic -- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread (found version "3.0.0") -- Boost version: 1.65.1 -- Looking for OGRE... -- Found Ogre Ghadamon (1.9.0) -- 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/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread;-lpthread (found suitable version "3.0.0", minimum required is "2.3.0") -- Config-file not installed for ZeroMQ -- checking for pkg-config -- Checking for module 'libzmq >= 4' -- Found libzmq , version 4.2.5 -- Checking for module 'uuid' -- Found uuid, version 2.31.1 -- Checking for module 'tinyxml2' -- Found tinyxml2, version 6.0.0 -- Looking for dlfcn.h - found -- Looking for libdl - found -- FreeImage.pc not found, we will search for FreeImage_INCLUDE_DIRS and FreeImage_LIBRARIES -- Checking for module 'gts' -- Found gts, version 0.7.6 -- Checking for module 'libswscale' -- Found libswscale, version 4.8.100 -- Checking for module 'libavdevice >= 56.4.100' -- Found libavdevice , version 57.10.100 -- Checking for module 'libavformat' -- Found libavformat, version 57.83.100 -- Checking for module 'libavcodec' -- Found libavcodec, version 57.107.100 -- Checking for module 'libavutil' -- Found libavutil, version 55.78.100 -- Checking for module 'jsoncpp' -- Found jsoncpp, version 1.7.4 -- Checking for module 'yaml-0.1' -- Found yaml-0.1, version 0.1.7 -- Checking for module 'libzip' -- Found libzip, version 1.1.2 -- Building klt_feature_tracker without catkin -- Building OpticalFlow with OpenCV -- catkin DISABLED -- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread;-lpthread;-lpthread (found version "3.0.0") Gazebo version: 9.14 -- Configuring done -- Generating done -- Build files have been written to: /home/guo/PX4/Firmware/build/px4_sitl_default/build_gazebo [4/7] Performing build step for 'sitl_gazebo' FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build cd /home/guo/PX4/Firmware/build/px4_sitl_default/build_gazebo && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /home/guo/PX4/Firmware/build/px4_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-build [1/79] Running C++ protocol buffer compiler on msgs/SITLGps.proto [2/79] Generating /home/guo/PX4/Firmware/Tools/sitl_gazebo/models/iris/iris.sdf FAILED: /home/guo/PX4/Firmware/Tools/sitl_gazebo/models/iris/iris.sdf cd /home/guo/PX4/Firmware/Tools/sitl_gazebo && rm -f /home/guo/PX4/Firmware/Tools/sitl_gazebo/models/iris/iris.sdf && /usr/bin/python /home/guo/PX4/Firmware/Tools/sitl_gazebo/scripts/xacro.py -o /home/guo/PX4/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.urdf /home/guo/PX4/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.xacro enable_mavlink_interface:=true enable_ground_truth:=false enable_wind:=false enable_logging:=false rotors_description_dir:=/home/guo/PX4/Firmware/Tools/sitl_gazebo/models/rotors_description send_vision_estimation:=true send_odometry:=false && gz sdf -p /home/guo/PX4/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.urdf >> /home/guo/PX4/Firmware/Tools/sitl_gazebo/models/iris/iris.sdf && rm -f /home/guo/PX4/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.urdf
gz: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgazebo_common.so.9: undefined symbol: _ZN8ignition10fuel_tools12ClientConfig12SetUserAgentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE [3/79] Building CXX object CMakeFiles/std_msgs.dir/Int32.pb.cc.o ninja: build stopped: subcommand failed. ninja: build stopped: subcommand failed. Makefile:193: recipe for target 'px4_sitl_default' failed make: *** [px4_sitl_default] Error 1 |
|
|
|
|
|
|
|
地板
楼主|
发表于 2020-8-27 14:26:56
已经解决,重新安装,清理下环境,知道成功为止。。。 |
|
|
|
|
|
|
|
5#
楼主|
发表于 2020-8-27 14:27:42
|
|
|
|
|
|
|
6#
发表于 2020-8-31 11:11:42
楼主,我遇到了同样的问题,我执行make px4_sitl gazebo出现 [0/5] Performing build step for 'sitl_gazebo' ninja: error: '/usr/lib/x86_64-linux-gnu/libignition-common1.so.1.0.1', needed by 'libmav_msgs.so', missing and no known rule to make it [1/5] Generating ../../logs FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build cd /home/nandong/Firmware_v110/build/px4_sitl_default/build_gazebo && /usr/bin/cmake --build . ninja: build stopped: subcommand failed. Makefile:200: recipe for target 'px4_sitl' failed make: *** [px4_sitl] Error 1 之后,我重新git submodule update --init --recursive 直接执行了,但是make px4_sitl gazebo后仍然不行 |
|
|
|
|
|
|
|
7#
发表于 2020-8-31 11:34:28
|
|
|
|
|
|
|
8#
楼主|
发表于 2020-8-31 17:56:30
我也不知道 我是怎么解决的 反正出错 就重新安装。。。 |
|
转载自blog.csdn.net/sinat_16643223/article/details/113069402