find_package(catkin) fails in Hydro
I am trying to move some packages made in Groovy to Hydro, which I just finished installing. After struggling to convert my previous workspace, I am trying to start again fresh, so following the tutorial I
source /opt/ros/hydro/setup.bash
mkdir -p ~/iar_ws_hydro/src
cd ~/iar_ws_hydro/src
cd ~/iar_ws_hydro/
catkin_make
However, when I run the catkin_make
command in my brand new folder, it seems to recognize the command and start setting up the workspace, but then fails to find the catkin package. Here's the output:
abouchard@linux-z28r:~/iar_ws_hydro> catkin_make
Base path: /home/abouchard/iar_ws_hydro
Source space: /home/abouchard/iar_ws_hydro/src
Build space: /home/abouchard/iar_ws_hydro/build
Devel space: /home/abouchard/iar_ws_hydro/devel
Install space: /home/abouchard/iar_ws_hydro/install
####
#### Running command: "cmake /home/abouchard/iar_ws_hydro/src -DCATKIN_DEVEL_PREFIX=/home/abouchard/iar_ws_hydro/devel -DCMAKE_INSTALL_PREFIX=/home/abouchard/iar_ws_hydro/install" in "/home/abouchard/iar_ws_hydro/build"
####
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:44 (message):
find_package(catkin) failed. catkin was neither found in the workspace nor
in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh was
sourced before.
-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
I have to confess to being totally lost on this one. Obviously catkin is installed because it recognizes the catkin_make command, and the setup.bash calls setup.sh. $CMAKE_PREFIX_PATH
contains /opt/ros/hydro:/home/abouchard/ros_catkin_ws/install_isolated
, and I can confirm that there are a whole mess of catkin executables in /opt/ros/hydro/bin
if that helps.