Build project with example code but failed, Any help great appreciated!

Posted by derwee on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Build-project-with-example-code-but-failed-Any-help-great-appreciated-tp545.html

Hi Matlabbe,
I am new blood with C++ and Cmake, I intend to compile a example project with source code(rtabmap-master/examples/BOWMapping) to get well understand to Rtabmap.  But It encounter some errors. Actually I have install Rtabmap by source code, But I compile example project standalone failed. May I recompile a standalone project with example code? Anyone can share the CMakeLists.txt  with me ? any help great appreciated!

Error log:
root@derwee-ThinkPad-T440:/derwee/rtabmap-master/examples/BOWMapping# make
Scanning dependencies of target bow_mapping
[100%] Building CXX object CMakeFiles/bow_mapping.dir/main.o
/derwee/rtabmap-master/examples/BOWMapping/main.cpp:28:34: fatal error: rtabmap/core/Rtabmap.h: No such file or directory
 #include "rtabmap/core/Rtabmap.h"
                                  ^
compilation terminated.
make[2]: *** [CMakeFiles/bow_mapping.dir/main.o] Error 1
make[1]: *** [CMakeFiles/bow_mapping.dir/all] Error 2
make: *** [all] Error 2