unable to build rtabmap-Kinetic-devel from source

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

unable to build rtabmap-Kinetic-devel from source

Rohit
destro@destro:~/rtabmap-kinetic-devel/build$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:57 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Checking for module 'eigen3'
--   Found eigen3, version 3.3.7
-- Eigen found (include: /usr/include/eigen3, version: 3.2.92)
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.20
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so)
-- Could NOT find ENSENSO (missing: ENSENSO_LIBRARIES ENSENSO_INCLUDE_DIRS)
-- Could NOT find davidSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR)
-- 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.

-- Checking for module 'flann'
--   Found flann, version 1.8.4
-- FLANN found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp.so;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp.so)
-- Checking for module 'flann'
--   Found flann, version 1.8.4
-- FLANN found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp.so;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp.so)
-- QHULL found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.so)
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.20
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so)
-- Could NOT find ENSENSO (missing: ENSENSO_LIBRARIES ENSENSO_INCLUDE_DIRS)
-- Could NOT find davidSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:183 (MESSAGE):
  PCL definitions contain "-march=native", make sure all libraries using
  Eigen are also compiled with 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/local/include/pcl-1.8;/usr/include/eigen3;/usr/include;/usr/include/ni;/usr/include/vtk-6.2;/usr/include/freetype2;/usr/include/x86_64-linux-gnu/freetype2;/usr/include/jsoncpp;/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/python2.7;/usr/include/x86_64-linux-gnu;/usr/include/hdf5/openmpi;/usr/include/libxml2;/usr/include/tcl
