procrob / face_recognition

A face recognition package for ROS
38 stars 41 forks source link

Compiling procrob_functional #1

Closed ebeowulf closed 11 years ago

ebeowulf commented 11 years ago

Hopefully, I'm doing something stupid... but when I clone procrob_functional into my sandbox, change into that directory, and type rosmake, I get the following error:


/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 returned 1 exit status make[3]: *\ [../bin/Fclient] Error 1


So then I edited the CMakeLists.txt file to add the lines (after rosbuild_init()) rosbuild_add_boost_directories() rosbuild_link_boost(${PROJECT_NAME} thread)

And now I get a new error:


mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. -- Action Files:FaceRecognition.action -- Generating Messages for ActionFaceRecognition.action -- /home/emartinson/fuerte_workspace/sandbox/procrob_functional/face_recognition/msg/FaceRecognitionAction.msg [rosbuild] Building package face_recognition [rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake [rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake [rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake CMake Error at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:897 (target_link_libraries): Cannot specify link libraries for target "face_recognition" which is not built by this project. Call Stack (most recent call first): CMakeLists.txt:19 (rosbuild_link_boost)

-- Configuring incomplete, errors occurred!


I'm using ROS Fuerte with 12.04 Ubuntu (tried both 64 and 32 bit). If you have any suggestions, I would greatly appreciate it.

Thank You, Eric

procrob commented 11 years ago

Hi,

Let me know if this helps. http://answers.ros.org/question/35679/problem-compiling-face_recognition-procrob_functional/

Cheers, Pouyan

ebeowulf commented 11 years ago

That did it. Thanks!

-Eric