ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

CMake error while building rpg_svo

asked 2014-11-23 15:39:12 -0600

Robin Singh gravatar image

updated 2014-12-01 02:14:21 -0600

ahendrix gravatar image
CMake Error at /home/ubuntu/catkin_ws/devel/share/vikit_common/cmake/vikit_commonConfig.cmake:106 (message):
  Project 'vikit_common' specifies '//include/opencv' as an include dir,
  which is not found.  It does neither exist as an absolute directory nor in
  '/home/ubuntu/catkin_ws/src/rpg_vikit/vikit_common///include/opencv'.  Ask
  the maintainer 'cforster <forster@ifi.uzh.ch>' to fix it.
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package)
  rpg_vikit/vikit_ros/CMakeLists.txt:17 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!

The error is pretty discriptive, instead of /usr/include/opencv, I am somehow getting //include/opencv when i do catkin_make. Can anyone guide me to a direction on how to fix this trivial problem

edit retag flag offensive close merge delete

Comments

Are you running this on a Nvidia Jetson TK1 board with Nvidia's build of OpenCV?

ahendrix gravatar image ahendrix  ( 2014-11-23 22:04:03 -0600 )edit

great catch. yes i am trying to run svo on TK1 with opencv4tegra.

Robin Singh gravatar image Robin Singh  ( 2014-11-25 16:06:30 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-25 17:03:27 -0600

ahendrix gravatar image

updated 2014-11-25 20:11:04 -0600

There's a known bug in NVidia's opencv cmake files on the TK1. I don't remember what the patch was, but you can probably find it on the nvidia forums. I'll try to post it later when I dig it up.

The official response that I got from NVidia when I reported this back in May was:

It turns out that this is a known bug in OpenCV. An upcoming release will contain a fix. In the meantime, as a workaround you should be able to edit the OpenCVConfig.cmake file and change the line: set(OpenCV_ANDROID_NATIVE_API_LEVEL 9) to: set(OpenCV_ANDROID_NATIVE_API_LEVEL 0)

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-11-23 15:39:12 -0600

Seen: 2,607 times

Last updated: Nov 25 '14