shiva16 / rtabmap

Automatically exported from code.google.com/p/rtabmap
0 stars 0 forks source link

Build errors with rtabmap_lib package where OpenCV's methods are not found #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout the rtabmap_lib package somewhere in your ROS_PACKAGE_PATH
2. rosmake rtabmap_lib

What is the expected output? 
-build success

What do you see instead?
-Build errors

[rosmake-2] Starting >>> rtabmap_lib [ make ]                                   

[ rosmake ] Last 40 linesabmap_lib: 3.0 sec ]                                   
                                    [ 1 Active 29/30 Complete ]
{-------------------------------------------------------------------------------
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:402: error: request for member ‘end’ in ‘((rtabmap::Rtabmap*)this)->rtabmap::Rtabmap::_imagesBuffer’, which is of non-class type ‘int’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:404: error: ‘cvReleaseImage’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:406: error: request for member ‘clear’ in ‘((rtabmap::Rtabmap*)this)->rtabmap::Rtabmap::_imagesBuffer’, which is of non-class type ‘int’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp: In member function ‘virtual void rtabmap::Rtabmap::handleEvent(UEvent*)’:
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:526: error: ‘IplImage’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:526: error: ‘img’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:526: error: ‘class rtabmap::CameraEvent’ has no member named ‘getImageOwnership’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp: In member function ‘void rtabmap::Rtabmap::process()’:
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:618: error: ‘IplImage’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:618: error: ‘image’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:631: error: ‘class rtabmap::Rtabmap’ has no member named ‘getImage’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:637: error: ‘cvReleaseImage’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:644: error: ‘cvReleaseImage’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:978: error: request for member ‘size’ in ‘ssRef->rtabmap::KeypointSignature::getWords()’, which is of non-class type ‘const int’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:979: error: no matching function for call to ‘uUniqueKeys(const int&)’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1011: error: ‘cvCloneImage’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1015: error: expected initializer before ‘*’ token
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1016: error: ‘img’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1021: error: ‘tmp’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1021: error: ‘IplImage’ cannot appear in a constant-expression
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1021: error: parse error in template argument list
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1021: error: no matching function for call to ‘UVariant::takeDataOwnership()’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1034: error: ‘class rtabmap::Statistics’ has no member named ‘setPosterior’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1035: error: ‘class rtabmap::Statistics’ has no member named ‘setLikelihood’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1044: error: ‘class rtabmap::Statistics’ has no member named ‘setWeights’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1051: error: request for member ‘size’ in ‘((rtabmap::Rtabmap*)this)->rtabmap::Rtabmap::_imagesBuffer’, which is of non-class type ‘int’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1075: error: ‘class rtabmap::Statistics’ has no member named ‘setRefWords’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1080: error: ‘class rtabmap::Statistics’ has no member named ‘setLoopWords’
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp: At global scope:
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1228: error: variable or field ‘addImage’ declared void
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1228: error: ‘IplImage’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1228: error: ‘image’ was not declared in this scope
  /home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/corelib/src/Rtabmap.cpp:1601: error: expected ‘}’ at end of input
  make[3]: *** [corelib/src/CMakeFiles/corelib.dir/Rtabmap.cpp.o] Error 1
  make[3]: Leaving directory `/home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/build'
  make[2]: *** [corelib/src/CMakeFiles/corelib.dir/all] Error 2
  make[2]: Leaving directory `/home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/matlab/workspace/ros-pkg/rtabmap_lib/build/rtabmap-svn/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package rtabmap_lib written to:
[ rosmake ]    
/home/matlab/.ros/rosmake/rosmake_output-20110524-134157/rtabmap_lib/build_outpu
t.log
[rosmake-2] Finished <<< rtabmap_lib [FAIL] [ 3.04 seconds ]                    

[ rosmake ] Halting due to failure in package rtabmap_lib. 
[ rosmake ] Waiting for other threads to complete.                              

[ rosmake ] Results:                                                            

[ rosmake ] Built 30 packages with 1 failures.                                  

[ rosmake ] Summary output to directory                                  

This problem comes from ROS OpenCV installation : see 
[https://code.ros.org/trac/opencv/ticket/943 ROS Ticket 943]

Original issue reported on code.google.com by matla...@gmail.com on 20 Jun 2011 at 6:44

GoogleCodeExporter commented 9 years ago
Temporary solution (until it is fixed in the related ROS ticket):
With the current version of ROS installed (ros-diamondback-vision-opencv : 
1.4.2), the paths in OpenCVConfig.cmake are wrong where a prefix like 
"/tmp/buildd/..." is used, see the ROS Ticket. Open the following file and 
remove all 
/tmp/buildd/ros-diamondback-vision-opencv-1.4.2/debian/ros-diamondback-vision-op
encv prefixes (before the /opt/...) :

/opt/ros/diamondback/stacks/vision_opencv/opencv2/opencv/share/opencv/OpenCVConf
ig.cmake

Original comment by matla...@gmail.com on 20 Jun 2011 at 6:44

GoogleCodeExporter commented 9 years ago
This problem doesn't appear in ROS Electric because the stand-alone OpenCV lib 
is now used directly (where the OpenCVConfig.cmake is correctly installed in 
/usr/share/OpenCV2.3).

Original comment by matla...@gmail.com on 21 Nov 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Fixed in Electric...

Original comment by matla...@gmail.com on 3 Mar 2012 at 4:50