Closed zengletian1491 closed 4 years ago
Solution: modify the code in the SLStudio.pro according to the used system as follows:
unix:!macx { CONFIG += link_pkgconfig
INCLUDEPATH += /usr/include/vtk-6.2/ /usr/include/opencv2
LIBS += -lvtkViewsQt-6.2 -lvtkRenderingQt-6.2 -lvtkGUISupportQt-6.2 -lvtkRenderingCore-6.2 -lvtkCommonExecutionModel-6.2 \
-lvtkCommonDataModel-6.2 -lvtkCommonMath-6.2 -lvtkCommonCore-6.2 -lvtkIOImage-6.2 -lvtkCommonColor-6.2 -lvtkFiltersCore-6.2 -lvtkFiltersGeometry-6.2
LIBS += /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 \
/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 \
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 \
/usr/lib/x86_64-linux-gnu/libQt5Test.so.5 \
/usr/local/lib/libopencv_imgproc.so.3.4 \
/usr/local/lib/libopencv_core.so.3.4 \
/usr/local/lib/libopencv_calib3d.so.3.4 \
/usr/local/lib/libopencv_highgui.so.3.4
# PCL pkg-config workaround
LIBS += -lboost_system -lpcl_visualization -lpcl_common -lpcl_io -lpcl_search -lpcl_surface
# PKG-config libs
INCLUDEPATH += /usr/include/opencv /usr/include/pcl-1.7 /usr/include/eigen3/
PKGCONFIG += opencv pcl_visualization-1.7 pcl_surface-1.7 pcl_search-1.7 pcl_filters-1.7 pcl_kdtree-1.7 pcl_tracking-1.7 pcl_features-1.7 flann eigen3
}
when the slstudio was compiled, errors occurred as follows:
error: undefined reference to `pcl::tracking::KLDAdaptiveParticleFilterTracker<pcl::PointXYZRGB, pcl::tracking::ParticleXYZRPY>::insertIntoBins(std::vector<int, std::allocator >, std::vector<std::vector<int, std::allocator >, std::allocator<std::vector<int, std::allocator > > >&)' could you please give some suggestions?