-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Hi
I updated to the current master (c3606dd) today and can no longer compile snap_cam using catkin. Compiling commit 58b4444 still works though. The problem seems to have to do with OpticalFlow and klt_feature_tracker now being git submodules.
Following the Readme in the snap_cam repo and doing only
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd src
git clone https://github.com/ros-perception/vision_opencv
git clone https://github.com/ros-perception/image_common
git clone https://github.com/PX4/snap_cam.git
cd ..
catkin_make
results in the following error
-- Building snap_cam with catkin
CMake Error at snap_cam/CMakeLists.txt:40 (add_subdirectory):
The source directory/home/user/git/catkin_ws/src/snap_cam/src/OpticalFlow
does not contain a CMakeLists.txt file.
which is true and makes sense. So I ran
cd snap_cam
git submodule update --init --recursive
and if I try to compile now, catkin produces another error:
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:114 (message):
catkin_package() 'catkin' must be listed as a buildtool dependency in the
package.xml
Call Stack (most recent call first):
/opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:100 (_catkin_package)
snap_cam/src/OpticalFlow/external/klt_feature_tracker/CMakeLists.txt:119 (catkin_package)-- Configuring incomplete, errors occurred!
See also "/home/user/git/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/git/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
I went on and checked snap_cam/src/OpticalFlow/external/klt_feature_tracker/package.xml to see if it contains catkin as a buildtool dependency; it does. So this is not the issue...
Did anyone else run into this problem? I am able to reproduce it on the snapdragon as well as on a Desktop Ubuntu 14.04.
Building with cmake is still working fine!