Ask Your Question

help building cpp opencv app with ROS

asked 2017-04-20 13:35:05 -0500

burtbick gravatar image

Have a working OpenCV app, and working rosserial_arduino pieces. Want to do some tracking with OpenCV + ROS. Integrated ROS code in OpenCV app and compiles clean with catkin_make.

But catkin_make Linking cannot find libs for cvCreateCameraCapture, etc.
Line from CMakeLIsts.txt target_link_libraries(myopencvtest ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})

Running Indigo. Ubuntu 14.04 (actually Mint 17.1)

What do I need to do to get OpenCV libs to link in?

edit retag flag offensive close merge delete


Please post the output of catkin_make and your complete CMakeLists.txt.

Geoff gravatar image Geoff  ( 2017-04-20 22:27:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-21 14:04:29 -0500

burtbick gravatar image

Thanks Geoff,

Initially wanted to keep the question brief.. As I was collecting the catkin_make output and CMakeLists.txt file I took another look at the CMakeLists.txt file and discovered that while I had the ${OpenCV_LIBRARIES} specified I had missed adding find_package(OpenCV).

Once I did that then the application linked fine.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-04-20 13:35:05 -0500

Seen: 57 times

Last updated: Apr 21 '17