Ask Your Question
0

error compiling pluginlib on a mac?

asked 2011-04-15 14:14:48 -0600

jrieffel gravatar image

updated 2011-05-03 19:42:47 -0600

tfoote gravatar image

attempting to install either gscam or usb_cam results in errors involving boost:

Any advice?

bash-3.2$ rosmake gscam

(after some success...:)

[ rosmake ] All 24 linesluginlib: 3.0 sec ] [ roscpp: 0.7 sec ]
[ 2 Active 19/33 Complete ] {------------------------------------------------------------------------------- mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake ..
[rosbuild] Building package pluginlib [rosbuild] Including /Users/rieffelj/ros/ros_comm/clients/roslisp/cmake/roslisp.cmake [rosbuild] Including /Users/rieffelj/ros/ros_comm/clients/rospy/cmake/rospy.cmake [rosbuild] Including /Users/rieffelj/ros/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake -- Configuring done -- Generating done CMake Warning: The variable, 'CMAKE_TOOLCHAIN_FILE', specified manually, was not used during the generation. -- Build files have been written to: /Users/rieffelj/ros/common/pluginlib/build cd build && make -l8 [ 0%] Built target rospack_genmsg_libexe [ 0%] Built target rosbuild_precompile [ 3%] Building CXX object CMakeFiles/boost_fs_wrapper.dir/src/boost_fs_wrapper.o /Users/rieffelj/ros/common/pluginlib/src/boost_fs_wrapper.cpp: In function 'std::string pluginlib::getPackageFromLibraryPath(const std::string&)':
/Users/rieffelj/ros/common/pluginlib/src/boost_fs_wrapper.cpp:58: error: conversion from 'boost::filesystem3::path' to non-scalar type 'std::basic_string<char, std::char_traits<char="">, std::allocator<char> >' requested
/opt/local/include/boost/system/error_code.hpp: At global scope:
/opt/local/include/boost/system/error_code.hpp:214: warning: 'boost::system::posix_category' defined but not used
/opt/local/include/boost/system/error_code.hpp:215: warning: 'boost::system::errno_ecat' defined but not used
/opt/local/include/boost/system/error_code.hpp:216: warning: 'boost::system::native_ecat' defined but not used make[3]: * [CMakeFiles/boost_fs_wrapper.dir/src/boost_fs_wrapper.o] Error 1 make[2]: [CMakeFiles/boost_fs_wrapper.dir/all] Error 2 make[1]: ** [all] Error 2 -------------------------------------------------------------------------------} [ rosmake ] Output from build of package pluginlib written to: [ rosmake ]
/Users/rieffelj/.ros/rosmake/rosmake_output-20110415-221135/pluginlib/build_output.log [rosmake-7] Finished <<< pluginlib [FAIL] [ 2.98 seconds ]
[ rosmake ] Halting due to failure in package pluginlib. [ rosmake ] Waiting for other threads to complete. [rosmake-2] Finished <<< roscpp [PASS] [ 4.73 seconds ]
[ rosmake ] Results:
[ rosmake ] Built 21 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /Users/rieffelj/.ros/rosmake/rosmake_output-20110415-221135

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2011-04-27 07:58:53 -0600

tfoote gravatar image

updated 2011-04-27 07:59:24 -0600

It looks like the same issue with Boost version in ticket #ros-pkg4923

edit flag offensive delete link more
0

answered 2011-05-03 13:35:00 -0600

jrieffel gravatar image

Applying the patch specified in the ticket got be past the pluginlib portion of the usb_cam compile. However now I'm getting these errors:

[ rosmake ] Last 40 linesb_cam: 4.4 sec ] [ 1 Active 33/34 Complete ] {------------------------------------------------------------------------------- /Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:603: error: aggregate 'v4l2_buffer buf' has incomplete type and cannot be defined /Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:611: error: 'VIDIOC_QUERYBUF' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp: In function 'void init_userp(unsigned int)':
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:624: error: aggregate 'v4l2_requestbuffers req' has incomplete type and cannot be defined
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:633: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:634: error: 'V4L2_MEMORY_USERPTR' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:636: error: 'VIDIOC_REQBUFS' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:655: error: 'memalign' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp: In function 'void init_device(int, int)':
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:666: error: aggregate 'v4l2_capability cap' has incomplete type and cannot be defined
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:667: error: aggregate 'v4l2_cropcap cropcap' has incomplete type and cannot be defined
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:668: error: aggregate 'v4l2_crop crop' has incomplete type and cannot be defined /Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:669: error: aggregate 'v4l2_format fmt' has incomplete type and cannot be defined /Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:672: error: 'VIDIOC_QUERYCAP' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:681: error: 'V4L2_CAP_VIDEO_CAPTURE' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:688: error: 'V4L2_CAP_READWRITE' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:697: error: 'V4L2_CAP_STREAMING' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:709: error: 'V4L2_BUF_TYPE_VIDEO_CAPTURE' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:711: error: 'VIDIOC_CROPCAP' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:715: error: 'VIDIOC_S_CROP' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:741: error: 'V4L2_FIELD_INTERLACED' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:744: error: 'VIDIOC_S_FMT' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp: In function 'usb_cam_camera_image_t* usb_cam_camera_start(const char, usb_cam_io_method, usb_cam_pixel_format, int, int)':
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:814: error: 'V4L2_PIX_FMT_YUYV' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:816: error: 'V4L2_PIX_FMT_UYVY' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp:818: error: 'V4L2_PIX_FMT_MJPEG' was not declared in this scope
/Users/rieffelj/ros/usb_cam/src/libusb_cam/usb_cam.cpp: In ...

(more)
edit flag offensive delete link more

Comments

This is a different problem please ask it in a new question.
tfoote gravatar imagetfoote ( 2011-05-03 16:39:23 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2011-04-15 14:14:48 -0600

Seen: 559 times

Last updated: May 03 '11