question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed building catkin!

See original GitHub issue

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: default Extending: None Workspace: /home/stribuda

Build Space: [exists] /home/stribuda/build Devel Space: [exists] /home/stribuda/devel Install Space: [unused] /home/stribuda/install Log Space: [exists] /home/stribuda/logs Source Space: [exists] /home/stribuda/src 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

NOTE: Forcing CMake to run for each package.

WARNING: Your workspace is not extending any other result 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 be built.

[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.git

cd /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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

27reactions
gladijoscommented, Mar 25, 2019

it helped me . /opt/ros/kinetic/setup.bash

11reactions
ArciAndrescommented, Nov 29, 2021

In my case I extended the configuration of catkin (same to source) explicitly: catkin config --extend /opt/ros/melodic

Read more comments on GitHub >

github_iconTop Results From Across the Web

catkin build fails to compile - ros - Stack Overflow
So there are two possibilities that your environment is tainted. Your PATH variable is still tainted by pointing to your anaconda location.
Read more >
catkin build fail. - ROS Answers: Open Source Q&A Forum
i got some error. here i am copy few part of error. RuntimeError: Multiple packages found with the same name "ardrone_autonomy": - ardrone_ ......
Read more >
Build Packages — catkin_tools 0.0.0 documentation
The build verb is used to build one or more packages in a catkin workspace. ... This block only appears once one or...
Read more >
Problems to build project with catkin - NVIDIA Developer Forums
P.S.: The following is the error I´m getting with catkin: Profile: default. Extending: None Workspace: /home/otlab/catkin_ws. Build Space: ...
Read more >
Error when trying to catkinbuild - The Construct ROS Community
Hi @r.franklinismail, seems like you are trying to create an srv msg, the error says that you are not using the syntax correctly,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found