Problem installing RtabMap on Debian 9

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem installing RtabMap on Debian 9

s01101
Hello,

I followed the installation instruction on https://github.com/introlab/rtabmap/wiki/Installation#standalone

I got to step 3 : Download RTAB-Map source: get latest release or current source

    $ git clone https://github.com/introlab/rtabmap.git rtabmap
    $ cd rtabmap/build
    $ cmake ..
    $ make -j4
    $ sudo make install


while running make -j4 I got this error :

[ 13%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/RegistrationIcp.cpp.o
/usr/bin/ld: cannot find -lQt5::Widgets
collect2: error: ld returned 1 exit status
tools/ExtractObject/CMakeFiles/extractObject.dir/build.make:352: recipe for target '../bin/rtabmap-extractObject' failed
make[2]: *** [../bin/rtabmap-extractObject] Error 1
CMakeFiles/Makefile2:490: recipe for target 'tools/ExtractObject/CMakeFiles/extractObject.dir/all' failed
make[1]: *** [tools/ExtractObject/CMakeFiles/extractObject.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 14%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/RegistrationVis.cpp.o
In file included from /usr/local/include/g2o/solvers/csparse/csparse_helper.h:30:0,
                 from /usr/local/include/g2o/solvers/csparse/linear_solver_csparse.h:30,
                 from /home/adadad/rtabmap/corelib/src/optimizer/OptimizerG2O.cpp:66:
/usr/local/include/g2o/solvers/csparse/csparse_extension.h:27:16: fatal error: cs.h: No such file or directory
 #include <cs.h>
                ^
compilation terminated.
corelib/src/CMakeFiles/rtabmap_core.dir/build.make:1411: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/OptimizerG2O.cpp.o' failed
make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/OptimizerG2O.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/adadad/rtabmap/corelib/src/rtflann/util/params.h:33:0,
                 from /home/adadad/rtabmap/corelib/src/rtflann/flann.hpp:42,
                 from /home/adadad/rtabmap/corelib/src/RegistrationVis.cpp:51:
/home/adadad/rtabmap/corelib/src/rtflann/util/any.h: In member function ‘virtual void rtflann::anyimpl::big_any_policy<T>::static_delete(void**)’:
/home/adadad/rtabmap/corelib/src/rtflann/util/any.h:81:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
         ^~
/home/adadad/rtabmap/corelib/src/rtflann/util/any.h:81:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
                                                       ^
CMakeFiles/Makefile2:267: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/all' failed
make[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
root@debian:/home/adadad/rtabmap/build#

Has anyone else had this error while installing Rtabmap ?

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Problem installing RtabMap on Debian 9

matlabbe
Administrator
Hi,

cs.h is a dependency of g2o. You can try to find where cs.h is installed. Normally, cmake should have found it on this line.

You may do "make VERBOSE=1" to see what are the include directories.
Reply | Threaded
Open this post in threaded view
|

Re: Problem installing RtabMap on Debian 9

s01101
This post was updated on .
thanks, i will try this.