Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compile error] fatal error: pcl/visualization/pcl_visualizer.h: No such file or directory #4427

Closed
futureflsl opened this issue Sep 28, 2020 · 2 comments · Fixed by #4262
Closed
Labels

Comments

@futureflsl
Copy link

environment===
ubuntu16.04
pcl 1.11.1

code===

#include
#include <pcl/common/common_headers.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/console/parse.h>

int main(int argc, char **argv) {
std::cout << "Test PCL !!!" << std::endl;

pcl::PointCloud<pcl::PointXYZRGB>::Ptr point_cloud_ptr (new pcl::PointCloud<pcl::PointXYZRGB>);
uint8_t r(255), g(15), b(15);
for (float z(-1.0); z <= 1.0; z += 0.05)
{
  for (float angle(0.0); angle <= 360.0; angle += 5.0)
  {
pcl::PointXYZRGB point;
point.x = 0.5 * cosf (pcl::deg2rad(angle));
point.y = sinf (pcl::deg2rad(angle));
point.z = z;
uint32_t rgb = (static_cast<uint32_t>(r) << 16 |
	static_cast<uint32_t>(g) << 8 | static_cast<uint32_t>(b));
point.rgb = *reinterpret_cast<float*>(&rgb);
point_cloud_ptr->points.push_back (point);
  }
  if (z < 0.0)
  {
r -= 12;
g += 12;
  }
  else
  {
g -= 12;
b += 12;
  }
}
point_cloud_ptr->width = (int) point_cloud_ptr->points.size ();
point_cloud_ptr->height = 1;

pcl::visualization::CloudViewer viewer ("test");
viewer.showCloud(point_cloud_ptr);
while (!viewer.wasStopped()){ };
return 0;

}

cmake ===

(base) fut@fut-666:/Desktop/pcl_test$ cd build/
(base) fut@fut-666:
/Desktop/pcl_test/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking for module 'eigen3'
-- Found eigen3, version 3.2.92
-- Found Eigen: /usr/include/eigen3 (Required is at least version "3.1")
-- Eigen found (include: /usr/include/eigen3, version: 3.2.92)
-- Found Boost: /usr/include (found suitable version "1.58.0", minimum required is "1.55.0") found components: system filesystem date_time iostreams serialization regex
-- Checking for module 'flann'
-- Found flann, version 1.8.4
-- Found FLANN: /usr/lib/x86_64-linux-gnu/libflann_cpp.so
CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkChartsCore' component is 'ChartsCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkCommonCore' component is 'CommonCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkCommonDataModel' component is 'CommonDataModel'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkCommonExecutionModel' component is
'CommonExecutionModel'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkFiltersCore' component is 'FiltersCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkFiltersExtraction' component is
'FiltersExtraction'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

#include
#include <pcl/common/common_headers.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/console/parse.h>

int main(int argc, char **argv) {
std::cout << "Test PCL !!!" << std::endl;

pcl::PointCloud<pcl::PointXYZRGB>::Ptr point_cloud_ptr (new pcl::PointCloud<pcl::PointXYZRGB>);
uint8_t r(255), g(15), b(15);
for (float z(-1.0); z <= 1.0; z += 0.05)
{
  for (float angle(0.0); angle <= 360.0; angle += 5.0)
  {
pcl::PointXYZRGB point;
point.x = 0.5 * cosf (pcl::deg2rad(angle));
point.y = sinf (pcl::deg2rad(angle));
point.z = z;
uint32_t rgb = (static_cast<uint32_t>(r) << 16 |
	static_cast<uint32_t>(g) << 8 | static_cast<uint32_t>(b));
point.rgb = *reinterpret_cast<float*>(&rgb);
point_cloud_ptr->points.push_back (point);
  }
  if (z < 0.0)
  {
r -= 12;
g += 12;
  }
  else
  {
g -= 12;
b += 12;
  }
}
point_cloud_ptr->width = (int) point_cloud_ptr->points.size ();
point_cloud_ptr->height = 1;

pcl::visualization::CloudViewer viewer ("test");
viewer.showCloud(point_cloud_ptr);
while (!viewer.wasStopped()){ };
return 0;

}

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkFiltersModeling' component is 'FiltersModeling'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkImagingCore' component is 'ImagingCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkImagingSources' component is 'ImagingSources'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkInteractionStyle' component is 'InteractionStyle'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkInteractionWidgets' component is
'InteractionWidgets'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOCore' component is 'IOCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOImage' component is 'IOImage'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOLegacy' component is 'IOLegacy'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkRenderingAnnotation' component is
'RenderingAnnotation'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkRenderingLOD' component is 'RenderingLOD'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkViewsContext2D' component is 'ViewsContext2D'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkRenderingContextOpenGL' component is
'RenderingContextOpenGL'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
CMake Warning at /usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package):
Found package configuration file:

