Failed building catkin!
See original GitHub issueI’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.
-
Source the setup.sh file from an existing catkin workspace: source SETUP_FILE
-
Extend another catkin workspace’s result (install or devel) space: catkin config --extend RESULT_SPACE
-
Set
catkin_DIR
to the directory containingcatkin-config.cmake
: catkin config --cmake-args -Dcatkin_DIR=CATKIN_CMAKE_CONFIG_PATH -
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:
- Created 5 years ago
- Reactions:1
- Comments:8
Top GitHub Comments
it helped me . /opt/ros/kinetic/setup.bash
In my case I extended the configuration of catkin (same to source) explicitly:
catkin config --extend /opt/ros/melodic