Ask Your Question
1

ueye undefined reference using catkin_make

asked 2014-05-27 05:27:06 -0500

updated 2014-05-28 11:08:32 -0500

130s gravatar image

I stumbled upon a difficulty, when trying to work with uEye camera. I've added include "ueye.h"

to work with code:

HIDS hCam = 1;

INT nRet = is_InitCamera (&hCam, NULL);

Yet this is the output when I try to do catkin_make using my CMakeLists ( http://pastebin.com/u8f4t2Fc )

CMakeFiles/ros_aruco.dir/src/ros_aruco.cpp.o: In function `main':
ros_aruco.cpp:(.text+0x578): undefined reference to `is_InitCamera'
collect2: ld returned 1 exit status

What should I add to make it work?

edit retag flag offensive close merge delete

Comments

Ding dong! Correct answer. Many thanks!

delta785 gravatar imagedelta785 ( 2014-05-28 07:56:48 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-05-28 04:40:18 -0500

joq gravatar image

add ${UEYE_LIBRARY} to the target_link_libraries for ros_aruco?

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

Stats

Asked: 2014-05-27 05:27:06 -0500

Seen: 339 times

Last updated: May 27 '14