Closed jiapei100 closed 3 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
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
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....