Re: Installation error of Rtabmap standalone on Ubuntu 16.04
Posted by brunoeducsantos on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Installation-error-of-Rtabmap-standalone-on-Ubuntu-16-04-tp4011p4013.html
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