Hey,
After I add libfreekinect , I did make install of rtabmap dir and the following error comes out: collect2: error: ld returned 1 exit status app/src/CMakeFiles/rtabmap.dir/build.make:503: recipe for target '../bin/rtabmap' failed make[2]: *** [../bin/rtabmap] Error 1 CMakeFiles/Makefile2:416: recipe for target 'app/src/CMakeFiles/rtabmap.dir/all' failed make[1]: *** [app/src/CMakeFiles/rtabmap.dir/all] Error 2 Makefile:149: recipe for target 'all' failed Any leads what maybe? |
Administrator
|
Can you show full output of cmake and make?
|
The full output of make is the following:
[ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UEventsHandler.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/UEventsManager.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UFile.cpp.o [ 2%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UDirectory.cpp.o [ 3%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UConversion.cpp.o [ 3%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/ULogger.cpp.o [ 4%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UThread.cpp.o [ 4%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UTimer.cpp.o [ 4%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UProcessInfo.cpp.o [ 5%] Building CXX object utilite/src/CMakeFiles/rtabmap_utilite.dir/UVariant.cpp.o [ 5%] Linking CXX shared library ../../../bin/librtabmap_utilite.so [ 5%] Built target rtabmap_utilite Scanning dependencies of target extractObject Scanning dependencies of target imagesJoiner [ 6%] Building CXX object utilite/resource_generator/CMakeFiles/res_tool.dir/main.cpp.o [ 7%] Building CXX object tools/ImagesJoiner/CMakeFiles/imagesJoiner.dir/main.cpp.o [ 8%] Building CXX object tools/ExtractObject/CMakeFiles/extractObject.dir/main.cpp.o [ 8%] Linking CXX executable ../../../bin/rtabmap-imagesJoiner CMakeFiles/imagesJoiner.dir/main.cpp.o: In function `main': main.cpp:(.text.startup+0x9d5): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' main.cpp:(.text.startup+0xa59): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' main.cpp:(.text.startup+0xde7): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text.startup+0xe3d): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text.startup+0xe77): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)' main.cpp:(.text.startup+0xeeb): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' collect2: error: ld returned 1 exit status tools/ImagesJoiner/CMakeFiles/imagesJoiner.dir/build.make:113: recipe for target '../bin/rtabmap-imagesJoiner' failed make[2]: *** [../bin/rtabmap-imagesJoiner] Error 1 CMakeFiles/Makefile2:581: recipe for target 'tools/ImagesJoiner/CMakeFiles/imagesJoiner.dir/all' failed make[1]: *** [tools/ImagesJoiner/CMakeFiles/imagesJoiner.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 8%] Linking CXX executable ../../../bin/rtabmap-res_tool [ 8%] Built target res_tool In file included from /usr/local/include/pcl-1.8/pcl/sample_consensus/sac_model.h:52:0, from /usr/local/include/pcl-1.8/pcl/sample_consensus/sac.h:45, from /usr/local/include/pcl-1.8/pcl/segmentation/sac_segmentation.h:49, from /home/brunoeducsantos/rtabmap-0.14.0/tools/ExtractObject/main.cpp:35: /usr/local/include/pcl-1.8/pcl/sample_consensus/model_types.h: In function ‘void __static_initialization_and_destruction_0(int, int)’: /usr/local/include/pcl-1.8/pcl/sample_consensus/model_types.h:99:3: warning: ‘pcl::SAC_SAMPLE_SIZE’ is deprecated: This map is deprecated and is kept only to prevent breaking existing user code. Starting from PCL 1.8.0 model sample size is a protected member of the SampleConsensusModel class [-Wdeprecated-declarations] SAC_SAMPLE_SIZE (sample_size_pairs, sample_size_pairs + sizeof (sample_size_pairs) / sizeof (SampleSizeModel)); ^ /usr/local/include/pcl-1.8/pcl/sample_consensus/model_types.h:99:3: note: declared here [ 8%] Linking CXX executable ../../../bin/rtabmap-extractObject [ 8%] Built target extractObject Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 And the full output of cmake is: -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Checking for module 'eigen3' -- Found eigen3, version 3.2.92 -- Found eigen: /usr/include/eigen3 -- Checking for module 'libopenni' -- Found libopenni, version 1.5.4.0 -- Found openni: /usr/lib/libOpenNI.so -- The imported target "vtkRenderingPythonTkWidgets" references the file "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake" but not all the files it references. -- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake" but not all the files it references. -- Found libusb-1.0: /usr/include -- Checking for module 'flann' -- Found flann, version 1.8.4 -- Found Flann: /usr/lib/x86_64-linux-gnu/libflann_cpp_s.a -- Found qhull: /usr/lib/x86_64-linux-gnu/libqhull.so -- Found PCL_COMMON: /usr/local/lib/libpcl_common.so -- Found PCL_OCTREE: /usr/local/lib/libpcl_octree.so -- Found PCL_IO: /usr/local/lib/libpcl_io.so -- Found PCL_KDTREE: /usr/local/lib/libpcl_kdtree.so -- Found PCL_SEARCH: /usr/local/lib/libpcl_search.so -- Found PCL_SAMPLE_CONSENSUS: /usr/local/lib/libpcl_sample_consensus.so -- Found PCL_FILTERS: /usr/local/lib/libpcl_filters.so -- Found PCL_2D: /usr/local/include/pcl-1.8 -- Found PCL_FEATURES: /usr/local/lib/libpcl_features.so -- Found PCL_GEOMETRY: /usr/local/include/pcl-1.8 -- Found PCL_KEYPOINTS: /usr/local/lib/libpcl_keypoints.so -- Found PCL_SURFACE: /usr/local/lib/libpcl_surface.so -- Found PCL_REGISTRATION: /usr/local/lib/libpcl_registration.so -- Found PCL_ML: /usr/local/lib/libpcl_ml.so -- Found PCL_SEGMENTATION: /usr/local/lib/libpcl_segmentation.so -- Found PCL_RECOGNITION: /usr/local/lib/libpcl_recognition.so -- Found PCL_VISUALIZATION: /usr/local/lib/libpcl_visualization.so -- Found PCL_PEOPLE: /usr/local/lib/libpcl_people.so -- Found PCL_OUTOFCORE: /usr/local/lib/libpcl_outofcore.so -- Found PCL_STEREO: /usr/local/lib/libpcl_stereo.so -- Found PCL_TRACKING: /usr/local/lib/libpcl_tracking.so -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp -- Found OpenMP -- Found OpenCV: /usr/local/include;/usr/local/include/opencv -- Found PCL: /usr/local/include/pcl-1.8;/usr/include/eigen3;/usr/include;/usr/include/ni;/usr/include/openni2;/usr/include/vtk-6.2;/usr/include/jsoncpp;/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/freetype2;/usr/include/x86_64-linux-gnu/freetype2;/usr/include/x86_64-linux-gnu;/usr/include/libxml2;/usr/include/tcl;/usr/include/python2.7 -- Found ZLIB: /usr/include -- Found Freenect: /usr/include -- Found freenect2: /home/brunoeducsantos/freenect2/include -- Found OpenNI2: /usr/include/openni2 -- Found DC1394: /usr/include/dc1394 -- Found CSPARSE: /usr/local/include/EXTERNAL/csparse -- Found g2o: /usr/local/include;/usr/local/include/EXTERNAL/csparse;/usr/include/suitesparse -- Found RealSense: /usr/local/include -- Performing Test COMPILER_SUPPORTS_CXX11 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- Performing Test COMPILER_SUPPORTS_CXX0X -- Performing Test COMPILER_SUPPORTS_CXX0X - Success -- Found Pthreads -- -------------------------------------------- -- Info : -- Version : 0.14.0 -- 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 -- With OpenCV 3 xfeatures2d module (SIFT/SURF/BRIEF/FREAK) = NO (not found, License: BSD) -- With Freenect = YES (License: Apache v2 and/or GPLv2) -- With OpenNI2 = YES (License: Apache v2) -- With Freenect2 = YES (License: Apache v2 and/or GPLv2) -- With dc1394 = YES (License: LGPL) -- With FlyCapture2/Triclops = NO (Point Grey SDK not found) -- With TORO = YES (License: Creative Commons [Attribution-NonCommercial-ShareAlike]) -- With g2o = YES (License: BSD) -- With GTSAM = NO (GTSAM not found) -- With VERTIGO = YES (License: GPLv3) -- With cvsba = NO (cvsba not found) -- With libpointmatcher = NO (libpointmatcher not found) -- With ZED = NO (ZED sdk not found) -- With RealSense = YES (License: Apache-2) -- With RealSenseSlam = NO (WITH_REALSENSE_SLAM=OFF) -- With OCTOMAP = NO (octomap not found) -- With CPUTSDF = NO (CPUTSDF not found) -- With libfovis = NO (libfovis not found) -- With libviso2 = NO (libviso2 not found) -- With dvo_core = NO (dvo_core not found) -- With ORB_SLAM2 = NO (WITH_G2O should be OFF as ORB_SLAM2 uses its own g2o version) -- With Qt5 = YES (License: Open Source or Commercial) -- -------------------------------------------- -- Configuring done -- Generating done -- Build files have been written to: /home/brunoeducsantos/rtabmap-0.14.0 |
Administrator
|
It seems that some rtabmap's dependencies were built from source too. The make errors are about OpenCV. Did you try to build against standard OpenCV binaries? These errors can also happen when rtabmap's cmake was done with an opencv version, then a new opencv version has been installed, then doing make in rtabmap again without flushing cmake cache. Try to delete everything in the build directory and redo a clean cmake/make.
|
I delete build and cmake/make it again and I got the following make log :
../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::GpuMat::download(cv::Mat&) const' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::BriefDescriptorExtractor::BriefDescriptorExtractor(int)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::ORB_GPU::operator()(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::gpu::GpuMat&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::DescriptorExtractor::compute(cv::Mat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::Mat&) const' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::Ptr<CvStereoBMState>::delete_obj()' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::drawChessboardCorners(cv::_OutputArray const&, cv::Size_<int>, cv::_InputArray const&, bool)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::StereoBM::operator()(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::BRISK::BRISK(int, int, float)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::GpuMat::GpuMat(cv::Mat const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::FREAK::FREAK(bool, bool, float, int, std::vector<int, std::allocator<int> > const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::VideoCapture::get(int)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::FastAdjuster::FastAdjuster(int, bool, int, int)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::imencode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `vtable for cv::_InputArray' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::calcOpticalFlowPyrLK(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::Size_<int>, int, cv::TermCriteria, int, double)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::stereoCalibrate(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::Size_<int>, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::TermCriteria, int)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::_OutputArray::_OutputArray(std::vector<cv::Mat, std::allocator<cv::Mat> >&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::FeatureDetector::detect(cv::Mat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::Mat const&) const' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::FAST_GPU::operator()(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::WriteStructContext::WriteStructContext(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::DescriptorMatcher::knnMatch(cv::Mat const&, cv::Mat const&, std::vector<std::vector<cv::DMatch, std::allocator<cv::DMatch> >, std::allocator<std::vector<cv::DMatch, std::allocator<cv::DMatch> > > >&, int, cv::Mat const&, bool) const' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::Formatter::get(char const*)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::WriteStructContext::~WriteStructContext()' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::ORB_GPU::operator()(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv3::solvePnPRansac(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, bool, int, float, double, cv::_OutputArray const&, int)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::GpuMat::release()' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `rtabmap::CV_ORB::CV_ORB(int, float, int, int, int, int, int, int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::setIdentity(cv::_OutputArray const&, cv::Scalar_<double> const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::VideoCapture::retrieve(cv::Mat&, int)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::VideoCapture::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::Feature2D::compute(cv::Mat const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::Mat&) const' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::FastFeatureDetector::FastFeatureDetector(int, bool)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::FileNodeIterator::readRaw(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, unsigned long)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::ORB_GPU::ORB_GPU(int, float, int, int, int, int, int, int)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::gpu::getCudaEnabledDeviceCount()' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::merge(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, cv::_OutputArray const&)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::cornerSubPix(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, cv::Size_<int>, cv::TermCriteria)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::Mat::Mat(_IplImage const*, bool)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `vtable for cv::_OutputArray' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::_InputArray::_InputArray(double const&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::BruteForceMatcher_GPU_base::BruteForceMatcher_GPU_base(cv::gpu::BruteForceMatcher_GPU_base::DistType)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::GridAdaptedFeatureDetector::GridAdaptedFeatureDetector(cv::Ptr<cv::FeatureDetector> const&, int, int, int)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::VideoCapture::read(cv::Mat&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::StereoBM::StereoBM(int, int, int)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::line(cv::Mat&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::BruteForceMatcher_GPU_base::knnMatch(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, std::vector<std::vector<cv::DMatch, std::allocator<cv::DMatch> >, std::allocator<std::vector<cv::DMatch, std::allocator<cv::DMatch> > > >&, int, cv::gpu::GpuMat const&, bool)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::gpu::FAST_GPU::FAST_GPU(int, bool, double)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::split(cv::Mat const&, std::vector<cv::Mat, std::allocator<cv::Mat> >&)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::getBuildInformation[abi:cxx11]()' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::FileStorage::writeRaw(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char const*, unsigned long)' ../../bin/librtabmap_gui.so.0.14.0: undefined reference to `cv::calibrateCamera(cv::_InputArray const&, cv::_InputArray const&, cv::Size_<int>, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, int, cv::TermCriteria)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::GFTTDetector::GFTTDetector(int, double, double, int, bool, double)' ../../bin/librtabmap_core.so.0.14.0: undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' collect2: error: ld returned 1 exit status app/src/CMakeFiles/rtabmap.dir/build.make:505: recipe for target 'bin/rtabmap' failed make[2]: *** [bin/rtabmap] Error 1 CMakeFiles/Makefile2:416: recipe for target 'app/src/CMakeFiles/rtabmap.dir/all' failed make[1]: *** [app/src/CMakeFiles/rtabmap.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 What could be the issue? |
In reply to this post by brunoeducsantos
Now I installed opencv again and I am getting the following error on rtabmap cmake:
CMake Warning (dev) at corelib/src/CMakeLists.txt:391 (ADD_LIBRARY): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap_core" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at corelib/src/CMakeLists.txt:391 (ADD_LIBRARY): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap_core" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at guilib/src/CMakeLists.txt:162 (ADD_LIBRARY): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap_gui" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at guilib/src/CMakeLists.txt:162 (ADD_LIBRARY): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap_gui" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at app/src/CMakeLists.txt:73 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at app/src/CMakeLists.txt:73 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/ConsoleApp/CMakeLists.txt:27 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "consoleApp" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/ConsoleApp/CMakeLists.txt:27 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "consoleApp" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/ImagesJoiner/CMakeLists.txt:21 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "imagesJoiner" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/ImagesJoiner/CMakeLists.txt:21 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "imagesJoiner" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/Camera/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "camera" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/Camera/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "camera" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/CameraRGBD/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rgbd_camera" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/CameraRGBD/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rgbd_camera" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/StereoEval/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "stereoEval" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/StereoEval/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "stereoEval" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/KittiDataset/CMakeLists.txt:31 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "kitti_dataset" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/KittiDataset/CMakeLists.txt:31 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "kitti_dataset" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/RgbdDataset/CMakeLists.txt:31 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rgbd_dataset" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/RgbdDataset/CMakeLists.txt:31 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rgbd_dataset" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/VocabularyComparison/CMakeLists.txt:14 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "vocabularyComparison" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/VocabularyComparison/CMakeLists.txt:14 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "vocabularyComparison" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/DatabaseViewer/CMakeLists.txt:31 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "databaseViewer" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/DatabaseViewer/CMakeLists.txt:31 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "databaseViewer" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/EpipolarGeometry/CMakeLists.txt:29 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "epipolar_geometry" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/EpipolarGeometry/CMakeLists.txt:29 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "epipolar_geometry" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/OdometryViewer/CMakeLists.txt:32 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "odometryViewer" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/OdometryViewer/CMakeLists.txt:32 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "odometryViewer" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/DataRecorder/CMakeLists.txt:32 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "dataRecorder" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/DataRecorder/CMakeLists.txt:32 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "dataRecorder" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/Calibration/CMakeLists.txt:23 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "calibration" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/Calibration/CMakeLists.txt:23 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "calibration" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at examples/BOWMapping/CMakeLists.txt:44 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "bow_mapping" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at examples/BOWMapping/CMakeLists.txt:44 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "bow_mapping" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at examples/RGBDMapping/CMakeLists.txt:69 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rgbd_mapping" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at examples/RGBDMapping/CMakeLists.txt:69 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rgbd_mapping" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at examples/WifiMapping/CMakeLists.txt:81 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "wifi_mapping" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at examples/WifiMapping/CMakeLists.txt:81 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "wifi_mapping" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at examples/NoEventsExample/CMakeLists.txt:63 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "noEventsExample" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at examples/NoEventsExample/CMakeLists.txt:63 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "noEventsExample" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at corelib/src/CMakeLists.txt:391 (ADD_LIBRARY): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap_core" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at corelib/src/CMakeLists.txt:391 (ADD_LIBRARY): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap_core" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at guilib/src/CMakeLists.txt:162 (ADD_LIBRARY): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap_gui" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at guilib/src/CMakeLists.txt:162 (ADD_LIBRARY): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap_gui" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at app/src/CMakeLists.txt:73 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at app/src/CMakeLists.txt:73 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rtabmap" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/ConsoleApp/CMakeLists.txt:27 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "consoleApp" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/ConsoleApp/CMakeLists.txt:27 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "consoleApp" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/Camera/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "camera" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/Camera/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "camera" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/CameraRGBD/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rgbd_camera" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/CameraRGBD/CMakeLists.txt:17 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "rgbd_camera" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/DatabaseViewer/CMakeLists.txt:31 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "databaseViewer" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/DatabaseViewer/CMakeLists.txt:31 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "databaseViewer" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/OdometryViewer/CMakeLists.txt:32 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "odometryViewer" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/OdometryViewer/CMakeLists.txt:32 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "odometryViewer" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/DataRecorder/CMakeLists.txt:32 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "dataRecorder" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/DataRecorder/CMakeLists.txt:32 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "dataRecorder" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/Calibration/CMakeLists.txt:23 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "calibration" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at tools/Calibration/CMakeLists.txt:23 (ADD_EXECUTABLE): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "calibration" links to target "Qt5::Concurrent" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done -- Build files have been written to: /home/brunoeducsantos/rtabmap-0.14.0 |
Administrator
|
You could do "make VERBOSE=1" to see to which opencv libraries it is trying to link. This can help to debug if rtabmap is building against headers in /usr/local/include but linking with libraries in /usr/lib instead of /usr/local/lib. You can also make sure that you have only one Opencv installed.
At this point, I would suggest to follow steps 0 and 2 of this page. This will install all dependencies as binaries before you try to make rtabmap from source. Make sure to uninstall all dependencies built from source to avoid some problems if you try this. cheers, Mathieu |
I successfully install rtabmap. thank you Matt
|
Free forum by Nabble | Edit this page |