Skip to content

[compile error] PCL failure with VTK 9.0 #4440

@opoplawski

Description

@opoplawski

Describe the error

[ 44%] Building CXX object apps/CMakeFiles/pcl_openni_passthrough.dir/include/pcl/apps/moc_openni_passthrough.cpp.o
cd /builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/x86_64-redhat-linux-gnu/apps && /usr/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -Dqh_QHpointer -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/x86_64-redhat-linux-gnu/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/common/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/geometry/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/io/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/filters/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/sample_consensus/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/segmentation/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/visualization/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/kdtree/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/features/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/surface/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/octree/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/registration/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/keypoints/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/tracking/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/search/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/recognition/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/ml/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/stereo/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/2d/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/openni/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/vtk/include -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/x86_64-redhat-linux-gnu/apps -I/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/apps/include -isystem /usr/include/eigen3 -isystem /usr/include/ni -isystem /usr/include/metslib-0.5 -isystem /usr/include/vtk -isystem /usr/include/freetype2 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -fexceptions -g1 -grecord-gcc-switches -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fopenmp -DNDEBUG -fopenmp -fPIC -std=c++14 -o CMakeFiles/pcl_openni_passthrough.dir/include/pcl/apps/moc_openni_passthrough.cpp.o -c /builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/x86_64-redhat-linux-gnu/apps/include/pcl/apps/moc_openni_passthrough.cpp
In file included from /builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/apps/include/pcl/apps/openni_passthrough_qt.h:48,
                 from /builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/x86_64-redhat-linux-gnu/apps/include/pcl/apps/../../../../../apps/include/pcl/apps/openni_passthrough.h:40,
                 from /builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/x86_64-redhat-linux-gnu/apps/include/pcl/apps/moc_openni_passthrough.cpp:10:
/builddir/build/BUILD/pcl-ca936f8c92fe8ef07dd4c6fe0879c214a52831c7/x86_64-redhat-linux-gnu/apps/ui_openni_passthrough.h:18:10: fatal error: QVTKWidget.h: No such file or directory
   18 | #include "QVTKWidget.h"
      |          ^~~~~~~~~~~~~~

To Reproduce

Screenshots/Code snippets/Build information

cmake output:

+ /usr/bin/cmake -S . -B x86_64-redhat-linux-gnu -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE=Release -DWITH_DOCS=ON -DWITH_CUDA=OFF -DWITH_TUTORIALS=ON -DBUILD_apps=ON -DBUILD_global_tests=OFF -DOPENNI_INCLUDE_DIR:PATH=/usr/include/ni -DLIB_INSTALL_DIR=lib64 -DPCL_ENABLE_SSE=ON -DPCL_PKGCONFIG_SUFFIX:STRING= -DBUILD_documentation=ON -DCMAKE_SKIP_RPATH=ON
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - 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/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") 
-- Could NOT find ClangFormat (missing: ClangFormat_EXECUTABLE ClangFormat_VERSION) (Required is at least version "10")
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5") found components: C CXX 
-- Found OpenMP, spec date 201511
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Checking for module 'eigen3'
--   Found eigen3, version 3.3.8
-- Found Eigen: /usr/include/eigen3 (Required is at least version "3.1") 
-- Eigen found (include: /usr/include/eigen3, version: 3.3.8)
-- Checking for module 'flann>=1.7.0'
--   Found flann, version 1.9.1
-- Found FLANN: /usr/lib64/libflann_cpp.so (Required is at least version "1.7.0") 
-- Found libusb-1.0: /usr/lib64/libusb-1.0.so  
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.23
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (USB_10)
  does not match the name of the calling package (OpenNI).  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):
  cmake/Modules/FindOpenNI.cmake:28 (find_package_handle_standard_args)
  cmake/pcl_targets.cmake:837 (find_package)
  CMakeLists.txt:317 (PCL_ADD_GRABBER_DEPENDENCY)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found USB_10: /usr/lib64/libusb-1.0.so  
-- Found OpenNI: /usr/lib64/libOpenNI.so  
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib64/libOpenNI.so)
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (USB_10)
  does not match the name of the calling package (OpenNI2).  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):
  cmake/Modules/FindOpenNI2.cmake:28 (find_package_handle_standard_args)
  cmake/pcl_targets.cmake:837 (find_package)
  CMakeLists.txt:318 (PCL_ADD_GRABBER_DEPENDENCY)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARIES OPENNI2_INCLUDE_DIRS) 
