Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

klt_feautre_trakcer catkin_package() error #6

Open
YuanfuC opened this issue Oct 10, 2018 · 1 comment
Open

klt_feautre_trakcer catkin_package() error #6

YuanfuC opened this issue Oct 10, 2018 · 1 comment

Comments

@YuanfuC
Copy link

YuanfuC commented Oct 10, 2018

When build snap_cam which depend the klt_feature_tracker the error occur:

-- ==> add_subdirectory(snap_cam)
-- Building snap_cam with catkin
-- Building klt_feature_tracker as a catkin package
-- Using these message generators: gencpp;genlisp;genpy
-- klt_feature_tracker: 0 messages, 1 services
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/linaro/ros_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/linaro/ros_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1

See the issue report at snap_cam .

@YuanfuC
Copy link
Author

YuanfuC commented Oct 10, 2018

Add unset(_CATKIN_CURRENT_PACKAGE) into
'snap_cam/src/OpticalFlow/external/klt_feature_trackernal/CMakeLists.txt '

cmake_minimum_required(VERSION 2.8.3)
 project(klt_feature_tracker)
unset(_CATKIN_CURRENT_PACKAGE)
 # check if this is being built as a ROS package
 if (CATKIN_DEVEL_PREFIX)
     set(CATKIN_BUILD 1)

After add the line, the project can build successfully

YuanfuC pushed a commit to YuanfuC/klt_feature_tracker that referenced this issue Oct 10, 2018
YuanfuC added a commit to YuanfuC/klt_feature_tracker that referenced this issue Oct 10, 2018
tnaegeli added a commit that referenced this issue Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant