Closed varunvp closed 6 years ago
Mavros: ??? ROS: Indigo Ubuntu: 14.04
I followed all the steps in https://dev.px4.io/en/ros/mavros_installation.html for installing MAVROS but when I enter the last command, catkin build, I get the following error.
------------------------------------------------------------ Profile: default Extending: [cached] /opt/ros/indigo Workspace: /home/gautham/catkin_ws ------------------------------------------------------------ Source Space: [exists] /home/gautham/catkin_ws/src Log Space: [exists] /home/gautham/catkin_ws/logs Build Space: [exists] /home/gautham/catkin_ws/build Devel Space: [exists] /home/gautham/catkin_ws/devel Install Space: [unused] /home/gautham/catkin_ws/install DESTDIR: [unused] None ------------------------------------------------------------ Devel Space Layout: linked Install Space Layout: None ------------------------------------------------------------ Additional CMake Args: None Additional Make Args: None Additional catkin Make Args: None Internal Make Job Server: True Cache Job Environments: False ------------------------------------------------------------ Whitelisted Packages: None Blacklisted Packages: None ------------------------------------------------------------ Workspace configuration appears valid. ------------------------------------------------------------ [build] Found '6' packages in 0.0 seconds. [build] Package table is up to date. Starting >>> mavlink Starting >>> mavros_msgs Finished <<< mavros_msgs [ 2.2 seconds ] ______________________________________________________________________________________________________________________________________________________ Warnings << mavlink:install /home/gautham/catkin_ws/logs/mavlink/build.install.009.log + [ -n ] + echo_and_run cd /home/gautham/catkin_ws/src/mavlink/pymavlink + echo + cd /home/gautham/catkin_ws/src/mavlink/pymavlink + cd /home/gautham/catkin_ws/src/mavlink/pymavlink + echo_and_run mkdir -p /home/gautham/catkin_ws/devel/lib/python2.7/dist-packages + echo + mkdir -p /home/gautham/catkin_ws/devel/lib/python2.7/dist-packages + mkdir -p /home/gautham/catkin_ws/devel/lib/python2.7/dist-packages + echo_and_run /usr/bin/env PYTHONPATH=/home/gautham/catkin_ws/devel/lib/python2.7/dist-packages:/home/gautham/catkin_ws/build/mavlink/lib/python2.7/dist-packages:/home/gautham/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages /usr/bin/python2 /home/gautham/catkin_ws/src/mavlink/pymavlink/setup.py build --build-base /home/gautham/catkin_ws/build/mavlink/pymavlink install --install-layout=deb --prefix=/home/gautham/catkin_ws/devel + echo + /usr/bin/env PYTHONPATH=/home/gautham/catkin_ws/devel/lib/python2.7/dist-packages:/home/gautham/catkin_ws/build/mavlink/lib/python2.7/dist-packages:/home/gautham/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages /usr/bin/python2 /home/gautham/catkin_ws/src/mavlink/pymavlink/setup.py build --build-base /home/gautham/catkin_ws/build/mavlink/pymavlink install --install-layout=deb --prefix=/home/gautham/catkin_ws/devel + /usr/bin/env PYTHONPATH=/home/gautham/catkin_ws/devel/lib/python2.7/dist-packages:/home/gautham/catkin_ws/build/mavlink/lib/python2.7/dist-packages:/home/gautham/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages /usr/bin/python2 /home/gautham/catkin_ws/src/mavlink/pymavlink/setup.py build --build-base /home/gautham/catkin_ws/build/mavlink/pymavlink install --install-layout=deb --prefix=/home/gautham/catkin_ws/devel zip_safe flag not set; analyzing archive contents... pymavlink.generator.mavgen_java: module references __file__ pymavlink.generator.mavgen_c: module references __file__ pymavlink.generator.mavgen: module references __file__ pymavlink.generator.mavgen_swift: module references __file__ pymavlink.generator.lib.minixsv.__init__: module references __file__ pymavlink.generator.lib.genxmlif.__init__: module references __file__ cd /home/gautham/catkin_ws/build/mavlink; catkin build --get-env mavlink | catkin env -si /usr/bin/make install; cd - ...................................................................................................................................................... Finished <<< mavlink [ 1 minute and 49.9 seconds ] Starting >>> libmavconn Finished <<< libmavconn [ 0.3 seconds ] Starting >>> mavros ______________________________________________________________________________________________________________________________________________________ Errors << mavros:check /home/gautham/catkin_ws/logs/mavros/build.check.005.log CMake Error at /home/gautham/CMake/cmake-3.10.2-Linux-x86_64/share/cmake-3.10/Modules/Compiler/GNU.cmake:40 (string): string does not recognize sub-command APPEND Call Stack (most recent call first): /home/gautham/CMake/cmake-3.10.2-Linux-x86_64/share/cmake-3.10/Modules/Compiler/GNU-C.cmake:2 (__compiler_gnu) /home/gautham/CMake/cmake-3.10.2-Linux-x86_64/share/cmake-3.10/Modules/CMakeCInformation.cmake:25 (include) CMakeLists.txt:2 (project) CMake Error at /home/gautham/CMake/cmake-3.10.2-Linux-x86_64/share/cmake-3.10/Modules/Compiler/CMakeCommonCompilerMacros.cmake:39 (if): if given arguments: "CMAKE_C_COMPILER_VERSION" "VERSION_GREATER_EQUAL" "3.4" Unknown arguments specified Call Stack (most recent call first): /home/gautham/CMake/cmake-3.10.2-Linux-x86_64/share/cmake-3.10/Modules/Compiler/GNU-C.cmake:25 (__compiler_check_default_language_standard) /home/gautham/CMake/cmake-3.10.2-Linux-x86_64/share/cmake-3.10/Modules/CMakeCInformation.cmake:25 (include) CMakeLists.txt:2 (project) make: *** [cmake_check_build_system] Error 1 cd /home/gautham/catkin_ws/build/mavros; catkin build --get-env mavros | catkin env -si /usr/bin/make cmake_check_build_system; cd - ...................................................................................................................................................... Failed << mavros:check [ Exited with code 2 ] Failed <<< mavros [ 0.3 seconds ] Abandoned <<< mavros_extras [ Unrelated job failed ] Abandoned <<< test_mavros [ Unrelated job failed ] [build] Summary: 3 of 6 packages succeeded. [build] Ignored: None. [build] Warnings: 1 packages succeeded with warnings. [build] Abandoned: 2 packages were abandoned. [build] Failed: 1 packages failed. [build] Runtime: 1 minute and 50.8 seconds total.
Indigo and Jade is outdated. Without data about mavlink & mavros packages i can't say anything.
MAVROS version and platform
Mavros: ??? ROS: Indigo Ubuntu: 14.04
I followed all the steps in https://dev.px4.io/en/ros/mavros_installation.html for installing MAVROS but when I enter the last command, catkin build, I get the following error.