Error building Rtabmap on RPi2 on 99%

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

Error building Rtabmap on RPi2 on 99%

abilbrahem
Hi guys :), I want to build Rtabmap on RPi2 but I get error on 99% ! can any body help me please it would be great and thanks a lot.
I'm using ubuntu 14.04 and ros indigo
here is the error :
[ 90%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/__/include/rtabmap/gui/moc_OdometryViewer.cxx.o
[ 91%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/__/include/rtabmap/gui/moc_LoopClosureViewer.cxx.o
[ 91%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/__/include/rtabmap/gui/moc_DataRecorder.cxx.o
[ 92%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/__/include/rtabmap/gui/moc_CameraViewer.cxx.o
[ 92%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/__/include/rtabmap/gui/moc_CalibrationDialog.cxx.o
[ 93%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/moc_ExportDialog.cxx.o
[ 94%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/moc_PostProcessingDialog.cxx.o
[ 94%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/moc_ExportCloudsDialog.cxx.o
[ 95%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/moc_ExportScansDialog.cxx.o
[ 95%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/moc_MapVisibilityWidget.cxx.o
[ 96%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/__/include/rtabmap/gui/moc_GraphViewer.cxx.o
[ 97%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/moc_CreateSimpleCalibrationDialog.cxx.o
[ 97%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/moc_ParametersToolBox.cxx.o
[ 98%] Building CXX object guilib/src/CMakeFiles/rtabmap_gui.dir/qrc_GuiLib.cxx.o
Linking CXX shared library ../../../bin/librtabmap_gui.so
[ 98%] Built target rtabmap_gui
[ 99%] Generating moc_ObjDeletionHandler.cxx
Scanning dependencies of target rtabmap
[100%] [100%] Building CXX object app/src/CMakeFiles/rtabmap.dir/main.cpp.o
Building CXX object app/src/CMakeFiles/rtabmap.dir/moc_ObjDeletionHandler.cxx.o
Linking CXX executable ../../../bin/rtabmap
../../../bin/librtabmap_core.so.0.11.4: undefined reference to `pcl::OrganizedFastMesh<pcl::PointXYZRGBNormal>::performReconstruction(pcl::PolygonMesh&)'
../../../bin/librtabmap_core.so.0.11.4: undefined reference to `pcl::OrganizedFastMesh<pcl::PointXYZRGBNormal>::performReconstruction(std::vector<pcl::Vertices, std::allocator<pcl::Vertices> >&)'
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/rtabmap] Error 1
make[1]: *** [app/src/CMakeFiles/rtabmap.dir/all] Error 2
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: Error building Rtabmap on RPi2 on 99%

matlabbe
Administrator
Hi,

Which PCL version is installed? 1.7 or 1.8?
Reply | Threaded
Open this post in threaded view
|

Re: Error building Rtabmap on RPi2 on 99%

abilbrahem
Hi, I'm using pcl 1.8
Reply | Threaded
Open this post in threaded view
|

Re: Error building Rtabmap on RPi2 on 99%

matlabbe
Administrator
I will try to test with 1.8 soon. In the mean time, you can try to comment these lines in util3d_surface.cpp:
//#if PCL_VERSION_COMPARE(<, 1, 8, 0)
#include "pcl18/surface/organized_fast_mesh.h"
//#else
//#include <pcl/surface/organized_fast_mesh.h>
//#endif
Normally, it is the same code as in 1.8, but copied for versions < 1.8. This may avoid the linker error.

cheers
Reply | Threaded
Open this post in threaded view
|

Re: Error building Rtabmap on RPi2 on 99%

abilbrahem
This post was updated on .
Hi, Thank you so much matlabbe :D, it worked ! I really appreciate your help Thank you.