[catkin_make AND catkin_make_isolated Error] ros_catkin_ws

asked 2020-06-16 02:03:50 -0500

Ashkr gravatar image

updated 2020-06-16 03:47:41 -0500

gvdhoorn gravatar image

Hi, I have setup ROS on my RPi3B+ and build all the 206 around packages well using this command:

sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic -j2

Issue: when i edit any of the src file, i dont see it update when run the launch file using roslanch. Do i need to build all the packages every time when i edit and save the /src/ file like *.cpp, *.py? since the build takes much time to build all the packages, is there any other way to update that particular ROS package.

So I tried catkin_make OR catkin_make_isolated but failed with these error log. How to clean run catkin_make_isolated ?

Error while run 'catkin_make':

CMake Error at catkin/cmake/catkin_workspace.cmake:95 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.  Try the
  'catkin_make_isolated' command instead.
Call Stack (most recent call first):
  CMakeLists.txt:67 (catkin_workspace)


-- Configuring incomplete, errors occurred!
See also "/home/pi/ros_catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/ros_catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

Error when run 'catkin_make_isolated':

Base path: /home/pi/ros_catkin_ws
Source space: /home/pi/ros_catkin_ws/src
Build space: /home/pi/ros_catkin_ws/build_isolated
Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws/install/bin/catkin_make_isolated", line 162, in <module>
    main()
  File "/home/pi/ros_catkin_ws/install/bin/catkin_make_isolated", line 158, in main
    override_build_tool_check=opts.override_build_tool_check,
  File "/home/pi/ros_catkin_ws/install/lib/python2.7/dist-packages/catkin/builder.py", line 897, in build_workspace_isolated
    mark_space_as_built_by(buildspace, 'catkin_make_isolated')
  File "/usr/lib/python2.7/dist-packages/catkin_pkg/tool_detection.py", line 78, in mark_space_as_built_by
    with open(marker_path, 'w') as f:
IOError: [Errno 13] Permission denied: '/home/pi/ros_catkin_ws/build_isolated/.built_by'
edit retag flag offensive close merge delete