/usr/local/lib/cmake/vtk-9.0/vtk-config.cmake

but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT
FOUND. Reason given by package:

Could not find the VTK package with the following required components:
RenderingContextOpenGL.

Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

** WARNING ** 2d features related to vtk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkChartsCore' component is 'ChartsCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkCommonCore' component is 'CommonCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkCommonDataModel' component is 'CommonDataModel'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkCommonExecutionModel' component is
'CommonExecutionModel'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkFiltersCore' component is 'FiltersCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkFiltersExtraction' component is
'FiltersExtraction'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkFiltersModeling' component is 'FiltersModeling'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkImagingCore' component is 'ImagingCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkImagingSources' component is 'ImagingSources'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkInteractionStyle' component is 'InteractionStyle'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkInteractionWidgets' component is
'InteractionWidgets'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOCore' component is 'IOCore'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOImage' component is 'IOImage'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOLegacy' component is 'IOLegacy'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkRenderingAnnotation' component is
'RenderingAnnotation'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkRenderingLOD' component is 'RenderingLOD'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkViewsContext2D' component is 'ViewsContext2D'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
The new name for the 'vtkRenderingContextOpenGL' component is
'RenderingContextOpenGL'
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package)
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

CMake Warning at /usr/local/share/pcl-1.11/PCLConfig.cmake:271 (find_package):
Found package configuration file:

/usr/local/lib/cmake/vtk-9.0/vtk-config.cmake

but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT
FOUND. Reason given by package:

Could not find the VTK package with the following required components:
RenderingContextOpenGL.

Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:330 (find_VTK)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)