-- Found ZLIB: /usr/include
-- VTK_RENDERING_BACKEND=OpenGL
-- Found Freenect: /usr/local/include/libfreenect
-- 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;/usr/include/suitesparse;/usr/include/suitesparse
-- Found CUDA: /usr/local/cuda (found suitable exact version "10.0")
-- Found ZED sdk: /usr/local/zed/include
-- Found CUDA: /usr/local/cuda (found version "10.0")
-- Found CUDA: /usr/local/cuda/include
-- Found octomap 1.8.1: /opt/ros/kinetic/include
-- Found Pthreads
CMake Deprecation Warning at tools/KittiDataset/CMakeLists.txt:14 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at tools/RgbdDataset/CMakeLists.txt:14 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at tools/EurocDataset/CMakeLists.txt:30 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at tools/Recovery/CMakeLists.txt:12 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at tools/Reprocess/CMakeLists.txt:12 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at tools/Report/CMakeLists.txt:16 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at examples/BOWMapping/CMakeLists.txt:27 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at examples/RGBDMapping/CMakeLists.txt:41 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at examples/WifiMapping/CMakeLists.txt:35 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at examples/NoEventsExample/CMakeLists.txt:35 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at examples/Export/CMakeLists.txt:28 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- --------------------------------------------
-- Info :
--   Version : 0.17.6
--   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
--   PCL_DEFINITIONS =  -march=native -msse4.2 -mfpmath=sse ;-DDISABLE_OPENNI2;-DDISABLE_ENSENSO;-DDISABLE_DAVIDSDK;-DDISABLE_DSSDK;-DDISABLE_PCAP;-DDISABLE_PNG;-DDISABLE_LIBUSB_1_0;-DDISABLE_RSSDK
-- Optional dependencies ('*' affects some default parameters) :
--  *With OpenCV 3 xfeatures2d module (SIFT/SURF/BRIEF/FREAK) = YES (License: Non commercial)
--   With external SQLite3     = YES (License: Public Domain)
--   With Freenect             = YES (License: Apache v2 and/or GPLv2)
--   With OpenNI2              = NO (OpenNI2 not found)
--   With Freenect2            = NO (libfreenect2 not found)
--   With Kinect for Windows 2 = NO (Kinect for Windows 2 SDK not found)
--   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                = YES (License: BSD)
--   With VERTIGO              = YES (License: GPLv3)
--   With cvsba                = NO (cvsba not found)
--  *With libpointmatcher      = NO (libpointmatcher not found)
--   With loam_velodyne        = NO (loam_velodyne not found)
--   With ZED                  = YES (With CUDA)
--   With RealSense            = NO (librealsense not found)
--   With RealSense2           = NO (librealsense2 not found)
--   With OCTOMAP              = YES (License: BSD)
--   With CPUTSDF              = NO (CPUTSDF not found)
--   With OpenChisel           = NO (open_chisel 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 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/destro/rtabmap-kinetic-devel/build
destro@destro:~/rtabmap-kinetic-devel/build$ make
[  4%] Built target rtabmap_utilite
[  5%] Built target res_tool
[  5%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/OptimizerGTSAM.cpp.o
In file included from /home/destro/rtabmap-kinetic-devel/corelib/src/vertigo/gtsam/betweenFactorSwitchable.h:17:0,
                 from /home/destro/rtabmap-kinetic-devel/corelib/src/OptimizerGTSAM.cpp:55:
/home/destro/rtabmap-kinetic-devel/corelib/src/vertigo/gtsam/switchVariableLinear.h:13:37: fatal error: gtsam/base/DerivedValue.h: No such file or directory
compilation terminated.
corelib/src/CMakeFiles/rtabmap_core.dir/build.make:1051: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/OptimizerGTSAM.cpp.o' failed
make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/OptimizerGTSAM.cpp.o] Error 1
CMakeFiles/Makefile2:267: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/all' failed
make[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

matlabbe
Administrator
This is related to latest GTSAM version, this has been fixed in latest rtabmap version: https://github.com/introlab/rtabmap/commit/0c247869123776a3cd80644ad02485cee211f18d
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

Rohit
In reply to this post by Rohit
 Thanks matlabbe,

still while building latest rtabmap version i am having these errors ..

destro@destro:~/rtabmap-master/build$ make
[  4%] Built target rtabmap_utilite
[  4%] Built target res_tool
[ 40%] Built target rtabmap_core
[ 79%] Built target rtabmap_gui
[ 80%] Linking CXX executable ../../../bin/rtabmap
/usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /usr/local/lib/libpcl_common.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by /usr/local/lib/libpcl_common.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkGraphics.so.5.8, needed by /usr/local/lib/libpcl_surface.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkFiltering.so.5.8, needed by /usr/local/lib/libpcl_surface.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkCommon.so.5.8, needed by /usr/local/lib/libpcl_surface.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by /usr/local/lib/libpcl_visualization.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkCharts.so.5.8, needed by /usr/local/lib/libpcl_visualization.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkWidgets.so.5.8, needed by /usr/local/lib/libpcl_visualization.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkHybrid.so.5.8, needed by /usr/local/lib/libpcl_visualization.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkRendering.so.5.8, needed by /usr/local/lib/libpcl_visualization.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkImaging.so.5.8, needed by /usr/local/lib/libpcl_visualization.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkIO.so.5.8, needed by /usr/local/lib/libpcl_visualization.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_iostreams.so.1.54.0, needed by /usr/local/lib/libpcl_io.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcudart.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppial.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppisu.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppidei.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppif.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppist.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnpps.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::removeCoordinateSystem(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
../../../bin/librtabmap_core.so.0.19.2: undefined reference to `pcl::search::Search<pcl::PointXYZRGB>::Search(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventCreateWithFlags@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::io::saveOBJFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::TextureMesh const&, unsigned int)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamSynchronize@libcudart.so.9.0'
../../../bin/librtabmap_core.so.0.19.2: undefined reference to `pcl::PCDReader::read(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PCLPointCloud2&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetErrorString@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::PCDWriter::setLockingPermissions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::interprocess::file_lock&)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::removePointCloud(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaRuntimeGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_32f_C1@libnppisu.so.9.0'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkCollection::GetNumberOfItems()'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaHostAlloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRangeGetBufferSize_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceProperties@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFree@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFunction@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbol@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2D@libcudart.so.9.0'
/usr/local/lib/libpcl_visualization.so: undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&, std::codecvt<wchar_t, char, __mbstate_t> const&)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2DAsync@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::addPolygonMesh(pcl::PolygonMesh const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterTexture@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::PCLVisualizer(int&, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::visualization::PCLVisualizerInteractorStyle*, bool)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::PLYWriter::writeASCII(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, int, bool)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy@libcudart.so.9.0'
../../../bin/librtabmap_core.so.0.19.2: undefined reference to `pcl::PCDReader::read(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PCLPointCloud2&, Eigen::Matrix<float, 4, 1, 0, 4, 1>&, Eigen::Quaternion<float, 0>&, int&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocManaged@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFree@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterVar@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiAdd_32f_C1R@libnppial.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventRecord@libcudart.so.9.0'
../../../bin/librtabmap_core.so.0.19.2: undefined reference to `pcl::search::Search<pcl::PointXYZI>::Search(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaBindTexture2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDeviceSynchronize@libcudart.so.9.0'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkDataSetMapper::SetInput(vtkDataSet*)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsFree@libnpps.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemGetInfo@libcudart.so.9.0'
/usr/local/lib/libpcl_surface.so: undefined reference to `vtkPolyDataAlgorithm::SetInput(vtkDataObject*)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaSetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRange_32f_C1R@libnppist.so.9.0'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkImageAlgorithm::AddInput(vtkDataObject*)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkImageData::SetScalarType(int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaConfigureCall@libcudart.so.9.0'
/usr/local/lib/libpcl_io.so: undefined reference to `vtkWriter::SetInput(vtkDataObject*)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkImageAlgorithm::AllocateOutputData(vtkImageData*, int*)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMalloc@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::removeText3D(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::PCDWriter::writeBinary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::addPointCloud(boost::shared_ptr<pcl::PCLPointCloud2 const> const&, boost::shared_ptr<pcl::visualization::PointCloudColorHandler<pcl::PCLPointCloud2> const> const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetLastError@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::removeShape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDriverGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32f@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamDestroy@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::updatePointCloudPose(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Eigen::Transform<float, 3, 2, 0> const&)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::getColorHandlerIndex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkPlot::SetInput(vtkTable*, long long, long long)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkXYPlotActor::RemoveAllInputs()'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaUnbindTexture@libcudart.so.9.0'
../../../bin/librtabmap_core.so.0.19.2: undefined reference to `pcl::search::Search<pcl::PointXYZ>::Search(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaCreateChannelDesc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiFilterBoxBorder_8u_C1R@libnppif.so.9.0'
../../../bin/librtabmap_core.so.0.19.2: undefined reference to `pcl::search::Search<pcl::PointNormal>::Search(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PointCloudColorHandlerGenericField<pcl::PCLPointCloud2>::PointCloudColorHandlerGenericField(boost::shared_ptr<pcl::PCLPointCloud2 const> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::addCube(Eigen::Matrix<float, 3, 1, 0, 3, 1> const&, Eigen::Quaternion<float, 0> const&, double, double, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemcpyAsync@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::getPointCloudRenderingProperties(int, double&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::io::saveOBJFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PolygonMesh const&, unsigned int)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkPointSetAlgorithm::SetInput(vtkPointSet*)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::addPolylineFromPolygonMesh(pcl::PolygonMesh const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkAlgorithm::ComputePriority()'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::addCoordinateSystem(double, Eigen::Transform<float, 3, 2, 0> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaSetupArgument@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaLaunch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppSetStream'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamCreate@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiSet_32f_C1R@libnppidei.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_8u_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFreeHost@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbolAsync@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::setShapeRenderingProperties(int, double, double, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFilterBoxBorder_8u_C4R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaUnregisterFatBinary@libcudart.so.9.0'
../../../bin/librtabmap_core.so.0.19.2: undefined reference to `pcl::PLYReader::read(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PCLPointCloud2&, Eigen::Matrix<float, 4, 1, 0, 4, 1>&, Eigen::Quaternion<float, 0>&, int&, int)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::PLYWriter::writeBinary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, bool)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::io::savePLYFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PolygonMesh const&, unsigned int)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_8u@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocPitch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMalloc3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiMulC_32f_C1IR@libnppial.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::search::Search<pcl::PointXYZRGBNormal>::Search(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkPolyDataMapper::SetInput(vtkPolyData*)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32s@libnpps.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties(int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkImageData::SetNumberOfScalarComponents(int)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::updateColorHandlerIndex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemset3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaDeviceReset@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::PCDWriter::resetLockingPermissions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::interprocess::file_lock&)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::PCDWriter::writeASCII(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFatBinary@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::setShapeRenderingProperties(int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceCount@libcudart.so.9.0'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkImageAlgorithm::AllocateOutputData(vtkDataObject*)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkImageAlgorithm::AddInput(int, vtkDataObject*)'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamAddCallback@libcudart.so.9.0'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::visualization::PCLVisualizer::updateCoordinateSystemPose(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Eigen::Transform<float, 3, 2, 0> const&)'
../../../bin/librtabmap_gui.so.0.19.2: undefined reference to `pcl::io::savePLYFileBinary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PolygonMesh const&)'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2D@libcudart.so.9.0'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkShaderProgram2::SetContext(vtkOpenGLRenderWindow*)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkUnstructuredGridAlgorithm::SetInput(vtkDataObject*)'
/usr/local/lib/libpcl_visualization.so: undefined reference to `vtkImageAlgorithm::SetInput(vtkDataObject*)'
collect2: error: ld returned 1 exit status
app/src/CMakeFiles/rtabmap.dir/build.make:508: 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:151: recipe for target 'all' failed
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

matlabbe
Administrator
How many PCL/VTK libraries do you have installed? The wrong version of PCL and/or VTK libraries are used at runtime. Based on your cmake output in your first post, VTK 6 seems detected, not VTK 5. Your PCL is built against which VTK version?

try "$ ldd rtabmap" to see which libraries are found at runtime, they may be not the right ones.
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

Rohit
This post was updated on .
What if my PCL is build against VTK 6 ? Do I need to built it again against
VTK 5
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

matlabbe
Administrator
Can you do
$ ldd /usr/local/lib/libpcl_visualization.so
?
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

Rohit
destro@destro:~$ ldd /usr/local/lib/libpcl_visualization.so
        linux-vdso.so.1 =>  (0x00007fff3698e000)
        libboost_system.so.1.54.0 => not found
        libboost_filesystem.so.1.54.0 => not found
        libboost_thread.so.1.54.0 => not found
        libpcl_io.so.1.8 => /usr/local/lib/libpcl_io.so.1.8 (0x00007faa90a4b000)
        libpcl_kdtree.so.1.8 => /usr/local/lib/libpcl_kdtree.so.1.8 (0x00007faa905bf000)
        libvtkCharts.so.5.8 => not found
        libGL.so.1 => /usr/lib/nvidia-340/libGL.so.1 (0x00007faa90273000)
        libvtkWidgets.so.5.8 => not found
        libvtkHybrid.so.5.8 => not found
        libvtkRendering.so.5.8 => not found
        libvtkImaging.so.5.8 => not found
        libvtkGraphics.so.5.8 => not found
        libvtkIO.so.5.8 => not found
        libvtkFiltering.so.5.8 => not found
        libvtkCommon.so.5.8 => not found
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007faa8ff6a000)
        libpcl_common.so.1.8 => /usr/local/lib/libpcl_common.so.1.8 (0x00007faa8fa9a000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007faa8f718000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007faa8f502000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007faa8f2e5000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faa8ef1b000)
        libboost_system.so.1.54.0 => not found
        libboost_filesystem.so.1.54.0 => not found
        libboost_thread.so.1.54.0 => not found
        libboost_iostreams.so.1.54.0 => not found
        libpcl_io_ply.so.1.8 => /usr/local/lib/libpcl_io_ply.so.1.8 (0x00007faa8ec6e000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007faa8ea49000)
        libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007faa8e831000)
        libvtkImaging.so.5.8 => not found
        libvtkIO.so.5.8 => not found
        libvtkFiltering.so.5.8 => not found
        libvtkCommon.so.5.8 => not found
        libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007faa8e60f000)
        /lib64/ld-linux-x86-64.so.2 (0x00007faa91726000)
        libnvidia-tls.so.340.107 => /usr/lib/nvidia-340/tls/libnvidia-tls.so.340.107 (0x00007faa8e40c000)
        libnvidia-glcore.so.340.107 => /usr/lib/nvidia-340/libnvidia-glcore.so.340.107 (0x00007faa8b7f8000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007faa8b4be000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007faa8b2ac000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007faa8b0a8000)
        libboost_system.so.1.54.0 => not found
        libboost_thread.so.1.54.0 => not found
        libboost_system.so.1.54.0 => not found
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007faa8ae8e000)
        libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007faa918c8000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007faa8ac6c000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007faa8aa64000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007faa8a860000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007faa8a65a000)
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

matlabbe
Administrator
The PCL build seems not correct, a lot of libraries "not found", not sure why.
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

Rohit
should i build it again..
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

matlabbe
Administrator
Do you need PCL 1.8? Could you just use PCL binaries so that those linking errors would not be there? If you need PCL 1.8, I'd suggest to uninstall PCL binaries (if they are still installed) and rebuild PCL. Then after being rebuilt, delete everything in rtabmap/build directory and run cmake from fresh.
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

Rohit
hi matlabbe,

After uninstalling PCL and rebuilding it i ran ldd /usr/local/lib/libpcl_visualization.so

destro@destro:~$ ldd /usr/local/lib/libpcl_visualization.so
        linux-vdso.so.1 =>  (0x00007fff2dfed000)
        libboost_filesystem.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 (0x00007f7a07c93000)
        libboost_thread.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0 (0x00007f7a07a6d000)
        libboost_system.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 (0x00007f7a07869000)
        libpcl_io.so.1.9 => /usr/local/lib/libpcl_io.so.1.9 (0x00007f7a0744e000)
        libpcl_kdtree.so.1.9 => /usr/local/lib/libpcl_kdtree.so.1.9 (0x00007f7a07104000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7a06dfb000)
        libvtkRenderingContextOpenGL-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGL-6.2.so.6.2 (0x00007f7a06bcc000)
        libvtkIOMPIImage-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkIOMPIImage-6.2.so.6.2 (0x00007f7a069a3000)
        libvtkIOMPIParallel-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkIOMPIParallel-6.2.so.6.2 (0x00007f7a0677c000)
        libvtkIOPLY-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkIOPLY-6.2.so.6.2 (0x00007f7a06561000)
        libvtkRenderingFreeTypeFontConfig-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingFreeTypeFontConfig-6.2.so.6.2 (0x00007f7a06357000)
        libvtkRenderingFreeTypeOpenGL-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingFreeTypeOpenGL-6.2.so.6.2 (0x00007f7a06145000)
        libvtkRenderingLOD-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingLOD-6.2.so.6.2 (0x00007f7a05f2b000)
        libvtkRenderingMatplotlib-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingMatplotlib-6.2.so.6.2 (0x00007f7a05d1a000)
        libvtkRenderingVolumeOpenGL-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGL-6.2.so.6.2 (0x00007f7a05a73000)
        libvtkViewsContext2D-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkViewsContext2D-6.2.so.6.2 (0x00007f7a05860000)
        libGL.so.1 => /usr/lib/nvidia-340/libGL.so.1 (0x00007f7a05514000)
        libvtkRenderingOpenGL-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.2.so.6.2 (0x00007f7a0506c000)
        libvtkChartsCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkChartsCore-6.2.so.6.2 (0x00007f7a04d1b000)
        libvtkRenderingContext2D-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingContext2D-6.2.so.6.2 (0x00007f7a04adb000)
        libvtkInteractionWidgets-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkInteractionWidgets-6.2.so.6.2 (0x00007f7a045b3000)
        libvtkImagingSources-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkImagingSources-6.2.so.6.2 (0x00007f7a04361000)
        libvtkFiltersModeling-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkFiltersModeling-6.2.so.6.2 (0x00007f7a040e4000)
        libvtkInteractionStyle-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkInteractionStyle-6.2.so.6.2 (0x00007f7a03e58000)
        libvtkIOImage-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkIOImage-6.2.so.6.2 (0x00007f7a03af1000)
        libvtkRenderingAnnotation-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingAnnotation-6.2.so.6.2 (0x00007f7a03799000)
        libvtkRenderingFreeType-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingFreeType-6.2.so.6.2 (0x00007f7a034d6000)
        libvtkRenderingCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingCore-6.2.so.6.2 (0x00007f7a03042000)
        libvtkCommonColor-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonColor-6.2.so.6.2 (0x00007f7a02e26000)
        libvtkFiltersExtraction-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkFiltersExtraction-6.2.so.6.2 (0x00007f7a02b11000)
        libvtkImagingCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkImagingCore-6.2.so.6.2 (0x00007f7a02734000)
        libvtkFiltersSources-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkFiltersSources-6.2.so.6.2 (0x00007f7a0246e000)
        libvtkFiltersGeneral-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkFiltersGeneral-6.2.so.6.2 (0x00007f7a01f43000)
        libvtkFiltersCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkFiltersCore-6.2.so.6.2 (0x00007f7a01985000)
        libvtkCommonExecutionModel-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonExecutionModel-6.2.so.6.2 (0x00007f7a016d7000)
        libvtkCommonDataModel-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.2.so.6.2 (0x00007f7a01168000)
        libvtkCommonTransforms-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonTransforms-6.2.so.6.2 (0x00007f7a00f39000)
        libvtkCommonMath-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonMath-6.2.so.6.2 (0x00007f7a00d17000)
        libvtkCommonCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.2.so.6.2 (0x00007f7a007e9000)
        libpcl_common.so.1.9 => /usr/local/lib/libpcl_common.so.1.9 (0x00007f7a00531000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7a001af000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f79fff99000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f79ffd7c000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f79ff9b2000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f79ff7aa000)
        libboost_iostreams.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.58.0 (0x00007f79ff591000)
        libpcl_io_ply.so.1.9 => /usr/local/lib/libpcl_io_ply.so.1.9 (0x00007f79ff32f000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f79ff10a000)
        libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007f79feef2000)
        libOpenNI.so.0 => /usr/lib/libOpenNI.so.0 (0x00007f79fec76000)
        libpcap.so.0.8 => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8 (0x00007f79fea34000)
        libvtkIOLegacy-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkIOLegacy-6.2.so.6.2 (0x00007f79fe78b000)
        libvtkIOGeometry-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkIOGeometry-6.2.so.6.2 (0x00007f79fe443000)
        libvtkIOCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkIOCore-6.2.so.6.2 (0x00007f79fe1cc000)
        libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f79fdfaa000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7a081f2000)
        libvtkParallelMPI-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkParallelMPI-6.2.so.6.2 (0x00007f79fdd85000)
        libmpi.so.12 => /usr/lib/libmpi.so.12 (0x00007f79fdaaf000)
        libmpi_cxx.so.1 => /usr/lib/libmpi_cxx.so.1 (0x00007f79fd894000)
        libvtkParallelCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkParallelCore-6.2.so.6.2 (0x00007f79fd645000)
        libvtksys-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtksys-6.2.so.6.2 (0x00007f79fd400000)
        libvtkCommonMisc-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonMisc-6.2.so.6.2 (0x00007f79fd1ea000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f79fcfa7000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f79fccfd000)
        libvtkftgl-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkftgl-6.2.so.6.2 (0x00007f79fcaf2000)
        libvtkPythonInterpreter-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkPythonInterpreter-6.2.so.6.2 (0x00007f79fc8e7000)
        libvtkWrappingPython27Core-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkWrappingPython27Core-6.2.so.6.2 (0x00007f79fc6ba000)
        libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 (0x00007f79fc12c000)
        libvtkRenderingVolume-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkRenderingVolume-6.2.so.6.2 (0x00007f79fb974000)
        libvtkCommonSystem-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonSystem-6.2.so.6.2 (0x00007f79fb760000)
        libvtkViewsCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkViewsCore-6.2.so.6.2 (0x00007f79fb534000)
        libnvidia-tls.so.340.107 => /usr/lib/nvidia-340/tls/libnvidia-tls.so.340.107 (0x00007f79fb331000)
        libnvidia-glcore.so.340.107 => /usr/lib/nvidia-340/libnvidia-glcore.so.340.107 (0x00007f79f871d000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f79f83e3000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f79f81d1000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f79f7fcd000)
        libvtkImagingHybrid-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkImagingHybrid-6.2.so.6.2 (0x00007f79f7d63000)
        libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f79f7afa000)
        libvtkInfovisCore-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkInfovisCore-6.2.so.6.2 (0x00007f79f77f4000)
        libvtkFiltersHybrid-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkFiltersHybrid-6.2.so.6.2 (0x00007f79f7511000)
        libvtkImagingGeneral-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkImagingGeneral-6.2.so.6.2 (0x00007f79f7215000)
        libvtkCommonComputationalGeometry-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkCommonComputationalGeometry-6.2.so.6.2 (0x00007f79f6fd7000)
        libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f79f6d7e000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f79f6b64000)
        libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f79f68ef000)
        libvtkmetaio-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkmetaio-6.2.so.6.2 (0x00007f79f665a000)
        libvtkDICOMParser-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkDICOMParser-6.2.so.6.2 (0x00007f79f6442000)
        libvtkFiltersGeometry-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkFiltersGeometry-6.2.so.6.2 (0x00007f79f61b3000)
        libvtkFiltersStatistics-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkFiltersStatistics-6.2.so.6.2 (0x00007f79f5f27000)
        libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f79f5d17000)
        libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f7a08382000)
        libtinyxml.so.2.6.2 => /usr/lib/x86_64-linux-gnu/libtinyxml.so.2.6.2 (0x00007f79f5b01000)
        libjsoncpp.so.1 => /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1 (0x00007f79f58d0000)
        libibverbs.so.1 => /usr/lib/libibverbs.so.1 (0x00007f79f56c1000)
        libopen-rte.so.12 => /usr/lib/libopen-rte.so.12 (0x00007f79f5447000)
        libopen-pal.so.13 => /usr/lib/libopen-pal.so.13 (0x00007f79f51aa000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f79f4f81000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f79f4d7e000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f79f4b5c000)
        libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f79f4954000)
        libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f79f473a000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f79f4518000)
        libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f79f430a000)
        libvtkImagingFourier-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkImagingFourier-6.2.so.6.2 (0x00007f79f40db000)
        libvtkalglib-6.2.so.6.2 => /usr/lib/x86_64-linux-gnu/libvtkalglib-6.2.so.6.2 (0x00007f79f3eb8000)
        libhwloc.so.5 => /usr/lib/x86_64-linux-gnu/libhwloc.so.5 (0x00007f79f3c7e000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f79f3a7a000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f79f3874000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f79f366f000)
        libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f79f3464000)
        libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f79f325a000)
now most of the libraries which were not found can be found still i am unable to build RTABMAP
AS u suggested i cleared the Rtabmap build folder and when cmake.. it getting this.
destro@destro:~/rtabmap-master/build$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:64 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Checking for module 'eigen3'
--   Found eigen3, version 3.3.7
-- Eigen found (include: /usr/include/eigen3, version: 3.2.92)
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.20
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so)
-- Could NOT find ENSENSO (missing: ENSENSO_LIBRARIES ENSENSO_INCLUDE_DIRS)
-- Could NOT find davidSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR)
-- 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.

-- Checking for module 'flann'
--   Found flann, version 1.8.4
-- FLANN found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp.so;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp.so)
-- Checking for module 'flann'
--   Found flann, version 1.8.4
-- FLANN found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp.so;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp.so)
-- QHULL found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.so)
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.20
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so)
-- Could NOT find ENSENSO (missing: ENSENSO_LIBRARIES ENSENSO_INCLUDE_DIRS)
-- Could NOT find davidSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:210 (MESSAGE):
  PCL definitions contain "-march=native", make sure all libraries using
  Eigen are also compiled with 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/local/include/pcl-1.8;/usr/include/eigen3;/usr/include;/usr/include/ni;/usr/include/vtk-6.2;/usr/include/freetype2;/usr/include/x86_64-linux-gnu/freetype2;/usr/include/jsoncpp;/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/python2.7;/usr/include/x86_64-linux-gnu;/usr/include/hdf5/openmpi;/usr/include/libxml2;/usr/include/tcl
-- Found ZLIB: /usr/include
CMake Error at /usr/local/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find QVTK (missing: QVTK_LIBRARY)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  cmake_modules/FindQVTK.cmake:13 (find_package_handle_standard_args)
  CMakeLists.txt:277 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/destro/rtabmap-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/destro/rtabmap-master/build/CMakeFiles/CMakeError.log".
destro@destro:~/rtabmap-master/build$
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

matlabbe
Administrator
QVTK is missing, install it with:
$ sudo apt-get install libvtk6-qt-dev
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

Rohit
destro@destro:~$ sudo apt-get install libvtk6-qt-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libvtk6-qt-dev is already the newest version (6.2.0+dfsg1-10build1+debian11.1+osrf1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

still...while running cmake ..

destro@destro:~/rtabmap-master/build$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:64 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Checking for module 'eigen3'
--   Found eigen3, version 3.3.7
-- Eigen found (include: /usr/include/eigen3, version: 3.2.92)
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.20
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so)
-- Could NOT find ENSENSO (missing: ENSENSO_LIBRARIES ENSENSO_INCLUDE_DIRS)
-- Could NOT find davidSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR)
-- 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.

-- Checking for module 'flann'
--   Found flann, version 1.8.4
-- FLANN found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp.so;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp.so)
-- Checking for module 'flann'
--   Found flann, version 1.8.4
-- FLANN found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp.so;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp.so)
-- QHULL found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.so)
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.20
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so)
-- Could NOT find ENSENSO (missing: ENSENSO_LIBRARIES ENSENSO_INCLUDE_DIRS)
-- Could NOT find davidSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:210 (MESSAGE):
  PCL definitions contain "-march=native", make sure all libraries using
  Eigen are also compiled with 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/local/include/pcl-1.8;/usr/include/eigen3;/usr/include;/usr/include/ni;/usr/include/vtk-6.2;/usr/include/freetype2;/usr/include/x86_64-linux-gnu/freetype2;/usr/include/jsoncpp;/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/python2.7;/usr/include/x86_64-linux-gnu;/usr/include/hdf5/openmpi;/usr/include/libxml2;/usr/include/tcl
-- Found ZLIB: /usr/include
CMake Error at /usr/local/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find QVTK (missing: QVTK_LIBRARY)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  cmake_modules/FindQVTK.cmake:13 (find_package_handle_standard_args)
  CMakeLists.txt:277 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/destro/rtabmap-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/destro/rtabmap-master/build/CMakeFiles/CMakeError.log".
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

matlabbe
Administrator
Did you try cleanup the build directory before redoing cmake? Where it fails it is here: https://github.com/introlab/rtabmap/blob/4675240d6e734a79960531e5aae57e504af92ac2/CMakeLists.txt#L276-L278, it is like cmake still think that VTK5 is used... maybe caused by the wrong PCL build previously using VTK5.

EDIT
you could try adding the following before the line above to see which VTK version is detected by cmake:
MESSAGE(status "VTK_MAJOR_VERSION=${VTK_MAJOR_VERSION}")
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

Rohit
cleaning up build directory worked this time and cmake.. ran successfully. but while make -j4 it again failed.

destro@destro:~/rtabmap-master/build$ make -j4
[  4%] Built target rtabmap_utilite
[  4%] Built target res_tool
[  5%] Built target imagesJoiner
[  6%] Built target extractObject
[ 42%] Built target rtabmap_core
[ 42%] Linking CXX executable ../../../bin/rtabmap-stereoEval
[ 43%] Linking CXX executable ../../../bin/rtabmap-camera
[ 43%] Linking CXX executable ../../../bin/rtabmap-console
[ 82%] Built target rtabmap_gui
Scanning dependencies of target kitti_dataset
[ 82%] Building CXX object tools/KittiDataset/CMakeFiles/kitti_dataset.dir/main.cpp.o
/usr/bin/ld: warning: libcudart.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppial.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppisu.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppidei.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppif.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppist.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnpps.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaCreateChannelDesc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiFilterBoxBorder_8u_C1R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventCreateWithFlags@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamSynchronize@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetErrorString@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemcpyAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_32f_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaRuntimeGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaHostAlloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRangeGetBufferSize_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceProperties@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFree@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFunction@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaSetupArgument@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbol@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaLaunch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppSetStream'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamCreate@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiSet_32f_C1R@libnppidei.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterTexture@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_8u_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFreeHost@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbolAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocManaged@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFilterBoxBorder_8u_C4R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaUnregisterFatBinary@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterVar@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFree@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiAdd_32f_C1R@libnppial.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_8u@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocPitch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMalloc3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventRecord@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiMulC_32f_C1IR@libnppial.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaBindTexture2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32s@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDeviceSynchronize@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsFree@libnpps.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemGetInfo@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaSetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRange_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemset3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaConfigureCall@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaDeviceReset@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFatBinary@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMalloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetLastError@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDriverGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32f@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceCount@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamDestroy@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamAddCallback@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaUnbindTexture@libcudart.so.9.0'
collect2: error: ld returned 1 exit status
tools/ConsoleApp/CMakeFiles/consoleApp.dir/build.make:439: recipe for target '../bin/rtabmap-console' failed
make[2]: *** [../bin/rtabmap-console] Error 1
CMakeFiles/Makefile2:541: recipe for target 'tools/ConsoleApp/CMakeFiles/consoleApp.dir/all' failed
make[1]: *** [tools/ConsoleApp/CMakeFiles/consoleApp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: warning: libcudart.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppial.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppisu.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppidei.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppif.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppist.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnpps.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaCreateChannelDesc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiFilterBoxBorder_8u_C1R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventCreateWithFlags@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamSynchronize@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetErrorString@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemcpyAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_32f_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaRuntimeGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaHostAlloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRangeGetBufferSize_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceProperties@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFree@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFunction@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaSetupArgument@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbol@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaLaunch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppSetStream'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamCreate@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiSet_32f_C1R@libnppidei.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterTexture@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_8u_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFreeHost@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbolAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocManaged@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFilterBoxBorder_8u_C4R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaUnregisterFatBinary@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterVar@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFree@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiAdd_32f_C1R@libnppial.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_8u@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocPitch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMalloc3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventRecord@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiMulC_32f_C1IR@libnppial.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaBindTexture2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32s@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDeviceSynchronize@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsFree@libnpps.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemGetInfo@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaSetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRange_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemset3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaConfigureCall@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaDeviceReset@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFatBinary@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMalloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetLastError@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDriverGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32f@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceCount@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamDestroy@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamAddCallback@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaUnbindTexture@libcudart.so.9.0'
collect2: error: ld returned 1 exit status
tools/Camera/CMakeFiles/camera.dir/build.make:439: recipe for target '../bin/rtabmap-camera' failed
make[2]: *** [../bin/rtabmap-camera] Error 1
CMakeFiles/Makefile2:707: recipe for target 'tools/Camera/CMakeFiles/camera.dir/all' failed
make[1]: *** [tools/Camera/CMakeFiles/camera.dir/all] Error 2
/usr/bin/ld: warning: libcudart.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppial.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppisu.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppidei.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppif.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppist.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnpps.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaCreateChannelDesc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiFilterBoxBorder_8u_C1R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventCreateWithFlags@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamSynchronize@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetErrorString@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemcpyAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_32f_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaRuntimeGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaHostAlloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRangeGetBufferSize_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceProperties@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFree@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFunction@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaSetupArgument@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbol@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaLaunch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppSetStream'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamCreate@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiSet_32f_C1R@libnppidei.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterTexture@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_8u_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFreeHost@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbolAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocManaged@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFilterBoxBorder_8u_C4R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaUnregisterFatBinary@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterVar@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFree@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiAdd_32f_C1R@libnppial.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_8u@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocPitch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMalloc3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventRecord@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiMulC_32f_C1IR@libnppial.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaBindTexture2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32s@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDeviceSynchronize@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsFree@libnpps.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemGetInfo@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaSetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRange_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemset3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaConfigureCall@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaDeviceReset@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFatBinary@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMalloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetLastError@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDriverGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32f@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceCount@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamDestroy@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamAddCallback@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaUnbindTexture@libcudart.so.9.0'
collect2: error: ld returned 1 exit status
tools/StereoEval/CMakeFiles/stereoEval.dir/build.make:439: recipe for target '../bin/rtabmap-stereoEval' failed
make[2]: *** [../bin/rtabmap-stereoEval] Error 1
CMakeFiles/Makefile2:763: recipe for target 'tools/StereoEval/CMakeFiles/stereoEval.dir/all' failed
make[1]: *** [tools/StereoEval/CMakeFiles/stereoEval.dir/all] Error 2
[ 83%] Linking CXX executable ../../../bin/rtabmap-kitti_dataset
/usr/bin/ld: warning: libcudart.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppial.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppisu.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppidei.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppif.so.9.0, needed by /usr/local/zed/lib/libsl_core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnppist.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnpps.so.9.0, needed by /usr/local/zed/lib/libsl_zed.so, not found (try using -rpath or -rpath-link)
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaCreateChannelDesc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiFilterBoxBorder_8u_C1R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventCreateWithFlags@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamSynchronize@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetErrorString@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemcpyAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_32f_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaRuntimeGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaHostAlloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRangeGetBufferSize_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceProperties@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFree@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFunction@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaSetupArgument@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbol@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaLaunch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppSetStream'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy2DAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamCreate@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiSet_32f_C1R@libnppidei.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterTexture@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiMalloc_8u_C1@libnppisu.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFreeHost@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpyToSymbolAsync@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemcpy@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocManaged@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiFilterBoxBorder_8u_C4R@libnppif.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaUnregisterFatBinary@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterVar@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaFree@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `nppiAdd_32f_C1R@libnppial.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_8u@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMallocPitch@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMalloc3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaEventRecord@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiMulC_32f_C1IR@libnppial.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaBindTexture2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32s@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDeviceSynchronize@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsFree@libnpps.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemGetInfo@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaSetDevice@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppiHistogramRange_32f_C1R@libnppist.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaMemset3D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaConfigureCall@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaDeviceReset@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `__cudaRegisterFatBinary@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMalloc@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetLastError@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaDriverGetVersion@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `nppsMalloc_32f@libnpps.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaGetDeviceCount@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaStreamDestroy@libcudart.so.9.0'
/usr/local/zed/lib/libsl_zed.so: undefined reference to `cudaStreamAddCallback@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaMemset2D@libcudart.so.9.0'
/usr/local/zed/lib/libsl_core.so: undefined reference to `cudaUnbindTexture@libcudart.so.9.0'
collect2: error: ld returned 1 exit status
tools/KittiDataset/CMakeFiles/kitti_dataset.dir/build.make:439: recipe for target '../bin/rtabmap-kitti_dataset' failed
make[2]: *** [../bin/rtabmap-kitti_dataset] Error 1
CMakeFiles/Makefile2:819: recipe for target 'tools/KittiDataset/CMakeFiles/kitti_dataset.dir/all' failed
make[1]: *** [tools/KittiDataset/CMakeFiles/kitti_dataset.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

matlabbe
Administrator
Do you need ZED camera driver? If you are planning to use rtabmap under ROS, you could disable it from the build:
$ cmake -DWITH_ZED=OFF ..
Otherwise we would have to debug why the linker cannot find cuda libraries. You may try "$ ldd /usr/local/zed/lib/libsl_core.so" to see what it can find. I know on my computer with ZED/CUDA, I have to add "/usr/local/cuda-9.1/lib64" to LD_LIBRARY_PATH environment variable. There could be some CUDA scripts that can be "sourced" to setup the environment variables for CUDA developments.

cheers,
Mathieu
Reply | Threaded
Open this post in threaded view
|

Re: unable to build rtabmap-Kinetic-devel from source

Rohit
This post was updated on .
Thank you Mathieu.
It's installed successfully.