IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.61k stars 4.83k forks source link

BUILD_PCL_EXAMPLES ON will bring us problems: #6056

Closed jiapei100 closed 3 years ago

jiapei100 commented 4 years ago

rs-pcl-color failed to build... This is clearly a bug from librealsense. In addition, I found PCL is buggy as well...

Anyway, I'll try to debug this later on....

[ 54%] Linking CXX executable rs-pcl-color
cd ....../librealsense/build_18.04/wrappers/pcl/pcl-color && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/rs-pcl-color.dir/link.txt --verbose=1
/usr/bin/c++  -I/usr/local/include/vtk-9.0 -I/usr/local/include/pcl-1.10 -I/opt/primesense/OpenNI/Include -lvtkCommonCore -pedantic -g -Wno-missing-field-initializers -Wno-switch -Wno-multichar -Wsequence-point -Wformat -Wformat-security -mssse3 -fopenmp -O3 -DNDEBUG    -rdynamic CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o  -o rs-pcl-color   -L/usr/local/lib  -L/opt/primesense/OpenNI/Tools  -Wl,-rpath,....../librealsense/build_18.04:/usr/local/lib:/opt/primesense/OpenNI/Tools: -lboost_system -lboost_filesystem -lboost_date_time -lboost_iostreams -lboost_regex -lqhull -lOpenNI2 -lGL -lGLU ../../../librealsense2.so.2.33.1 /usr/local/lib/libpcl_segmentation.so /usr/local/lib/libpcl_surface.so /usr/local/lib/libpcl_keypoints.so /usr/local/lib/libpcl_tracking.so /usr/local/lib/libpcl_recognition.so /usr/local/lib/libpcl_stereo.so /usr/local/lib/libpcl_cuda_features.so /usr/local/lib/libpcl_cuda_segmentation.so /usr/local/lib/libpcl_cuda_sample_consensus.so /usr/local/lib/libpcl_gpu_features.so /usr/local/lib/libpcl_gpu_segmentation.so -lboost_system -lboost_filesystem -lboost_date_time -lboost_iostreams -lboost_regex -lqhull -lOpenNI2 /usr/lib/x86_64-linux-gnu/libflann_cpp.so -lGL -lGLU /usr/local/lib/libglfw.so.3.4 /usr/local/lib/libopencv_stitching.so.4.2.0 /usr/local/lib/libopencv_aruco.so.4.2.0 /usr/local/lib/libopencv_bgsegm.so.4.2.0 /usr/local/lib/libopencv_bioinspired.so.4.2.0 /usr/local/lib/libopencv_ccalib.so.4.2.0 /usr/local/lib/libopencv_cnn_3dobj.so.4.2.0 /usr/local/lib/libopencv_cudabgsegm.so.4.2.0 /usr/local/lib/libopencv_cudafeatures2d.so.4.2.0 /usr/local/lib/libopencv_cudaobjdetect.so.4.2.0 /usr/local/lib/libopencv_cudastereo.so.4.2.0 /usr/local/lib/libopencv_cvv.so.4.2.0 /usr/local/lib/libopencv_dnn_objdetect.so.4.2.0 /usr/local/lib/libopencv_dnn_superres.so.4.2.0 /usr/local/lib/libopencv_dpm.so.4.2.0 /usr/local/lib/libopencv_face.so.4.2.0 /usr/local/lib/libopencv_freetype.so.4.2.0 /usr/local/lib/libopencv_fuzzy.so.4.2.0 /usr/local/lib/libopencv_hdf.so.4.2.0 /usr/local/lib/libopencv_hfs.so.4.2.0 /usr/local/lib/libopencv_img_hash.so.4.2.0 /usr/local/lib/libopencv_intensity_transform.so.4.2.0 /usr/local/lib/libopencv_line_descriptor.so.4.2.0 /usr/local/lib/libopencv_quality.so.4.2.0 /usr/local/lib/libopencv_rapid.so.4.2.0 /usr/local/lib/libopencv_reg.so.4.2.0 /usr/local/lib/libopencv_rgbd.so.4.2.0 /usr/local/lib/libopencv_saliency.so.4.2.0 /usr/local/lib/libopencv_sfm.so.4.2.0 /usr/local/lib/libopencv_stereo.so.4.2.0 /usr/local/lib/libopencv_structured_light.so.4.2.0 /usr/local/lib/libopencv_superres.so.4.2.0 /usr/local/lib/libopencv_surface_matching.so.4.2.0 /usr/local/lib/libopencv_tracking.so.4.2.0 /usr/local/lib/libopencv_videostab.so.4.2.0 /usr/local/lib/libopencv_xfeatures2d.so.4.2.0 /usr/local/lib/libopencv_xobjdetect.so.4.2.0 /usr/local/lib/libopencv_xphoto.so.4.2.0 /usr/local/lib/libpcl_ml.so /usr/local/lib/libpcl_registration.so /usr/local/lib/libpcl_features.so /usr/local/lib/libpcl_filters.so /usr/local/lib/libpcl_sample_consensus.so /usr/local/lib/libpcl_search.so /usr/local/lib/libpcl_kdtree.so /usr/local/lib/libpcl_io.so /usr/local/lib/libpcl_octree.so /usr/local/lib/libpcl_gpu_octree.so /usr/local/lib/libpcl_gpu_utils.so /usr/local/lib/libpcl_gpu_containers.so /usr/local/lib/libpcl_common.so /usr/local/lib/libcaffe.so -lglog /usr/local/lib/libopencv_highgui.so.4.2.0 /usr/local/lib/libopencv_shape.so.4.2.0 /usr/local/lib/libopencv_datasets.so.4.2.0 /usr/local/lib/libopencv_plot.so.4.2.0 /usr/local/lib/libopencv_text.so.4.2.0 /usr/local/lib/libopencv_dnn.so.4.2.0 /usr/local/lib/libopencv_ml.so.4.2.0 /usr/local/lib/libopencv_phase_unwrapping.so.4.2.0 /usr/local/lib/libopencv_cudacodec.so.4.2.0 /usr/local/lib/libopencv_videoio.so.4.2.0 /usr/local/lib/libopencv_cudaoptflow.so.4.2.0 /usr/local/lib/libopencv_cudalegacy.so.4.2.0 /usr/local/lib/libopencv_cudawarping.so.4.2.0 /usr/local/lib/libopencv_optflow.so.4.2.0 /usr/local/lib/libopencv_ximgproc.so.4.2.0 /usr/local/lib/libopencv_video.so.4.2.0 /usr/local/lib/libopencv_imgcodecs.so.4.2.0 /usr/local/lib/libopencv_objdetect.so.4.2.0 /usr/local/lib/libopencv_calib3d.so.4.2.0 /usr/local/lib/libopencv_features2d.so.4.2.0 /usr/local/lib/libopencv_flann.so.4.2.0 /usr/local/lib/libopencv_photo.so.4.2.0 /usr/local/lib/libopencv_cudaimgproc.so.4.2.0 /usr/local/lib/libopencv_cudafilters.so.4.2.0 /usr/local/lib/libopencv_imgproc.so.4.2.0 /usr/local/lib/libopencv_cudaarithm.so.4.2.0 /usr/local/lib/libopencv_core.so.4.2.0 /usr/local/lib/libopencv_cudev.so.4.2.0 
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `Load_PCDFile()':
....../librealsense/wrappers/pcl/pcl-color/rs-pcl-color.cpp:263: undefined reference to `pcl::visualization::PCLVisualizer::PCLVisualizer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
....../librealsense/wrappers/pcl/pcl-color/rs-pcl-color.cpp:266: undefined reference to `pcl::visualization::PCLVisualizer::setBackgroundColor(double const&, double const&, double const&, int)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `Load_PCDFile()':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:81: undefined reference to `pcl::visualization::PointCloudGeometryHandlerXYZ<pcl::PointXYZRGB>::PointCloudGeometryHandlerXYZ(boost::shared_ptr<pcl::PointCloud<pcl::PointXYZRGB> const> const&)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `Load_PCDFile()':
....../librealsense/wrappers/pcl/pcl-color/rs-pcl-color.cpp:270: undefined reference to `pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties(int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
....../librealsense/wrappers/pcl/pcl-color/rs-pcl-color.cpp:272: undefined reference to `pcl::visualization::PCLVisualizer::initCameraParameters()'
....../librealsense/wrappers/pcl/pcl-color/rs-pcl-color.cpp:277: undefined reference to `pcl::visualization::PCLVisualizer::spin()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB>::getColor(vtkSmartPointer<vtkDataArray>&) const':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB>::getColor() const':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `pcl::visualization::CloudActor::~CloudActor()':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o:/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: more undefined references to `vtkSmartPointerBase::~vtkSmartPointerBase()' follow
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:302: undefined reference to `vtkPolyData::GetVerts()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:173: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:306: undefined reference to `vtkCellArray::GetData()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:102: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:307: undefined reference to `pcl::visualization::PCLVisualizer::updateCells(vtkSmartPointer<vtkIdTypeArray>&, vtkSmartPointer<vtkIdTypeArray>&, long long)'
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:309: undefined reference to `vtkCellArray::SetCells(long long, vtkIdTypeArray*)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:289: undefined reference to `pcl::visualization::PCLVisualizer::allocVtkPolyData(vtkSmartPointer<vtkPolyData>&)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:218: undefined reference to `vtkCellArray::New()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:277: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*, vtkSmartPointerBase::NoReference const&)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:291: undefined reference to `vtkPolyData::SetVerts(vtkCellArray*)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `void pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, vtkSmartPointer<vtkPolyData>&, vtkSmartPointer<vtkIdTypeArray>&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:218: undefined reference to `vtkCellArray::New()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:277: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*, vtkSmartPointerBase::NoReference const&)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `std::__detail::_Map_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, pcl::visualization::CloudActor>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, pcl::visualization::CloudActor> >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:1313: undefined reference to `vtkDataSetAttributes::SetScalars(vtkDataArray*)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:62: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:77: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkSmartPointerBase const&)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:1320: undefined reference to `pcl::visualization::PCLVisualizer::createActorFromVTKDataSet(vtkSmartPointer<vtkDataSet> const&, vtkSmartPointer<vtkLODActor>&, bool)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:77: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkSmartPointerBase const&)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:1325: undefined reference to `pcl::visualization::PCLVisualizer::addActorToRenderer(vtkSmartPointer<vtkProp> const&, int)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:218: undefined reference to `vtkMatrix4x4::New()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:277: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*, vtkSmartPointerBase::NoReference const&)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:1334: undefined reference to `pcl::visualization::PCLVisualizer::convertToVtkMatrix(Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, vtkSmartPointer<vtkMatrix4x4>&)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:1336: undefined reference to `vtkProp3D::SetUserMatrix(vtkMatrix4x4*)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZRGB>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZRGB> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o:/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: more undefined references to `vtkSmartPointerBase::~vtkSmartPointerBase()' follow
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `pcl::visualization::PointCloudColorHandlerRGBField<pcl::PointXYZRGB>::getColor() const':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:218: undefined reference to `vtkUnsignedCharArray::New()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:277: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*, vtkSmartPointerBase::NoReference const&)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `pcl::visualization::PointCloudColorHandlerRGBField<pcl::PointXYZRGB>::getColor() const':
/usr/local/include/pcl-1.10/pcl/visualization/impl/point_cloud_color_handlers.hpp:151: undefined reference to `vtkAOSDataArrayTemplate<unsigned char>::GetPointer(long long)'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `pcl::visualization::PointCloudColorHandlerRGBField<pcl::PointXYZRGB>::getColor() const':
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:102: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*)'
/usr/local/include/vtk-9.0/vtkSmartPointer.h:35: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/vtk-9.0/vtkDebugLeaksManager.h:46: undefined reference to `vtkDebugLeaksManager::vtkDebugLeaksManager()'
/usr/local/include/vtk-9.0/vtkDebugLeaksManager.h:46: undefined reference to `vtkDebugLeaksManager::~vtkDebugLeaksManager()'
CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/vtk-9.0/vtkObjectFactory.h:283: undefined reference to `vtkObjectFactoryRegistryCleanup::vtkObjectFactoryRegistryCleanup()'
/usr/local/include/vtk-9.0/vtkObjectFactory.h:283: undefined reference to `vtkObjectFactoryRegistryCleanup::~vtkObjectFactoryRegistryCleanup()'
collect2: error: ld returned 1 exit status
wrappers/pcl/pcl-color/CMakeFiles/rs-pcl-color.dir/build.make:198: recipe for target 'wrappers/pcl/pcl-color/rs-pcl-color' failed
make[2]: *** [wrappers/pcl/pcl-color/rs-pcl-color] Error 1
make[2]: Leaving directory '....../librealsense/build_18.04'
CMakeFiles/Makefile2:1565: recipe for target 'wrappers/pcl/pcl-color/CMakeFiles/rs-pcl-color.dir/all' failed
make[1]: *** [wrappers/pcl/pcl-color/CMakeFiles/rs-pcl-color.dir/all] Error 2
make[1]: Leaving directory '....../librealsense/build_18.04'
Makefile:132: recipe for target 'all' failed
make: *** [all] Error 2
jiapei100 commented 4 years ago

It looks this issue continues:

BTW: PCL and VTK both have been successfully built and installed....

[ 53%] Building CXX object wrappers/pcl/pcl-color/CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o
cd ....../librealsense-2.38.1/build/wrappers/pcl/pcl-color && /usr/bin/c++  -DBUILD_EASYLOGGINGPP -DBUILD_SHARED_LIBS -DCHECK_FOR_UPDATES -DCURL_STATICLIB -DDISABLE_LIBUSB_1_0 -DDISABLE_PCAP -DDISABLE_PNG -DDISABLE_VTK -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -DHWM_OVER_XU -DRS2_USE_V4L2_BACKEND -DUNICODE -Dqh_QHpointer -I....../librealsense-2.38.1/realsense2 -I....../librealsense-2.38.1/src -I....../librealsense-2.38.1/build -I....../librealsense-2.38.1/include -isystem /usr/local/include/pcl-1.11 -isystem /usr/include/eigen3 -isystem /opt/primesense/OpenNI/Include -isystem /usr/local/include/opencv4  -I/opt/primesense/OpenNI/Include -I/usr/local/include/vtk-9.0 -pedantic -g -Wno-missing-field-initializers -Wno-switch -Wno-multichar -Wsequence-point -Wformat -Wformat-security -mssse3 -fopenmp -O3 -DNDEBUG -fPIE   -std=gnu++14 -o CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o -c ....../librealsense-2.38.1/wrappers/pcl/pcl-color/rs-pcl-color.cpp
In file included from /usr/local/include/pcl/visualization/pcl_visualizer.h:2347,
                 from ....../librealsense-2.38.1/wrappers/pcl/pcl-color/rs-pcl-color.cpp:33:
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp: In member function ‘bool pcl::visualization::PCLVisualizer::addSphere(const PointT&, double, double, double, double, const string&, int)’:
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp:582:24: error: ‘class vtkMapper’ has no member named ‘ImmediateModeRenderingOn’
  582 |   actor->GetMapper ()->ImmediateModeRenderingOn ();
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp: In member function ‘bool pcl::visualization::PCLVisualizer::updatePointCloud(const typename pcl::PointCloud<PointT>::ConstPtr&, const string&)’:
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp:1493:38: error: ‘class vtkMapper’ has no member named ‘ImmediateModeRenderingOff’
 1493 |   am_it->second.actor->GetMapper ()->ImmediateModeRenderingOff ();
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp: In member function ‘bool pcl::visualization::PCLVisualizer::updatePointCloud(const typename pcl::PointCloud<PointT>::ConstPtr&, const pcl::visualization::PointCloudGeometryHandler<PointT>&, const string&)’:
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp:1527:38: error: ‘class vtkMapper’ has no member named ‘ImmediateModeRenderingOff’
 1527 |   am_it->second.actor->GetMapper ()->ImmediateModeRenderingOff ();
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp: In member function ‘bool pcl::visualization::PCLVisualizer::updatePointCloud(const typename pcl::PointCloud<PointT>::ConstPtr&, const pcl::visualization::PointCloudColorHandler<PointT>&, const string&)’:
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp:1605:38: error: ‘class vtkMapper’ has no member named ‘ImmediateModeRenderingOff’
 1605 |   am_it->second.actor->GetMapper ()->ImmediateModeRenderingOff ();
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp: In member function ‘bool pcl::visualization::PCLVisualizer::addPolygonMesh(const typename pcl::PointCloud<PointT>::ConstPtr&, const std::vector<pcl::Vertices>&, const string&, int)’:
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp:1704:35: error: ‘class vtkCellArray’ has no member named ‘WritePointer’
 1704 |     vtkIdType *cell = cell_array->WritePointer (vertices.size (), vertices.size () * (max_size_of_polygon + 1));
      |                                   ^~~~~~~~~~~~
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp: In member function ‘bool pcl::visualization::PCLVisualizer::updatePolygonMesh(const typename pcl::PointCloud<PointT>::ConstPtr&, const std::vector<pcl::Vertices>&, const string&)’:
/usr/local/include/pcl/visualization/impl/pcl_visualizer.hpp:1881:28: error: ‘class vtkCellArray’ has no member named ‘WritePointer’
 1881 |   vtkIdType *cell = cells->WritePointer (verts.size (), verts.size () * (max_size_of_polygon + 1));
      |                            ^~~~~~~~~~~~
In file included from /usr/local/include/pcl/visualization/point_cloud_geometry_handlers.h:48,
                 from /usr/local/include/pcl/visualization/point_cloud_handlers.h:41,
                 from /usr/local/include/pcl/visualization/common/actor_map.h:41,
                 from /usr/local/include/pcl/visualization/pcl_visualizer.h:48,
                 from ....../librealsense-2.38.1/wrappers/pcl/pcl-color/rs-pcl-color.cpp:33:
/usr/local/include/vtk-9.0/vtkSmartPointer.h: In instantiation of ‘vtkSmartPointer<ArrayType>& vtkSmartPointer<ArrayType>::operator=(const vtkSmartPointer<ArrayType>&) [with T = vtkRenderWindow]’:
/usr/local/include/pcl/visualization/interactor_style.h:364:18:   required from here
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137:41: error: no matching function for call to ‘vtkSmartPointer<vtkRenderWindow>::operator=(vtkRenderWindow*)’
  137 |     this->vtkSmartPointerBase::operator=(r.GetPointer());
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /usr/local/include/vtk-9.0/vtkSmartPointer.h:26,
                 from /usr/local/include/pcl/visualization/point_cloud_geometry_handlers.h:48,
                 from /usr/local/include/pcl/visualization/point_cloud_handlers.h:41,
                 from /usr/local/include/pcl/visualization/common/actor_map.h:41,
                 from /usr/local/include/pcl/visualization/pcl_visualizer.h:48,
                 from ....../librealsense-2.38.1/wrappers/pcl/pcl-color/rs-pcl-color.cpp:33:
/usr/local/include/vtk-9.0/vtkSmartPointerBase.h:66:24: note: candidate: ‘vtkSmartPointerBase& vtkSmartPointerBase::operator=(vtkObjectBase*)’
   66 |   vtkSmartPointerBase& operator=(vtkObjectBase* r);
      |                        ^~~~~~~~
/usr/local/include/vtk-9.0/vtkSmartPointerBase.h:66:49: note:   no known conversion for argument 1 from ‘vtkRenderWindow*’ to ‘vtkObjectBase*’
   66 |   vtkSmartPointerBase& operator=(vtkObjectBase* r);
      |                                  ~~~~~~~~~~~~~~~^
/usr/local/include/vtk-9.0/vtkSmartPointerBase.h:67:24: note: candidate: ‘vtkSmartPointerBase& vtkSmartPointerBase::operator=(const vtkSmartPointerBase&)’
   67 |   vtkSmartPointerBase& operator=(const vtkSmartPointerBase& r);
      |                        ^~~~~~~~
/usr/local/include/vtk-9.0/vtkSmartPointerBase.h:67:61: note:   no known conversion for argument 1 from ‘vtkRenderWindow*’ to ‘const vtkSmartPointerBase&’
   67 |   vtkSmartPointerBase& operator=(const vtkSmartPointerBase& r);
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
In file included from /usr/local/include/pcl/visualization/point_cloud_geometry_handlers.h:48,
                 from /usr/local/include/pcl/visualization/point_cloud_handlers.h:41,
                 from /usr/local/include/pcl/visualization/common/actor_map.h:41,
                 from /usr/local/include/pcl/visualization/pcl_visualizer.h:48,
                 from ....../librealsense-2.38.1/wrappers/pcl/pcl-color/rs-pcl-color.cpp:33:
/usr/local/include/vtk-9.0/vtkSmartPointer.h: In instantiation of ‘T* vtkSmartPointer<ArrayType>::GetPointer() const [with T = vtkRenderWindow]’:
/usr/local/include/vtk-9.0/vtkSmartPointer.h:137:44:   required from ‘vtkSmartPointer<ArrayType>& vtkSmartPointer<ArrayType>::operator=(const vtkSmartPointer<ArrayType>&) [with T = vtkRenderWindow]’
/usr/local/include/pcl/visualization/interactor_style.h:364:18:   required from here
/usr/local/include/vtk-9.0/vtkSmartPointer.h:181:43: error: invalid ‘static_cast’ from type ‘vtkObjectBase* const’ to type ‘vtkRenderWindow*’
  181 |   T* GetPointer() const noexcept { return static_cast<T*>(this->Object); }
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/pcl/visualization/point_cloud_color_handlers.h:48,
                 from /usr/local/include/pcl/visualization/point_cloud_handlers.h:42,
                 from /usr/local/include/pcl/visualization/common/actor_map.h:41,
                 from /usr/local/include/pcl/visualization/pcl_visualizer.h:48,
                 from ....../librealsense-2.38.1/wrappers/pcl/pcl-color/rs-pcl-color.cpp:33:
/usr/local/include/pcl/visualization/common/common.h:51:7: note: class type ‘vtkRenderWindow’ is incomplete
   51 | class vtkRenderWindow;
      |       ^~~~~~~~~~~~~~~
make[2]: *** [wrappers/pcl/pcl-color/CMakeFiles/rs-pcl-color.dir/build.make:66: wrappers/pcl/pcl-color/CMakeFiles/rs-pcl-color.dir/rs-pcl-color.cpp.o] Error 1
make[2]: Leaving directory '....../librealsense-2.38.1/build'
make[1]: *** [CMakeFiles/Makefile2:1595: wrappers/pcl/pcl-color/CMakeFiles/rs-pcl-color.dir/all] Error 2
make[1]: Leaving directory '....../librealsense-2.38.1/build'
make: *** [Makefile:133: all] Error 2
RealSenseSupport commented 3 years ago

Hi,

Will you be needing further help with this? If we don’t hear from you in 7 days, this issue will be closed.

Thanks