** WARNING ** io features related to vtk will be disabled
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (libusb-1.0)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:285 (find_package_handle_standard_args)
/usr/local/share/pcl-1.11/PCLConfig.cmake:332 (find_libusb)
/usr/local/share/pcl-1.11/PCLConfig.cmake:535 (find_external_library)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found libusb-1.0: /usr/include
** WARNING ** io features related to libusb-1.0 will be disabled
-- Found Qhull: optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.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)
-- looking for PCL_COMMON
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (PCL_COMMON)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_COMMON: /usr/local/lib/libpcl_common.so
-- looking for PCL_KDTREE
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (PCL_KDTREE)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_KDTREE: /usr/local/lib/libpcl_kdtree.so
-- looking for PCL_OCTREE
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (PCL_OCTREE)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_OCTREE: /usr/local/lib/libpcl_octree.so
-- looking for PCL_SEARCH
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (PCL_SEARCH)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_SEARCH: /usr/local/lib/libpcl_search.so
-- looking for PCL_SAMPLE_CONSENSUS
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_SAMPLE_CONSENSUS) does not match the name of the calling package
(PCL). This can lead to problems in calling code that expects
find_package result variables (e.g., _FOUND) to follow a certain
pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_SAMPLE_CONSENSUS: /usr/local/lib/libpcl_sample_consensus.so
-- looking for PCL_FILTERS
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_FILTERS) does not match the name of the calling package (PCL). This
can lead to problems in calling code that expects find_package result
variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_FILTERS: /usr/local/lib/libpcl_filters.so
-- looking for PCL_2D
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (PCL_2D)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:606 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_2D: /usr/local/include/pcl-1.11
-- looking for PCL_GEOMETRY
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_GEOMETRY) does not match the name of the calling package (PCL). This
can lead to problems in calling code that expects find_package result
variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:606 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_GEOMETRY: /usr/local/include/pcl-1.11
-- looking for PCL_IO
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (PCL_IO)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_IO: /usr/local/lib/libpcl_io.so
-- looking for PCL_FEATURES
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_FEATURES) does not match the name of the calling package (PCL). This
can lead to problems in calling code that expects find_package result
variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_FEATURES: /usr/local/lib/libpcl_features.so
-- looking for PCL_ML
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (PCL_ML)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_ML: /usr/local/lib/libpcl_ml.so
-- looking for PCL_SEGMENTATION
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_SEGMENTATION) does not match the name of the calling package (PCL).
This can lead to problems in calling code that expects find_package
result variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_SEGMENTATION: /usr/local/lib/libpcl_segmentation.so
-- looking for PCL_SURFACE
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_SURFACE) does not match the name of the calling package (PCL). This
can lead to problems in calling code that expects find_package result
variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_SURFACE: /usr/local/lib/libpcl_surface.so
-- looking for PCL_REGISTRATION
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_REGISTRATION) does not match the name of the calling package (PCL).
This can lead to problems in calling code that expects find_package
result variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_REGISTRATION: /usr/local/lib/libpcl_registration.so
-- looking for PCL_KEYPOINTS
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_KEYPOINTS) does not match the name of the calling package (PCL). This
can lead to problems in calling code that expects find_package result
variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_KEYPOINTS: /usr/local/lib/libpcl_keypoints.so
-- looking for PCL_TRACKING
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_TRACKING) does not match the name of the calling package (PCL). This
can lead to problems in calling code that expects find_package result
variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_TRACKING: /usr/local/lib/libpcl_tracking.so
-- looking for PCL_RECOGNITION
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args
(PCL_RECOGNITION) does not match the name of the calling package (PCL).
This can lead to problems in calling code that expects find_package
result variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_RECOGNITION: /usr/local/lib/libpcl_recognition.so
-- looking for PCL_STEREO
CMake Warning (dev) at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (PCL_STEREO)
does not match the name of the calling package (PCL). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/local/share/pcl-1.11/PCLConfig.cmake:603 (find_package_handle_standard_args)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PCL_STEREO: /usr/local/lib/libpcl_stereo.so
-- Found PCL: pcl_common;pcl_kdtree;pcl_octree;pcl_search;pcl_sample_consensus;pcl_filters;pcl_io;pcl_features;pcl_ml;pcl_segmentation;pcl_surface;pcl_registration;pcl_keypoints;pcl_tracking;pcl_recognition;pcl_stereo;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_iostreams.so;/usr/lib/x86_64-linux-gnu/libboost_serialization.so;/usr/lib/x86_64-linux-gnu/libboost_regex.so;optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.so;FLANN::FLANN (Required is at least version "1.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fut/Desktop/pcl_test/build

make===
Scanning dependencies of target pcl_test
[ 50%] Building CXX object CMakeFiles/pcl_test.dir/pcl_test.cpp.o
/home/fut/Desktop/pcl_test/pcl_test.cpp:4:46: fatal error: pcl/visualization/pcl_visualizer.h: No such file or directory
compilation terminated.
CMakeFiles/pcl_test.dir/build.make:81: recipe for target 'CMakeFiles/pcl_test.dir/pcl_test.cpp.o' failed
make[2]: *** [CMakeFiles/pcl_test.dir/pcl_test.cpp.o] Error 1
CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/pcl_test.dir/all' failed
make[1]: *** [CMakeFiles/pcl_test.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2
(base) fut@fut-666:~/Desktop/pcl_test/build$

@futureflsl futureflsl added kind: compile error Type of issue status: triage Labels incomplete labels Sep 28, 2020
@larshg
Copy link
Contributor

larshg commented Sep 28, 2020

Please merge in #4262 for VTK9 support. Its not yet in master.
Alternatively install VTK 8.2.

@kunaltyagi kunaltyagi added the needs: pr merge Specify why not closed/merged yet label Sep 28, 2020
@kunaltyagi kunaltyagi linked a pull request Sep 28, 2020 that will close this issue
@FrankRan23
Copy link

I have the same issue using Windows and vcpkg, did you find the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants