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

Problem compiling face_recognition (procrob_functional)

asked 2012-06-04 20:29:16 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi Ros users,

I would like to use face_recognition (procrob_functional) but I have got an error while compiling :

/usr/bin/ld: CMakeFiles/Fclient.dir/src/face_rec_client.o: undefined reference to symbol 'vtable for boost::detail::thread_data_base' /usr/bin/ld: note: 'vtable for boost::detail::thread_data_base' is defined in DSO /usr/lib/libboost_thread.so.1.46.1 so try adding it to the linker command line /usr/lib/libboost_thread.so.1.46.1: could not read symbols: Invalid operation collect2: ld a retourné 1 code d'état d'exécution make[3]: * [../bin/Fclient] Erreur 1

Any help welcome.

Thanks in advance

Christophe

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
3

answered 2012-07-10 05:42:23 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I encountered the same problem today and just followed the answer tor proposed. I want to clarify the answer for newbies like me

rosbuild_link_boost(Fserver thread)

rosbuild_link_boost(Fclient thread)

add these two lines after this one

rosbuild_add_executable(Fclient src/face_rec_client.cpp)

edit flag offensive delete link more
0

answered 2012-06-07 16:39:06 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Howdy,

Try to adjust the CMakeLists.txt to

...
rosbuild_add_executable(foo foo.cpp)
rosbuild_link_boost(foo thread)

Wish this helps.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-06-04 20:29:16 -0600

Seen: 952 times

Last updated: Aug 24 '12