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

The rosmake error on compiling mjpeg_server package

asked 2012-04-08 14:44:31 -0500

tairen gravatar image

Hi, all,

 I want to find way to load the video on the web browser, after I can not try

gscam and rosbridge, I find maybe I can use mjpeg_server and rosbridge. I think the materials on bosch-ros-pkg is very useful, however, when I use the way from the remote_lab, the rosmake can not pass on the robot_booking, the errors are:

CMake Error at /opt/ros/diamondback/ros/core/rosbuild/public.cmake:113 (message):

Failed to invoke rospack to get compile flags for package 'robot_booking'.
Look above for errors from rospack itself.  Aborting.  Please fix the
broken dependency!

Call Stack (most recent call first): /opt/ros/diamondback/ros/core/rosbuild/public.cmake:183 (rosbuild_invoke_rospack) CMakeLists.txt:12 (rosbuild_init)

-- Configuring incomplete, errors occurred! -------------------------------------------------------------------------------} [ rosmake ] Output from build of package robot_booking written to: [ rosmake ] /home/tairen/.ros/rosmake/rosmake_output-20120408-182840/robot_booking/build_output.log
[rosmake-1] Finished <<< robot_booking [FAIL] [ 1.01 seconds ]
[ rosmake ] Halting due to failure in package robot_booking. [ rosmake ] Waiting for other threads to complete.
[rosmake-3] Finished <<< rosjs_pr2interaction [PASS] [ 1.24 seconds ]
[ rosmake ] Output from build of package pointcloud_snapshot_service written to:

After that, I think I just need to the mjpeg_server package, so I compile the 
 mjpeg_server individually, the error occurs again:

In file included from /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/flann_base.hpp:39:0, from /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/flann.hpp:48, from /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/opencv.hpp:48, from /opt/ros/diamondback/stacks/remotelab/remote_lab/mjpeg_server/src/mjpeg_server.cpp:51: /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:66:2: error: expected identifier before numeric constant /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:66:2: error: expected ‘}’ before numeric constant /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:66:2: error: expected unqualified-id before numeric constant /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:124:32: error: expected ‘)’ before ‘algorithm_’ /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:128:10: error: ‘flann_algorithm_t’ does not name a type /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:132:2: error: ‘flann_algorithm_t’ does not name a type /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:136:9: error: ‘ObjectFactory’ does not name a type /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:137:12: error: ‘ParamsFactory’ does not name a type /opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/include/opencv2/flann/general.h:146:1: error: expected declaration before ‘}’ token make[3]: * [CMakeFiles/mjpeg_server.dir/src/mjpeg_server.o] Error 1 make[3]: Leaving directory /opt/ros/diamondback/stacks/remotelab/remote_lab/mjpeg_server/build' make[2]: *** [CMakeFiles/mjpeg_server.dir/all] Error 2 make[2]: Leaving directory/opt/ros/diamondback/stacks/remotelab/remote_lab/mjpeg_server/build' make[1]: * [all] Error 2 make[1]: Leaving directory `/opt/ros/diamondback/stacks/remotelab/remote_lab/mjpeg_server/build'

I check the error, it ...
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2012-04-14 08:22:15 -0500

tairen gravatar image

Maybe it depends on different version, when I use the ROS electric version to compile mjpeg_server package, I can avoid these errors, and more greatly, I can use the compiled package bin file on the diamondback too.

Hope this will help others who still want to use diamondback + mjpeg_server for some special reasons.

edit flag offensive delete link more


I was also interested in using diamondback + mjpeg_server. I checked out the package at , compiled it without errors and works like a charm!

marija gravatar image marija  ( 2012-12-13 20:52:35 -0500 )edit

Question Tools


Asked: 2012-04-08 14:44:31 -0500

Seen: 551 times

Last updated: Apr 14 '12