-- OpenNI2 grabber support: not building because OpenNI2 not found
-- Could NOT find Ensenso (missing: ENSENSO_LIBRARIES ENSENSO_INCLUDE_DIRS) 
-- IDS-Imaging Ensenso camera support: not building because Ensenso not found
-- Could NOT find davidSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
-- David Vision Systems SDK support: not building because davidSDK not found
-- Could NOT find DSSDK (missing: DSSDK_LIBRARIES DSSDK_INCLUDE_DIRS) 
-- DepthSense SDK support: not building because DSSDK not found
-- Could NOT find RSSDK (missing: RSSDK_LIBRARIES RSSDK_INCLUDE_DIRS) 
-- RealSense SDK support: not building because RSSDK not found
-- Could NOT find RSSDK2
-- RealSense SDK 2.0 (librealsense) support: not building because RSSDK2 not found
-- Checking for module 'metslib'
--   Found metslib, version 0.5.3
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.37") 
-- Found Qhull: optimized;/usr/lib64/libqhull_p.so;debug;/usr/lib64/libqhull_p.so  
-- QHULL found (include: /usr/include, lib: optimized;/usr/lib64/libqhull_p.so;debug;/usr/lib64/libqhull_p.so)
-- Found Qt5 version: 5.15.1
-- Found Python3: /usr/bin/python3.9 (found suitable version "3.9.0", minimum required is "3.9") found components: Interpreter Development.Module Development.Embed 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/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
-- Found GLEW: /usr/lib64/libGLEW.so  
-- Found OpenGL: /usr/lib64/libOpenGL.so  found components: OpenGL GLX 
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Found HDF5: /usr/lib64/libhdf5.so (found version "1.10.6") found components: C HL 
-- Found OGG: /usr/lib64/libogg.so  
-- Found THEORA: /usr/lib64/libtheora.so  
-- Found PEGTL: /usr/include/tao (found suitable version "2.8.3", minimum required is "2.0.0") 
-- Found JsonCpp: /usr/lib64/libjsoncpp.so (found suitable version "1.9.3", minimum required is "0.7.0") 
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.10") 
-- Found LibHaru: /usr/lib64/libhpdf.so (found suitable version "2.3.0-RC2", minimum required is "2.3.0") 
-- Found GL2PS: /usr/lib64/libgl2ps.so (found suitable version "1.4.2", minimum required is "1.4.1") 
-- Found Boost: /usr/include (found suitable exact version "1.73.0")  
-- Found Boost: /usr/include (found suitable exact version "1.73.0") found components: serialization 
-- Found SQLite3: /usr/include (found version "3.33.0") 
-- Found GDAL: /usr/lib64/libgdal.so (found version "3.1.3") 
-- Found LibPROJ: /usr/lib64/libproj.so (found version "6.3.2") 
-- Found OpenSlide: /usr/lib64/libopenslide.so  
-- Found LibArchive: /usr/lib64/libarchive.so (found version "3.4.3") 
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.2.8") 
-- Found double-conversion: /usr/lib64/libdouble-conversion.so  
-- Found LZ4: /usr/lib64/liblz4.so (found version "1.9.1") 
-- Found LZMA: /usr/lib64/liblzma.so (found version "5.2.5") 
-- Found utf8cpp: /usr/include/utf8cpp  
-- Found Eigen3: /usr/include/eigen3 (found version "3.3.8") 
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62") 
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.1.0") 
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.10.2") 
-- VTK version: 9.0.1
-- VTK rendering backend: OpenGL2
-- VTK Qt support: YES
-- VTK libs: VTK::WrappingTools;VTK::WebPython;VTK::WebCore;VTK::Python;VTK::vtksys;VTK::WebGLExporter;VTK::ViewsQt;VTK::ViewsInfovis;VTK::CommonColor;VTK::RenderingContextOpenGL2;VTK::Java;VTK::RenderingOpenGL2;VTK::ViewsContext2D;VTK::loguru;VTK::TestingRendering;VTK::TestingCore;VTK::RenderingTk;VTK::RenderingQt;VTK::PythonContext2D;VTK::RenderingVolumeOpenGL2;VTK::glew;VTK::opengl;VTK::PythonInterpreter;VTK::RenderingLabel;VTK::octree;VTK::RenderingLOD;VTK::RenderingImage;VTK::IOVeraOut;VTK::hdf5;VTK::IOTecplotTable;VTK::IOSegY;VTK::IOParallelXML;VTK::IOPLY;VTK::IOOggTheora;VTK::theora;VTK::ogg;VTK::IONetCDF;VTK::netcdf;VTK::IOMySQL;VTK::TestingIOSQL;VTK::IOMotionFX;VTK::pegtl;VTK::IOParallel;VTK::jsoncpp;VTK::RenderingParallel;VTK::IOMINC;VTK::IOLSDyna;VTK::IOInfovis;VTK::libxml2;VTK::zlib;VTK::IOImport;VTK::IOGeometry;VTK::IOVideo;VTK::IOMovie;VTK::IOExportPDF;VTK::libharu;VTK::IOExportGL2PS;VTK::RenderingGL2PSOpenGL2;VTK::gl2ps;VTK::png;VTK::IOExport;VTK::RenderingVtkJS;VTK::RenderingSceneGraph;VTK::IOExodus;VTK::exodusII;VTK::IOEnSight;VTK::IOCityGML;VTK::pugixml;VTK::IOAsynchronous;VTK::IOAMR;VTK::InteractionImage;VTK::InfovisBoostGraphAlgorithms;VTK::InfovisBoost;VTK::ImagingStencil;VTK::ImagingStatistics;VTK::ImagingOpenGL2;VTK::ImagingMorphological;VTK::ImagingMath;VTK::GUISupportQtSQL;VTK::IOSQL;VTK::sqlite;VTK::GUISupportQt;VTK::GeovisGDAL;VTK::IOGDAL;VTK::GeovisCore;VTK::libproj;VTK::InfovisLayout;VTK::ViewsCore;VTK::InteractionWidgets;VTK::RenderingVolume;VTK::RenderingAnnotation;VTK::ImagingHybrid;VTK::ImagingColor;VTK::InteractionStyle;VTK::FiltersTopology;VTK::FiltersSelection;VTK::FiltersSMP;VTK::FiltersPython;VTK::FiltersProgrammable;VTK::FiltersPoints;VTK::FiltersVerdict;VTK::verdict;VTK::FiltersParallelImaging;VTK::FiltersImaging;VTK::ImagingGeneral;VTK::FiltersHyperTree;VTK::FiltersGeneric;VTK::TestingGenericBridge;VTK::FiltersFlowPaths;VTK::FiltersAMR;VTK::FiltersParallel;VTK::IOParallelExodus;VTK::FiltersTexture;VTK::FiltersModeling;VTK::FiltersHybrid;VTK::DomainsMicroscopy;VTK::RenderingUI;VTK::DomainsChemistry;VTK::DomainsChemistryOpenGL2;VTK::CommonPython;VTK::WrappingPythonCore;VTK::CommonArchive;VTK::ChartsCore;VTK::InfovisCore;VTK::FiltersExtraction;VTK::ParallelDIY;VTK::diy2;VTK::IOXML;VTK::IOXMLParser;VTK::expat;VTK::ParallelCore;VTK::IOLegacy;VTK::IOCore;VTK::doubleconversion;VTK::lz4;VTK::lzma;VTK::utf8;VTK::FiltersStatistics;VTK::eigen;VTK::ImagingFourier;VTK::ImagingSources;VTK::IOImage;VTK::DICOMParser;VTK::jpeg;VTK::metaio;VTK::tiff;VTK::RenderingContext2D;VTK::RenderingFreeType;VTK::freetype;VTK::kwiml;VTK::RenderingCore;VTK::FiltersSources;VTK::ImagingCore;VTK::FiltersGeometry;VTK::FiltersGeneral;VTK::CommonComputationalGeometry;VTK::FiltersCore;VTK::CommonExecutionModel;VTK::CommonDataModel;VTK::CommonSystem;VTK::CommonMisc;VTK::CommonTransforms;VTK::CommonMath;VTK::CommonCore
-- Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS) 
-- Found Boost: /usr/include (found suitable version "1.73.0", minimum required is "1.55.0") found components: filesystem date_time iostreams system regex 
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Found GLEW: /usr/include (found version "2.1.0") 
-- Checking for module 'sphinx-build'
--   Package 'sphinx-build', required by 'virtual:world', not found
-- Found PythonInterp: /usr/bin/python3.9 (found version "3.9") 
-- Found Sphinx: /usr/bin/sphinx-build  
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.20") found components: doxygen dot 
-- DOXYGEN_FOUND YES
-- HTML_HELP_COMPILER 
-- The following subsystems will be built:
--   common
--   kdtree
--   octree
--   search
--   sample_consensus
--   filters
--   2d
--   geometry
--   io
--   features
--   ml
--   segmentation
--   visualization
--   surface
--   registration
--   keypoints
--   tracking
--   recognition
--   stereo
--   apps
       not building: 
       |_ 3d_rec_framework: No reason provided
       |_ cloud_composer: No reason provided
       |_ in_hand_scanner: No reason provided
       |_ modeler: No reason provided
       |_ point_cloud_editor: No reason provided
--   outofcore
--   people
--   tools
-- The following subsystems will not be built:
--   examples: Code examples are disabled by default.
--   simulation: Disabled by default.
--   global_tests: Disabled by default
-- Configuring done
-- Generating done

Full build log: https://download.copr.fedorainfracloud.org/results/orion/vtk9.0/fedora-rawhide-x86_64/01698907-pcl/builder-live.log.gz

Your Environment (please complete the following information):

  • OS: Fedora Rawhide
  • Compiler: GCC 10.2.1
  • PCL Version: larshg/pcl ca936f8

Additional context

Testing VTK 9 builds - see #4262

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions