Roboearth re_vision build error [closed]

asked 2013-04-19 20:49:41 -0600

Albert K gravatar image

updated 2013-04-21 19:28:28 -0600

I tried to install roboearth following this.

When I tried to rosmake re_vision, I got the following errors:

[ rosmake ] Last 40 lines_vision: 45.2 sec ]                                                               [ 1 Active 14/15 Complete ]
{-------------------------------------------------------------------------------
  make[2]: *** [CMakeFiles/getModelInfo.dir/all] Error 2
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::SparseOptimizer::setSolver(g2o::Solver*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::globalStats'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::SparseOptimizer::setMethod(g2o::SparseOptimizer::Method)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::OptimizableGraph::addVertex(g2o::OptimizableGraph::Vertex*, g2o::OptimizableGraph::Data*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::Solver::Solver(g2o::SparseOptimizer*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::OptimizableGraph::addEdge(g2o::OptimizableGraph::Edge*)'
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/changeScaleFactor] Error 1
  make[3]: Leaving directory `/home/albert/code/ros/roboearth/stacks/roboearth/re_vision/build'
  make[2]: *** [CMakeFiles/changeScaleFactor.dir/all] Error 2
  Linking CXX executable ../bin/createPlanarModel
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::SparseOptimizer::setSolver(g2o::Solver*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::globalStats'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::SparseOptimizer::setMethod(g2o::SparseOptimizer::Method)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::OptimizableGraph::addVertex(g2o::OptimizableGraph::Vertex*, g2o::OptimizableGraph::Data*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::Solver::Solver(g2o::SparseOptimizer*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::OptimizableGraph::addEdge(g2o::OptimizableGraph::Edge*)'
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/createPlanarModel] Error 1
  make[3]: Leaving directory `/home/albert/code/ros/roboearth/stacks/roboearth/re_vision/build'
  make[2]: *** [CMakeFiles/createPlanarModel.dir/all] Error 2
  Linking CXX executable ../bin/createCubeModel
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::SparseOptimizer::setSolver(g2o::Solver*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::globalStats'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::SparseOptimizer::setMethod(g2o::SparseOptimizer::Method)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::OptimizableGraph::addVertex(g2o::OptimizableGraph::Vertex*, g2o::OptimizableGraph::Data*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::Solver::Solver(g2o::SparseOptimizer*)'
  ../lib/libObjectDetectorFunctions.so: undefined reference to `g2o::OptimizableGraph::addEdge(g2o::OptimizableGraph::Edge*)'
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/createCubeModel] Error 1
  make[3]: Leaving directory `/home/albert/code/ros/roboearth/stacks/roboearth/re_vision/build'
  make[2]: *** [CMakeFiles/createCubeModel.dir/all] Error 2
  Linking CXX executable ../bin/TestObjectDetector
  make[3]: Leaving directory `/home/albert/code/ros/roboearth/stacks/roboearth/re_vision/build'
  [ 93%] Built target TestObjectDetector
  make[2]: Leaving directory `/home/albert/code/ros/roboearth/stacks/roboearth/re_vision/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/albert/code/ros/roboearth/stacks/roboearth/re_vision/build'

I use ROS Feurte on Ubuntu 12.04

What's the problem and how to solve it? Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-11-26 03:28:24.181239

Comments

This seems to be re_vision, not re_comm. Which Linux and ROS versions do you use?

moritz gravatar imagemoritz ( 2013-04-20 23:08:07 -0600 )edit

sorry about that...I've correct the mistake. I use ROS Feurte on Ubuntu 12.04

Albert K gravatar imageAlbert K ( 2013-04-21 05:42:54 -0600 )edit

I have the same problem, was anyone able to fix this?

Schluchti gravatar imageSchluchti ( 2013-05-24 02:47:52 -0600 )edit

Any Solution to this problem?

sai gravatar imagesai ( 2013-07-17 16:54:34 -0600 )edit