Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7072

Building Catkin (ROS) failed

$
0
0

i'm trying to install ROS on my Ubuntu 16.04 to use the simulator Gazebo. First of all i tried to run a script that installs everything, then i got a error at the end of it.So i decided to install ROS directly from the instructions in their website, but i got the same error.Then i followed other tutorials, tried to find someone who had the same issue but no way!My last chance is here..I gess the problem CMake, i use python3 and i installed all necessary libraries.

sudo catkin build---------------------------------------------------Profile:                     defaultExtending:                   NoneWorkspace:                   /home/stribuda---------------------------------------------------Build Space:        [exists] /home/stribuda/buildDevel Space:        [exists] /home/stribuda/develInstall Space:      [unused] /home/stribuda/installLog Space:          [exists] /home/stribuda/logsSource Space:       [exists] /home/stribuda/srcDESTDIR:            [unused] None---------------------------------------------------Devel Space Layout:          linkedInstall Space Layout:        None---------------------------------------------------Additional CMake Args:       NoneAdditional Make Args:        NoneAdditional catkin Make Args: NoneInternal Make Job Server:    TrueCache Job Environments:      False---------------------------------------------------Whitelisted Packages:        NoneBlacklisted Packages:        None---------------------------------------------------NOTE: Forcing CMake to run for each package.------------------------------------------------------------------------------------------------------WARNING: Your workspace is not extending any otherresult space, but it is set to use a `linked`devel space layout. This requires the `catkin`CMake package in your source space in order to bebuilt.---------------------------------------------------[build] Found '1' packages in 0.0 seconds.[build] Package table is up to date.Warning: generated devel space setup files have been deleted.Starting  >>> catkin_tools_prebuild______________________________________________________________________________________________________________________________________________________________________________Errors     << catkin_tools_prebuild:cmake /home/stribuda/logs/catkin_tools_prebuild/build.cmake.013.log          CMake Error at /home/stribuda/build/catkin_tools_prebuild/CMakeLists.txt:12 (message):  The catkin CMake module was not found, but it is required to build a linked  workspace.  To resolve this, please do one of the following, and try  building again.   1. Source the setup.sh file from an existing catkin workspace:      source SETUP_FILE   2. Extend another catkin workspace's result (install or devel) space:      catkin config --extend RESULT_SPACE   3. Set `catkin_DIR` to the directory containing `catkin-config.cmake`:      catkin config --cmake-args -Dcatkin_DIR=CATKIN_CMAKE_CONFIG_PATH   4. Add the catkin source package to your workspace's source space:      cd SOURCE_SPACE && git clone https://github.com/ros/catkin.gitcd /home/stribuda/build/catkin_tools_prebuild; catkin build --get-env catkin_tools_prebuild | catkin env -si  /usr/bin/cmake /home/stribuda/build/catkin_tools_prebuild --no-warn-    unused-cli -DCATKIN_DEVEL_PREFIX=/home/stribuda/devel/.private/catkin_tools_prebuild -DCMAKE_INSTALL_PREFIX=/home/stribuda/install; cd -....................................................................................................................................................................Failed     << catkin_tools_prebuild:cmake          [ Exited with code 1 ]                                                               Failed    <<< catkin_tools_prebuild                [ 0.0 seconds ]                                                        Abandoned <<< px4                                  [ Unrelated job failed ]                                                                                   [build] Summary: 0 of 2 packages succeeded.                                                                                                                     [build]   Ignored:   None.                                                                                                                                    [build]   Warnings:  None.                                                                                                                                      [build]   Abandoned: 1 packages were abandoned.                                                                                                        [build]   Failed:    1 packages failed.                                                                                                                      [build] Runtime: 0.1 seconds total

If someone can help, it would be very helpful! Thanks

UPDATED:

env | grep -i ros

ROS_ROOT=/opt/ros/kinetic/share/rosROS_PACKAGE_PATH=/opt/ros/kinetic/shareROS_MASTER_URI=http://localhost:11311ROS_VERSION=1LD_LIBRARY_PATH=/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnuPATH=/opt/ros/kinetic/bin:/home/stribuda/gcc-arm-none-eabi-7-2017-q4-major/bin:/home/stribuda/bin:/home/stribuda/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binROSLISP_PACKAGE_DIRECTORIES=ROS_DISTRO=kineticPYTHONPATH=/opt/ros/kinetic/lib/python2.7/dist-packagesPKG_CONFIG_PATH=/opt/ros/kinetic/lib/pkgconfig:/opt/ros/kinetic/lib/x86_64-linux-gnu/pkgconfigCMAKE_PREFIX_PATH=/opt/ros/kineticROS_ETC_DIR=/opt/ros/kinetic/etc/ros

