Open ZhouSongxin opened 5 years ago
Hi, If you comment this line: https://github.com/introlab/rtabmap/blob/c437375f0851b1e1ca9ff27d72aca2c2fc6d1083/tools/CMakeLists.txt#L4 Do everything else build?
@ZhouSongxin Did you fix it ? @matlabbe I tried it but it didn't work I also have an issue with pcl, but I install pcl library successfully and test it in local and catkin_ws. I have the errors below, does anyone know how to address this issue?
[ 82%] Linking CXX executable ../../../bin/rtabmap
../../../bin/librtabmap_core.so.0.19.5: undefined reference to pcl::search::Search<pcl::PointNormal>::getName[abi:cxx11]() const' ../../../bin/librtabmap_gui.so.0.19.5: undefined reference to
pcl::search::Searchpcl::search::Search<pcl::PointXYZI>::getName[abi:cxx11]() const' ../../../bin/librtabmap_core.so.0.19.5: undefined reference to
pcl::search::Search
Try cleaning the build directory of rtabmap before rebuilding it, at least remove the CMakeCache.txt if you installed another version of PCL. The linker may still be used headers form the old PCL version, while trying to link on the new PCL version. By cleaning the build directory, cmake will be processed again and hopefully adjust to PCL correct paths.
@matlabbe Hi, the problem still remains. D you know if I can add the correct path to the CMakeList.txt file?
You can do "make VERBOSE=1
" to see to which library it is linking on.
@matlabbe It is linked to /usr/include/pcl-1.7
What is your computer? Here is the normal output on Ubuntu 16.04: https://travis-ci.org/introlab/rtabmap/jobs/606827302
hello, everyone. i have a qustion about pcl,as follows.
~/rtabmap/build$ cmake .. -- PCL definitions don't contain "-march=native", make sure all libraries using Eigen are also compiled without that flag to avoid some segmentation faults (with gdb referring to some Eigen functions). -- Found Sqlite3: /usr/include /usr/lib/x86_64-linux-gnu/libsqlite3.so -- Found OpenMP -- Found OpenCV: /opt/ros/kinetic/include/opencv-3.3.1-dev;/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv -- Found PCL: /usr/include/pcl-1.7;/usr/include/eigen3;/usr/include;/usr/include/ni;/usr/include/openni2;/usr/include/vtk-6.2;/usr/include/freetype2;/usr/include/x86_64-linux-gnu/freetype2;/usr/include/tcl;/usr/include/hdf5/openmpi;/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent;/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include;/usr/lib/openmpi/include;/usr/lib/openmpi/include/openmpi;/usr/include/jsoncpp;/usr/include/x86_64-linux-gnu;/usr/include/libxml2;/usr/include/python2.7 -- Found ZLIB: /usr/include -- VTK_RENDERING_BACKEND=OpenGL -- Found Freenect: /opt/ros/kinetic/include/libfreenect -- Found OpenNI2: /usr/include/openni2 -- Found DC1394: /usr/include/dc1394 -- Old g2o version detected with c++03 interface (config file: /opt/ros/kinetic/include/g2o/config.h). -- Found g2o: /opt/ros/kinetic/include;/home/zhousongxin/ros/Kinetic/ros_ws/devel_isolated/suitesparse/include/suitesparse;/home/zhousongxin/ros/Kinetic/ros_ws/devel_isolated/suitesparse/include/suitesparse -- GTSAM include directory: /home/zhousongxin/ros/Kinetic/ros_ws/devel_isolated/gtsam/lib/cmake/GTSAM/../../../include -- FlyCapture2_INCLUDE_DIR=FlyCapture2_INCLUDE_DIR-NOTFOUND -- FlyCapture2_LIBRARY=FlyCapture2_LIBRARY-NOTFOUND -- Triclops_INCLUDE_DIR=Triclops_INCLUDE_DIR-NOTFOUND -- Triclops_LIBRARY=Triclops_LIBRARY-NOTFOUND -- FlyCaptureBridge_LIBRARY=FlyCaptureBridge_LIBRARY-NOTFOUND -- A library with BLAS API found. -- Found CUDA: /usr/local/cuda-10.0 (found suitable version "10.0", minimum required is "10") -- Found ZED sdk: /usr/local/zed/include -- Found CUDA: /usr/local/cuda-10.0 (found version "10.0") -- Found CUDA: /usr/local/cuda-10.0/include -- Found RealSense2: -- Found octomap 1.8.1: /opt/ros/kinetic/include -- Found installed version of Eigen: /usr/lib/cmake/eigen3 -- Found required Ceres dependency: Eigen version 3.2.92 in /usr/include/eigen3 -- Found required Ceres dependency: glog -- Found required Ceres dependency: gflags -- Found Ceres version: 2.0.0 installed in: /home/zhousongxin/ros/Kinetic/ros_ws/devel_isolated/ceres-solver with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations] -- Architecture: x86_64 -- Found Pthreads
-- Info : -- Version : 0.19.5 -- CMAKE_INSTALL_PREFIX = /usr/local -- CMAKE_BUILD_TYPE = Release -- CMAKE_INSTALL_LIBDIR = lib -- BUILD_APP = ON -- BUILD_TOOLS = ON -- BUILD_EXAMPLES = ON -- BUILD_SHARED_LIBS = ON -- CMAKE_CXX_FLAGS = -fmessage-length=0 -fopenmp -std=c++11 -- FLANN_KDTREE_MEM_OPT = OFF -- PCL_DEFINITIONS = -DEIGEN_USE_NEW_STDVECTOR;-DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET;-DFLANN_STATIC;-Dqh_QHpointer -- PCL_VERSION = 1.7.2 -- -- Optional dependencies ('' affects some default parameters) : -- With OpenCV 3 xfeatures2d module (SIFT/SURF/BRIEF/FREAK) = YES (License: Non commercial) -- With Qt5 = YES (License: Open Source or Commercial) -- With VTK 6.2 = YES (License: BSD) -- With external SQLite3 = YES (License: Public Domain) -- With ORB OcTree = YES (License: GPLv3) -- With Madgwick = YES (License: GPL) -- With FastCV = NO (FastCV not found) -- -- Solvers: -- With TORO = YES (License: Creative Commons [Attribution-NonCommercial-ShareAlike]) -- With g2o = YES (License: BSD) -- With GTSAM = YES (License: BSD) -- With Ceres = YES (License: BSD) -- With VERTIGO = YES (License: GPLv3) -- With cvsba = NO (cvsba not found) -- With libpointmatcher = NO (libpointmatcher not found) -- -- Reconstruction Approaches: -- With OCTOMAP = YES (License: BSD) -- With CPUTSDF = NO (CPUTSDF not found) -- With OpenChisel = NO (open_chisel not found) -- -- Camera Drivers: -- With Freenect = YES (License: Apache v2 and/or GPLv2) -- With OpenNI2 = YES (License: Apache v2) -- With Freenect2 = NO (libfreenect2 not found) -- With Kinect for Windows 2 = NO (Kinect for Windows 2 SDK not found) -- With Kinect for Azure = NO (Kinect for Azure SDK not found) -- With dc1394 = YES (License: LGPL) -- With FlyCapture2/Triclops = NO (Point Grey SDK not found) -- With ZED = YES (With CUDA) -- With RealSense = NO (librealsense not found) -- With RealSense2 = YES (License: Apache-2) -- -- Odometry Approaches: -- With loam_velodyne = NO (loam_velodyne not found) -- With libfovis = NO (libfovis not found) -- With libviso2 = NO (libviso2 not found) -- With dvo_core = NO (dvo_core not found) -- With okvis = NO (okvis not found) -- With msckf_vio = NO (WITH_MSCKF_VIO=OFF) -- With VINS-Fusion = NO (VINS-Fusion not found) -- With ORB_SLAM2 = NO (WITH_G2O should be OFF as ORB_SLAM2 uses its own g2o version)
-- Configuring done -- Generating done -- Build files have been written to: /home/zhousongxin/rtabmap/build
at first.i met a qustion about VTK, and i solved the problem with apt-get install the vtk libariry. then install the libpcl-dev. but then it occurs the new problem about pcl (PCL definitions don't contain "-march=native", make sure all libraries using Eigen are also compiled without that flag to avoid some segmentation faults (with gdb referring to some Eigen functions)). i try to solve the problem but don't get a result. then i run make -j6
PROBLEM: CMakeFiles/extractObject.dir/main.cpp.o:(.data.rel.ro._ZTVN3pcl6search6SearchINS_11PointXYZRGBEEE[_ZTVN3pcl6search6SearchINS_11PointXYZRGBEEE]+0x20): undefined reference to::getName[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
tools/ExtractObject/CMakeFiles/extractObject.dir/build.make:357: recipe for target '../bin/rtabmap-extractObject' failed
make[2]: [../bin/rtabmap-extractObject] Error 1
CMakeFiles/Makefile2:711: 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....
pcl::search::Search<pcl::PointXYZRGB>::getName[abi:cxx11]() const' CMakeFiles/extractObject.dir/main.cpp.o:(.data.rel.ro._ZTVN3pcl6search6KdTreeINS_11PointXYZRGBENS_11KdTreeFLANNIS2_N5flann9L2_SimpleIfEEEEEE[_ZTVN3pcl6search6KdTreeINS_11PointXYZRGBENS_11KdTreeFLANNIS2_N5flann9L2_SimpleIfEEEEEE]+0x20): undefined reference to
pcl::search::Searchall of make component as follows.
~/rtabmap/build$ make -j6 [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UFile.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UEventsHandler.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UEventsManager.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UEventsSender.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UConversion.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UDirectory.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/ULogger.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UThread.cpp.o [ 3%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UTimer.cpp.o [ 3%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UProcessInfo.cpp.o [ 3%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UVariant.cpp.o [ 4%] Linking CXX shared library ../../../bin/librtabmap_utilite.so [ 4%] Built target rtabmap_utilite [ 4%] Building CXX object utilite/resource_generator/CMakeFiles/res_tool.dir/main.cpp.o [ 4%] Building CXX object tools/ImagesJoiner/CMakeFiles/imagesJoiner.dir/main.cpp.o [ 4%] Building CXX object tools/ExtractObject/CMakeFiles/extractObject.dir/main.cpp.o [ 4%] Linking CXX executable ../../../bin/rtabmap-res_tool [ 5%] Built target res_tool [ 6%] Linking CXX executable ../../../bin/rtabmap-imagesJoiner [ 6%] [Creating resources] Using namespace=rtabmap Using target directory=/home/zhousongxin/rtabmap/build/corelib/src Input file "/home/zhousongxin/rtabmap/corelib/src/resources/DatabaseSchema.sql" size = 5664 bytes Output file "/home/zhousongxin/rtabmap/build/corelib/src/DatabaseSchema_sql.h" size = 11555 bytes [ 6%] Built target imagesJoiner Scanning dependencies of target rtabmap_core [ 6%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Statistics.cpp.o [ 6%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Memory.cpp.o [ 7%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Rtabmap.cpp.o [ 7%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/RtabmapThread.cpp.o [ 7%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/DBDriver.cpp.o [ 8%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/DBDriverSqlite3.cpp.o [ 8%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/DBReader.cpp.o [ 8%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Recovery.cpp.o [ 9%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Camera.cpp.o [ 9%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/CameraThread.cpp.o [ 10%] Linking CXX executable ../../../bin/rtabmap-extractObject [ 10%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/CameraModel.cpp.o [ 11%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraFreenect.cpp.o CMakeFiles/extractObject.dir/main.cpp.o:(.data.rel.ro._ZTVN3pcl6search6SearchINS_11PointXYZRGBEEE[_ZTVN3pcl6search6SearchINS_11PointXYZRGBEEE]+0x20): undefined reference to::getName[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
tools/ExtractObject/CMakeFiles/extractObject.dir/build.make:357: recipe for target '../bin/rtabmap-extractObject' failed
make[2]: [../bin/rtabmap-extractObject] Error 1
CMakeFiles/Makefile2:711: 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....
[ 11%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraFreenect2.cpp.o
[ 11%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraImages.cpp.o
[ 12%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraK4W2.cpp.o
[ 12%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraK4A.cpp.o
[ 12%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraOpenni.cpp.o
[ 13%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraOpenNI2.cpp.o
[ 13%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraOpenNICV.cpp.o
[ 13%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraRealSense.cpp.o
[ 14%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraRealSense2.cpp.o
[ 14%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraRGBDImages.cpp.o
[ 14%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraStereoDC1394.cpp.o
[ 15%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraStereoFlyCapture2.cpp.o
[ 15%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraStereoImages.cpp.o
[ 15%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraStereoVideo.cpp.o
[ 15%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraStereoZed.cpp.o
[ 16%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraStereoTara.cpp.o
[ 16%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraVideo.cpp.o
[ 16%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/EpipolarGeometry.cpp.o
In file included from /usr/local/zed/include/sl/Camera.hpp:1:0,
from /home/zhousongxin/rtabmap/corelib/src/camera/CameraStereoZed.cpp:34:
/usr/local/zed/include/sl_zed/Camera.hpp: In constructor ‘sl::InitParameters::InitParameters(sl::RESOLUTION, int, int, sl::String, bool, sl::DEPTH_MODE, sl::UNIT, sl::COORDINATE_SYSTEM, bool, int, float, bool, bool, bool, int, sl::String, int, CUcontext, sl::InputType, sl::String, bool)’:
/usr/local/zed/include/sl_zed/Camera.hpp:251:14: warning: ‘sl::InitParameters::sdk_verbose’ will be initialized after [-Wreorder]
bool sdk_verbose;
^::static_delete(void)’:
/home/zhousongxin/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/zhousongxin/rtabmap/corelib/src/rtflann/util/any.h:81:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if ( x) delete (* reinterpret_cast<T >(x)); *x = NULL;
^
[ 28%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryF2M.cpp.o
[ 28%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryMono.cpp.o
In file included from /home/zhousongxin/rtabmap/corelib/src/rtflann/util/params.h:33:0,
from /home/zhousongxin/rtabmap/corelib/src/rtflann/flann.hpp:42,
from /home/zhousongxin/rtabmap/corelib/src/odometry/OdometryF2M.cpp:42:
/home/zhousongxin/rtabmap/corelib/src/rtflann/util/any.h: In member function ‘virtual void rtflann::anyimpl::big_any_policy::static_delete(void)’:
/home/zhousongxin/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/zhousongxin/rtabmap/corelib/src/rtflann/util/any.h:81:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if ( x) delete (* reinterpret_cast<T>(x)); *x = NULL;
^
[ 28%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryF2F.cpp.o
[ 29%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryFovis.cpp.o
[ 29%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryViso2.cpp.o
[ 29%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryDVO.cpp.o
[ 30%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryOkvis.cpp.o
[ 30%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryORBSLAM2.cpp.o
[ 30%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryLOAM.cpp.o
[ 31%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryMSCKF.cpp.o
[ 31%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryVINS.cpp.o
[ 31%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/IMUThread.cpp.o
[ 31%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/IMUFilter.cpp.o
[ 32%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/imufilter/ComplementaryFilter.cpp.o
[ 32%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Stereo.cpp.o
[ 32%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/StereoDense.cpp.o
[ 33%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/StereoCameraModel.cpp.o
[ 33%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/stereo/StereoBM.cpp.o
[ 33%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/stereo/StereoSGBM.cpp.o
[ 34%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/OccupancyGrid.cpp.o
[ 34%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/MarkerDetector.cpp.o
[ 34%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/GainCompensator.cpp.o
[ 35%] Building C object corelib/src/CMakeFiles/rtabmap_core.dir/rtflann/ext/lz4.c.o
[ 35%] Building C object corelib/src/CMakeFiles/rtabmap_core.dir/rtflann/ext/lz4hc.c.o
[ 35%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/FlannIndex.cpp.o
[ 36%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/clams/discrete_depth_distortion_model_helpers.cpp.o
[ 36%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/clams/discrete_depth_distortion_model.cpp.o
In file included from /home/zhousongxin/rtabmap/corelib/src/rtflann/util/params.h:33:0,
from /home/zhousongxin/rtabmap/corelib/src/rtflann/flann.hpp:42,
from /home/zhousongxin/rtabmap/corelib/src/FlannIndex.cpp:31:
/home/zhousongxin/rtabmap/corelib/src/rtflann/util/any.h: In member function ‘virtual void rtflann::anyimpl::big_any_policy::static_delete(void)’:
/home/zhousongxin/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/zhousongxin/rtabmap/corelib/src/rtflann/util/any.h:81:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if ( x) delete (* reinterpret_cast<T >(x)); *x = NULL;
^
[ 36%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/clams/frame_projector.cpp.o
[ 37%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/clams/slam_calibrator.cpp.o
[ 37%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/opencv/ORBextractor.cc.o
[ 37%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/opencv/solvepnp.cpp.o
[ 38%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/toro3d/posegraph3.cpp.o
[ 38%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/toro3d/treeoptimizer3_iteration.cpp.o
[ 38%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/toro3d/treeoptimizer3.cpp.o
[ 38%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/toro3d/posegraph2.cpp.o
[ 39%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/toro3d/treeoptimizer2.cpp.o
[ 39%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/g2o/edge_se3_xyzprior.cpp.o
[ 39%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/vertigo/g2o/edge_se2Switchable.cpp.o
[ 40%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/vertigo/g2o/edge_se3Switchable.cpp.o
[ 40%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/vertigo/g2o/edge_switchPrior.cpp.o
[ 40%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/vertigo/g2o/types_g2o_robust.cpp.o
[ 41%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/vertigo/g2o/vertex_switchLinear.cpp.o
[ 41%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/OctoMap.cpp.o
[ 41%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/gtsam/GravityFactor.cpp.o
[ 42%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/imufilter/MadgwickFilter.cpp.o
[ 42%] Linking CXX shared library ../../../bin/librtabmap_core.so
[ 42%] Built target rtabmap_core
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
pcl::search::Search<pcl::PointXYZRGB>::getName[abi:cxx11]() const' CMakeFiles/extractObject.dir/main.cpp.o:(.data.rel.ro._ZTVN3pcl6search6KdTreeINS_11PointXYZRGBENS_11KdTreeFLANNIS2_N5flann9L2_SimpleIfEEEEEE[_ZTVN3pcl6search6KdTreeINS_11PointXYZRGBENS_11KdTreeFLANNIS2_N5flann9L2_SimpleIfEEEEEE]+0x20): undefined reference to
pcl::search::Search~~/usr/local/zed/include/sl_zed/Camera.hpp:242:18: warning: ‘CUdevice sl::InitParameters::sdk_gpu_id’ [-Wreorder] CUdevice sdk_gpu_id; ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:343:9: warning: when initialized here [-Wreorder] InitParameters(RESOLUTION cameraresolution = RESOLUTION_HD720, ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:242:18: warning: ‘sl::InitParameters::sdk_gpu_id’ will be initialized after [-Wreorder] CUdevice sdk_gpu_id; ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:219:15: warning: ‘float sl::InitParameters::depth_minimum_distance’ [-Wreorder] float depth_minimum_distance; ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:343:9: warning: when initialized here [-Wreorder] InitParameters(RESOLUTION cameraresolution = RESOLUTION_HD720, ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:219:15: warning: ‘sl::InitParameters::depth_minimum_distance’ will be initialized after [-Wreorder] float depth_minimum_distance; ^~~~~~ In file included from /usr/local/zed/include/sl/Camera.hpp:1:0, from /home/zhousongxin/rtabmap/corelib/src/camera/CameraStereoZed.cpp:34: /usr/local/zed/include/sl_zed/Camera.hpp:147:14: warning: ‘bool sl::InitParameters::camera_disable_self_calib’ [-Wreorder] bool camera_disable_self_calib; ^~~~~~~~~ In file included from /usr/local/zed/include/sl/Camera.hpp:1:0, from /home/zhousongxin/rtabmap/corelib/src/camera/CameraStereoZed.cpp:34: /usr/local/zed/include/sl_zed/Camera.hpp:343:9: warning: when initialized here [-Wreorder] InitParameters(RESOLUTION cameraresolution = RESOLUTION_HD720, ^~~~~~ In file included from /usr/local/zed/include/sl/Camera.hpp:1:0, from /home/zhousongxin/rtabmap/corelib/src/camera/CameraStereoZed.cpp:34: /usr/local/zed/include/sl_zed/Camera.hpp:147:14: warning: ‘sl::InitParameters::camera_disable_self_calib’ will be initialized after [-Wreorder] bool camera_disable_self_calib; ^~~~~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:137:13: warning: ‘int sl::InitParameters::camera_image_flip’ [-Wreorder] int camera_image_flip; ^~~~~ In file included from /usr/local/zed/include/sl/Camera.hpp:1:0, from /home/zhousongxin/rtabmap/corelib/src/camera/CameraStereoZed.cpp:34: /usr/local/zed/include/sl_zed/Camera.hpp:343:9: warning: when initialized here [-Wreorder] InitParameters(RESOLUTION cameraresolution = RESOLUTION_HD720, ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:261:16: warning: ‘sl::InitParameters::sdk_verbose_log_file’ will be initialized after [-Wreorder] String sdk_verbose_log_file; ^~~~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:209:13: warning: ‘int sl::InitParameters::depth_stabilization’ [-Wreorder] int depth_stabilization; ^~~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:343:9: warning: when initialized here [-Wreorder] InitParameters(RESOLUTION cameraresolution = RESOLUTION_HD720, ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp: In constructor ‘sl::RuntimeParameters::RuntimeParameters(sl::SENSING_MODE, bool, bool, sl::REFERENCE_FRAME)’: /usr/local/zed/include/sl_zed/Camera.hpp:457:14: warning: ‘sl::RuntimeParameters::enable_point_cloud’ will be initialized after [-Wreorder] bool enable_point_cloud; ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:442:25: warning: ‘sl::REFERENCE_FRAME sl::RuntimeParameters::measure3D_reference_frame’ [-Wreorder] REFERENCE_FRAME measure3D_reference_frame; ^~~~~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:462:9: warning: when initialized here [-Wreorder] RuntimeParameters(SENSING_MODE sensingmode = SENSING_MODE_STANDARD, ^~~~~ /usr/local/zed/include/sl_zed/Camera.hpp: In constructor ‘sl::TrackingParameters::TrackingParameters(sl::Transform, bool, bool, sl::String, bool, bool, bool)’: /usr/local/zed/include/sl_zed/Camera.hpp:545:16: warning: ‘sl::TrackingParameters::area_file_path’ will be initialized after [-Wreorder] String area_file_path; ^~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:534:14: warning: ‘bool sl::TrackingParameters::set_floor_as_origin’ [-Wreorder] bool set_floor_as_origin; ^~~~~~~ /usr/local/zed/include/sl_zed/Camera.hpp:564:9: warning: when initialized here [-Wreorder] TrackingParameters(Transform init_pos = Transform(), bool _enable_memory = true, bool _enable_pose_smoothing = false, String _area_path = String(), ^~~~~~ [ 17%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/VisualWord.cpp.o [ 17%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/VWDictionary.cpp.o [ 17%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/BayesFilter.cpp.o [ 18%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Parameters.cpp.o [ 18%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Signature.cpp.o [ 18%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Features2d.cpp.o [ 19%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Transform.cpp.o [ 19%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/GeodeticCoords.cpp.o [ 19%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util2d.cpp.o [ 20%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d.cpp.o [ 20%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d_filtering.cpp.o [ 20%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d_mapping.cpp.o [ 21%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d_transforms.cpp.o [ 21%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d_registration.cpp.o [ 21%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d_surface.cpp.o [ 22%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d_features.cpp.o [ 22%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d_correspondences.cpp.o [ 22%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d_motion_estimation.cpp.o [ 23%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/SensorData.cpp.o [ 23%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Graph.cpp.o [ 23%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Compression.cpp.o [ 23%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Link.cpp.o [ 24%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/LaserScan.cpp.o [ 24%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Optimizer.cpp.o [ 24%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/OptimizerTORO.cpp.o [ 25%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/OptimizerG2O.cpp.o [ 25%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/OptimizerGTSAM.cpp.o [ 25%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/OptimizerCVSBA.cpp.o [ 26%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/optimizer/OptimizerCeres.cpp.o [ 26%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Registration.cpp.o [ 26%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/RegistrationIcp.cpp.o [ 27%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/RegistrationVis.cpp.o [ 27%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Odometry.cpp.o [ 27%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/OdometryThread.cpp.o In file included from /home/zhousongxin/rtabmap/corelib/src/rtflann/util/params.h:33:0, from /home/zhousongxin/rtabmap/corelib/src/rtflann/flann.hpp:42, from /home/zhousongxin/rtabmap/corelib/src/RegistrationVis.cpp:47: /home/zhousongxin/rtabmap/corelib/src/rtflann/util/any.h: In member function ‘virtual void rtflann::anyimpl::big_any_policyI need your help. thanks.