Issues with librgbdtools and g2o compilation.
Hey,
I am trying to compile ccny_rgbd_tools (master branch) on ROS Hydro, ubuntu 12.04. (After struggling with http://answers.ros.org/question/20969... ).
I run the rosdep install command, and it installs libg2o. (ros-hydro-libg2o). Then I get these errors:
Linking CXX shared library lib/librgbdtools.so
make[3]: Leaving directory /home/tanmay/hydro_workspace/sisl_sandbox/ccny_rgbd_tools/lib_rgbdtools/rgbdtools_git/build' [ 87%] Built target rgbdtools make[3]: Entering directory/home/tanmay/hydro_workspace/sisl_sandbox/ccny_rgbd_tools/lib_rgbdtools/rgbdtools_git/build'
Scanning dependencies of target global_cloud_align
make[3]: Leaving directory /home/tanmay/hydro_workspace/sisl_sandbox/ccny_rgbd_tools/lib_rgbdtools/rgbdtools_git/build' make[3]: Entering directory/home/tanmay/hydro_workspace/sisl_sandbox/ccny_rgbd_tools/lib_rgbdtools/rgbdtools_git/build'
[ 93%] Building CXX object CMakeFiles/global_cloud_align.dir/apps/global_cloud_align.cpp.o
Linking CXX executable bin/global_cloud_align
lib/librgbdtools.so: error: undefined reference to 'g2o::get_monotonic_time()'
lib/librgbdtools.so: error: undefined reference to 'cs_di_sfree'
lib/librgbdtools.so: error: undefined reference to 'cs_di_schol'
lib/librgbdtools.so: error: undefined reference to 'cs_di_amd'
lib/librgbdtools.so: error: undefined reference to 'cs_di_free'
lib/librgbdtools.so: error: undefined reference to 'cs_di_calloc'
lib/librgbdtools.so: error: undefined reference to 'cs_di_pinv'
lib/librgbdtools.so: error: undefined reference to 'cs_di_symperm'
lib/librgbdtools.so: error: undefined reference to 'cs_di_etree'
lib/librgbdtools.so: error: undefined reference to 'cs_di_post'
lib/librgbdtools.so: error: undefined reference to 'cs_di_counts'
lib/librgbdtools.so: error: undefined reference to 'cs_di_spfree'
lib/librgbdtools.so: error: undefined reference to 'cs_di_malloc'
lib/librgbdtools.so: error: undefined reference to 'cs_di_cumsum'
lib/librgbdtools.so: error: undefined reference to 'cs_di_nfree'
When I remove libg2o and run rosmake --pre-clean, it cannot find some header files. I tried manually including these, but it still comes up as errors.
[ 87%] Building CXX object CMakeFiles/rgbdtools.dir/src/graph/keyframe_graph_solver_g2o.cpp.o
In file included from /home/tanmay/hydro_workspace/sisl_sandbox/ccny_rgbd_tools/lib_rgbdtools/rgbdtools_git/src/graph/keyframe_graph_solver_g2o.cpp:24:0:
/home/tanmay/hydro_workspace/sisl_sandbox/ccny_rgbd_tools/lib_rgbdtools/rgbdtools_git/include/rgbdtools/graph/keyframe_graph_solver_g2o.h:27:39: fatal error: g2o/core/sparse_optimizer.h: No such file or directory
Any suggestions as to how I can solve this inconsistency, guys? @idryanov
Thanks in advance!