SECOND UPDATE:i reinstalled ubuntu i followed the instractions like always and got this after typing catkin build

--------------------------------------------------------------Profile:                     defaultExtending:          [cached] /opt/ros/kineticWorkspace:                   /home/stribudax/catkin_ws--------------------------------------------------------------Source Space:       [exists] /home/stribudax/catkin_ws/srcLog Space:          [exists] /home/stribudax/catkin_ws/logsBuild Space:        [exists] /home/stribudax/catkin_ws/buildDevel Space:        [exists] /home/stribudax/catkin_ws/develInstall Space:      [unused] /home/stribudax/catkin_ws/installDESTDIR:            [unused] None--------------------------------------------------------------Devel Space Layout:          linkedInstall Space Layout:        None--------------------------------------------------------------Additional CMake Args:       NoneAdditional Make Args:        NoneAdditional catkin Make Args: NoneInternal Make Job Server:    TrueCache Job Environments:      False--------------------------------------------------------------Whitelisted Packages:        NoneBlacklisted Packages:        None--------------------------------------------------------------Workspace configuration appears valid.--------------------------------------------------------------[build] Found '19' packages in 0.0 seconds.                                                                                                                                                               [build] Package table is up to date.                                                                                                                                                                      Starting  >>> mav_msgs                                                                                                                                                                                    Starting  >>> mavlink                                                                                                                                                                                     Starting  >>> mavros_msgs                                                                                                                                                                                 Starting  >>> rotors_comm                                                                                                                                                                                 Finished  <<< rotors_comm                          [ 0.6 seconds ]                                                                                                                                        Finished  <<< mav_msgs                             [ 0.8 seconds ]                                                                                                                                        Starting  >>> rotors_description                                                                                                                                                                          Finished  <<< mavlink                              [ 1.0 seconds ]                                                                                                                                        Finished  <<< rotors_description                   [ 0.1 seconds ]                                                                                                                                        Starting  >>> rotors_evaluation                                                                                                                                                                           Finished  <<< rotors_evaluation                    [ 0.2 seconds ]                                                                                                                                        Starting  >>> mav_planning_msgs                                                                                                                                                                           Starting  >>> rotors_control                                                                                                                                                                              Starting  >>> rotors_joy_interface                                                                                                                                                                        Finished  <<< mavros_msgs                          [ 1.9 seconds ]                                                                                                                                        Finished  <<< rotors_joy_interface                 [ 0.6 seconds ]                                                                                                                                        Finished  <<< rotors_control                       [ 0.8 seconds ]                                                                                                                                        Starting  >>> libmavconn                                                                                                                                                                                  Finished  <<< mav_planning_msgs                    [ 0.8 seconds ]                                                                                                                                        Starting  >>> rqt_rotors                                                                                                                                                                                  Starting  >>> rotors_gazebo_plugins                                                                                                                                                                       Finished  <<< libmavconn                           [ 0.2 seconds ]                                                                                                                                        Starting  >>> mavros                                                                                                                                                                                      Finished  <<< rqt_rotors                           [ 0.1 seconds ]                                                                                                                                        __________________________________________________________________________________________________________________________________________________________________________________________________________Errors     << mavros:cmake /home/stribudax/catkin_ws/logs/mavros/build.cmake.001.log                                                                                                                      CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):  Could NOT find GeographicLib (missing: GeographicLib_LIBRARIES  GeographicLib_INCLUDE_DIRS)Call Stack (most recent call first):  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)  /home/stribudax/catkin_ws/src/mavros/libmavconn/cmake/Modules/FindGeographicLib.cmake:14 (find_package_handle_standard_args)  CMakeLists.txt:42 (find_package)cd /home/stribudax/catkin_ws/build/mavros; catkin build --get-env mavros | catkin env -si  /usr/bin/cmake /home/stribudax/catkin_ws/src/mavros/mavros --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/stribudax/catkin_ws/devel/.private/mavros -DCMAKE_INSTALL_PREFIX=/home/stribudax/catkin_ws/install; cd -..........................................................................................................................................................................................................Failed     << mavros:cmake                         [ Exited with code 1 ]                                                                                                                                 Failed    <<< mavros                               [ 0.8 seconds ]                                                                                                                                        Abandoned <<< mavros_extras                        [ Unrelated job failed ]                                                                                                                               Abandoned <<< rotors_gazebo                        [ Unrelated job failed ]                                                                                                                               Abandoned <<< rotors_hil_interface                 [ Unrelated job failed ]                                                                                                                               Abandoned <<< test_mavros                          [ Unrelated job failed ]                                                                                                                               __________________________________________________________________________________________________________________________________________________________________________________________________________Warnings   << rotors_gazebo_plugins:cmake /home/stribudax/catkin_ws/logs/rotors_gazebo_plugins/build.cmake.000.log                                                                                        CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):  catkin_package() DEPENDS on 'eigen' but neither 'eigen_INCLUDE_DIRS' nor'eigen_LIBRARIES' is defined.Call Stack (most recent call first):  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)  CMakeLists.txt:198 (catkin_package)CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):  catkin_package() DEPENDS on 'gazebo' but neither 'gazebo_INCLUDE_DIRS' nor'gazebo_LIBRARIES' is defined.Call Stack (most recent call first):  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)  CMakeLists.txt:198 (catkin_package)CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):  catkin_package() DEPENDS on 'octomap' but neither 'octomap_INCLUDE_DIRS'  nor 'octomap_LIBRARIES' is defined.Call Stack (most recent call first):  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)  CMakeLists.txt:198 (catkin_package)CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):  catkin_package() DEPENDS on 'opencv' but neither 'opencv_INCLUDE_DIRS' nor'opencv_LIBRARIES' is defined.Call Stack (most recent call first):  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)  CMakeLists.txt:198 (catkin_package)cd /home/stribudax/catkin_ws/build/rotors_gazebo_plugins; catkin build --get-env rotors_gazebo_plugins | catkin env -si  /usr/bin/cmake /home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/stribudax/catkin_ws/devel/.private/rotors_gazebo_plugins -DCMAKE_INSTALL_PREFIX=/home/stribudax/catkin_ws/install; cd -..........................................................................................................................................................................................................__________________________________________________________________________________________________________________________________________________________________________________________________________Warnings   << rotors_gazebo_plugins:make /home/stribudax/catkin_ws/logs/rotors_gazebo_plugins/build.make.000.log                                                                                          [libprotobuf WARNING google/protobuf/descriptor.cc:5411] Warning: Unused import: "MagneticField.proto" imports "quaternion.proto" which is not used./home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/external/gazebo_geotagged_images_plugin.cpp: In member function ‘virtual void gazebo::GeotaggedImagesPlugin::Load(gazebo::sensors::SensorPtr, sdf::ElementPtr)’:/home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/external/gazebo_geotagged_images_plugin.cpp:83:39: warning: ‘gazebo::common::Time gazebo::rendering::Scene::GetSimTime() const’ is deprecated [-Wdeprecated-declarations]   lastImageTime_ = scene_->GetSimTime();                                       ^In file included from /usr/include/gazebo-7/gazebo/rendering/rendering.hh:40:0,                 from /home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/include/rotors_gazebo_plugins/external/gazebo_geotagged_images_plugin.h:30,                 from /home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/external/gazebo_geotagged_images_plugin.cpp:18:/usr/include/gazebo-7/gazebo/rendering/Scene.hh:639:28: note: declared here       public: common::Time GetSimTime() const GAZEBO_DEPRECATED(7.0);                            ^/home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/external/gazebo_geotagged_images_plugin.cpp: In member function ‘void gazebo::GeotaggedImagesPlugin::OnNewFrame(const unsigned char*)’:/home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/external/gazebo_geotagged_images_plugin.cpp:161:49: warning: ‘gazebo::common::Time gazebo::rendering::Scene::GetSimTime() const’ is deprecated [-Wdeprecated-declarations]   common::Time currentTime = scene_->GetSimTime();                                                 ^In file included from /usr/include/gazebo-7/gazebo/rendering/rendering.hh:40:0,                 from /home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/include/rotors_gazebo_plugins/external/gazebo_geotagged_images_plugin.h:30,                 from /home/stribudax/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/external/gazebo_geotagged_images_plugin.cpp:18:/usr/include/gazebo-7/gazebo/rendering/Scene.hh:639:28: note: declared here       public: common::Time GetSimTime() const GAZEBO_DEPRECATED(7.0);                            ^cd /home/stribudax/catkin_ws/build/rotors_gazebo_plugins; catkin build --get-env rotors_gazebo_plugins | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -..........................................................................................................................................................................................................Finished  <<< rotors_gazebo_plugins                [ 53.1 seconds ]                                                                                                                                       [build] Summary: 12 of 17 packages succeeded.                                                                                                                                                             [build]   Ignored:   2 packages were skipped or are blacklisted.                                                                                                                                          [build]   Warnings:  1 packages succeeded with warnings.                                                                                                                                                  [build]   Abandoned: 4 packages were abandoned.                                                                                                                                                           [build]   Failed:    1 packages failed.                                                                                                                                                                   [build] Runtime: 56.0 seconds total.                                                                                                                                                                      [build] Note: Workspace packages have changed, please re-source setup files to use them.

Viewing all articles
Browse latest Browse all 7072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>