The rosmake error on compiling mjpeg_server package
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 ...