"Add directory" error after catkin build

asked 2018-08-31 05:40:40 -0600

Domenico.Mura gravatar image

updated 2018-09-02 04:24:25 -0600

gvdhoorn gravatar image

I'm using ros kinetic in a virtualized Ubuntu 16.04 on a Dell XPS 13 9360. After building with catkin build I suddenly get this:

Errors
<< src:cmake /home/domenico/catkin_ws_ind/logs/src/build.cmake.001.log
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:116 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory "/home/domenico/catkin_ws_ind/src" is not a subdirectory of
  "/home/domenico/catkin_ws_ind/src".  When specifying an out-of-tree source
  a binary directory must be explicitly specified.
Call Stack (most recent call first):
  CMakeLists.txt:63 (catkin_workspace)

Can't figure out what happened.... thank you in advance


Edit:

Sorry for the late response, here the catkin build full output:

--------------------------------------------------------------------------------
Profile:                     default
Extending:          [cached] /home/domenico/catkin_ws2/devel:/home/domenico/catkin_ws/devel:/opt/ros/kinetic
Workspace:                   /home/domenico/catkin_ws_ind
--------------------------------------------------------------------------------
Source Space:       [exists] /home/domenico/catkin_ws_ind/src
Log Space:          [exists] /home/domenico/catkin_ws_ind/logs
Build Space:        [exists] /home/domenico/catkin_ws_ind/build
Devel Space:        [exists] /home/domenico/catkin_ws_ind/devel
Install Space:      [unused] /home/domenico/catkin_ws_ind/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 '1' packages in 0.0 seconds.                                     
[build] Package table is up to date.                                           
Starting  >>> src                                                              
_______________________________________________________________________________
Errors     << src:check /home/domenico/catkin_ws_ind/logs/src/build.check.000.log
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:116 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory "/home/domenico/catkin_ws_ind/src" is not a subdirectory of
  "/home/domenico/catkin_ws_ind/src".  When specifying an out-of-tree source
  a binary directory must be explicitly specified.
Call Stack (most recent call first):
  CMakeLists.txt:63 (catkin_workspace)


make: *** [cmake_check_build_system] Error 1
cd /home/domenico/catkin_ws_ind/build/src; catkin build --get-env src | catkin env -si  /usr/bin/make cmake_check_build_system; cd -
...............................................................................
Failed     << src:check          [ Exited with code 2 ]                        
Failed    <<< src                [ 4.3 seconds ]                               
[build] Summary: 0 of 1 packages succeeded.                                    
[build]   Ignored:   None.                                                     
[build]   Warnings:  None.                                                     
[build]   Abandoned: None.                                                     
[build]   Failed:    1 packages failed.                                        
[build] Runtime: 4.4 seconds total.
edit retag flag offensive close merge delete

Comments

Could you please share the full output? If It's long, I suggest you add it as a github gist.

allenh1 gravatar imageallenh1 ( 2018-08-31 09:55:45 -0600 )edit

I should have specified -- I was hoping for the command you used to invoke this, including the directory from which you ran the command

allenh1 gravatar imageallenh1 ( 2018-09-04 15:14:20 -0600 )edit