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

Roboearth build fails at re_vision

asked 2011-11-19 22:07:59 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I m trying to build roboearth on oneiric on electric version of ROS and using gcc4.6 compiler. but i came across with the following error:

[ 19%] Building CXX object CMakeFiles/DUtilsCV.dir/src/3rdparty/DUtilsCV/Drawing.o /home/pragyan/tredext/biome/roboearth/re_vision/src/3rdparty/DUtilsCV/Drawing.cpp: In static member function ‘static void DUtilsCV::Drawing::drawCorrespondences(cv::Mat&, const cv::Mat&, const cv::Mat&, const std::vector<cv::keypoint>&, const std::vector<cv::keypoint>&, const std::vector<int>&, const std::vector<int>&)’:
/home/pragyan/tredext/biome/roboearth/re_vision/src/3rdparty/DUtilsCV/Drawing.cpp:107:35: error: taking address of temporary [-fpermissive]
/home/pragyan/tredext/biome/roboearth/re_vision/src/3rdparty/DUtilsCV/Drawing.cpp:116:3: error: taking address of temporary [-fpermissive]
/home/pragyan/tredext/biome/roboearth/re_vision/src/3rdparty/DUtilsCV/Drawing.cpp:124:3: error: taking address of temporary [-fpermissive] make[3]: * [CMakeFiles/DUtilsCV.dir/src/3rdparty/DUtilsCV/Drawing.o] Error 1 make[3]: Leaving directory /home/pragyan/tredext/biome/roboearth/re_vision/build' make[2]: *** [CMakeFiles/DUtilsCV.dir/all] Error 2 make[2]: Leaving directory /home/pragyan/tredext/biome/roboearth/re_vision/build' make[1]: * [all] Error 2 make[1]: Leaving directory `/home/pragyan/tredext/biome/roboearth/re_vision/build'

Any body with clue what's the meaning of error: taking address of temporary[-fpermissive] and how it can be resolved? Thanks in advanced.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2011-11-20 20:34:58 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

As of revision r1464, the RoboEarth object scanning software and re_vision should compile under Ubuntu Oneiric, too.

edit flag offensive delete link more

Comments

thanks it is working fine now.
pntripathi9417 gravatar image pntripathi9417  ( 2011-11-30 17:59:44 -0500 )edit
0

answered 2011-11-20 00:01:08 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

i managed to get rid of this error by adding -fpermissive flag im cmake.mk file of ROS core. but now i m stuck with the error:

[ 63%] Built target ObjectDetectorDummy make[3]: Entering directory /home/pragyan/tredext/biome/roboearth/re_vision/build' Scanning dependencies of target changeReferenceSystem make[3]: Leaving directory /home/pragyan/tredext/biome/roboearth/re_vision/build' make[3]: Entering directory /home/pragyan/tredext/biome/roboearth/re_vision/build' [ 65%] Building CXX object CMakeFiles/changeReferenceSystem.dir/src/PointCloudModelCreator/changeReferenceSystem.o Linking CXX executable ../bin/changeReferenceSystem
../lib/libDVision.so: undefined reference to
DUtils::FileFunctions::Dir(char const, char const, bool)'
collect2: ld returned 1 exit status
make[3]: * [../bin/changeReferenceSystem] Error 1 make[3]: Leaving directory /home/pragyan/tredext/biome/roboearth/re_vision/build' make[2]: *** [CMakeFiles/changeReferenceSystem.dir/all] Error 2 make[2]: Leaving directory /home/pragyan/tredext/biome/roboearth/re_vision/build' make[1]: * [all] Error 2 make[1]: Leaving directory `/home/pragyan/tredext/biome/roboearth/re_vision/build'

I m not able to figure out which file in the re_vision directory has this declaration and why is it undefined? Thanks in advance for the help...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-11-19 22:07:59 -0500

Seen: 385 times

Last updated: Nov 29 '11