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] PCL failure with VTK 9.0 #4440

Closed
opoplawski opened this issue Oct 8, 2020 · 11 comments · Fixed by #4262
Closed

[compile error] PCL failure with VTK 9.0 #4440

opoplawski opened this issue Oct 8, 2020 · 11 comments · Fixed by #4262
Labels
kind: compile error Type of issue needs: pr merge Specify why not closed/merged yet status: triage Labels incomplete

Comments

@opoplawski
Copy link

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

@opoplawski opoplawski added kind: compile error Type of issue status: triage Labels incomplete labels Oct 8, 2020
@larshg
Copy link
Contributor

larshg commented Oct 9, 2020

Ahh, I don't have openni installed, only openni2. So these apps has not been updated to use the new PCLQVTKWidget. I'll try to do them locally. But if you can, you are welcome to help changing them.

@larshg
Copy link
Contributor

larshg commented Oct 9, 2020

I have added an update to pcl_openni_passthrough - but there are probably more lurking around 😭

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

Thanks. On to the next error:

[ 51%] Building CXX object apps/CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o
cd /builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/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-f6827cf6babe690599b4a53e5a0540a641116899/x86_64-redhat-linux-gnu/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/common/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/geometry/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/io/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/filters/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/sample_consensus/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/segmentation/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/visualization/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/kdtree/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/features/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/surface/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/octree/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/registration/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/keypoints/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/tracking/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/search/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/recognition/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/ml/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/stereo/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/2d/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/openni/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/vtk/include -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/x86_64-redhat-linux-gnu/apps -I/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/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/src/openni_passthrough.cpp.o -c /builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/apps/src/openni_passthrough.cpp
/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/apps/src/openni_passthrough.cpp:141:1: error: 'PCDVideoPlayer' has not been declared
  141 | PCDVideoPlayer::refreshView()
      | ^~~~~~~~~~~~~~
/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/apps/src/openni_passthrough.cpp: In function 'void refreshView()':
/builddir/build/BUILD/pcl-f6827cf6babe690599b4a53e5a0540a641116899/apps/src/openni_passthrough.cpp:144:3: error: 'ui_' was not declared in this scope
  144 |   ui_->qvtk_widget->renderWindow()->Render();
      |   ^~~
gmake[2]: *** [apps/CMakeFiles/pcl_openni_passthrough.dir/build.make:106: apps/CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o] Error 1

@larshg
Copy link
Contributor

larshg commented Oct 9, 2020

Woops, copy paste error :-P I'll correct it.

@larshg
Copy link
Contributor

larshg commented Oct 9, 2020

@opoplawski please try again.

@larshg
Copy link
Contributor

larshg commented Oct 9, 2020

More updates coming soon.

@opoplawski
Copy link
Author

FYI -

/usr/bin/ld: CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o: in function `OpenNIPassthrough::refreshView()':
/builddir/build/BUILD/pcl-349c00f90d55c2d0d5bdd732cc910454c5b7c7dc/apps/src/openni_passthrough.cpp:144: undefined reference to `QVTKOpenGLNativeWidget::renderWindow() const'
/usr/bin/ld: CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o: in function `OpenNIPassthrough::OpenNIPassthrough(pcl::OpenNIGrabber&)':
/builddir/build/BUILD/pcl-349c00f90d55c2d0d5bdd732cc910454c5b7c7dc/apps/src/openni_passthrough.cpp:72: undefined reference to `QVTKOpenGLNativeWidget::setRenderWindow(vtkRenderWindow*)'
/usr/bin/ld: /builddir/build/BUILD/pcl-349c00f90d55c2d0d5bdd732cc910454c5b7c7dc/apps/src/openni_passthrough.cpp:73: undefined reference to `QVTKOpenGLNativeWidget::renderWindow() const'
/usr/bin/ld: /builddir/build/BUILD/pcl-349c00f90d55c2d0d5bdd732cc910454c5b7c7dc/apps/src/openni_passthrough.cpp:73: undefined reference to `QVTKOpenGLNativeWidget::interactor() const'
/usr/bin/ld: CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o: in function `Ui_MainWindow::setupUi(QMainWindow*)':
/builddir/build/BUILD/pcl-349c00f90d55c2d0d5bdd732cc910454c5b7c7dc/x86_64-redhat-linux-gnu/apps/ui_openni_passthrough.h:51: undefined reference to `QVTKOpenGLNativeWidget::QVTKOpenGLNativeWidget(QWidget*, QFlags<Qt::WindowType>)'
collect2: error: ld returned 1 exit status

@larshg
Copy link
Contributor

larshg commented Oct 11, 2020

Please try latest update 😄

@opoplawski
Copy link
Author

Still the same it seems:

[ 42%] Linking CXX executable ../bin/pcl_openni_passthrough
cd /builddir/build/BUILD/pcl-115f720d941a92b5fe7548ecbed5a497dd692151/x86_64-redhat-linux-gnu/apps && /usr/bin/cmake -E cmake_link_script CMakeFiles/pcl_openni_passthrough.dir/link.txt --verbose=1
/usr/bin/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 -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld CMakeFiles/pcl_openni_passthrough.dir/include/pcl/apps/moc_openni_passthrough.cpp.o CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o -o ../bin/pcl_openni_passthrough  /usr/lib64/libboost_filesystem.so /usr/lib64/libboost_date_time.so /usr/lib64/libboost_iostreams.so /usr/lib64/libboost_system.so /usr/lib64/libboost_regex.so ../lib64/libpcl_filters.so.1.11.1.99 ../lib64/libpcl_visualization.so.1.11.1.99 /usr/lib64/libQt5Widgets.so.5.15.1 ../lib64/libpcl_sample_consensus.so.1.11.1.99 ../lib64/libpcl_search.so.1.11.1.99 ../lib64/libpcl_octree.so.1.11.1.99 ../lib64/libpcl_io.so.1.11.1.99 ../lib64/libpcl_io_ply.so.1.11.1.99 /usr/lib64/libvtkIOGeometry.so.9.0.1 /usr/lib64/libpng.so /usr/lib64/libz.so -lOpenNI /usr/lib64/libvtkIOPLY.so.9.0.1 ../lib64/libpcl_kdtree.so.1.11.1.99 ../lib64/libpcl_common.so.1.11.1.99 /usr/lib64/libboost_filesystem.so /usr/lib64/libboost_date_time.so /usr/lib64/libboost_iostreams.so /usr/lib64/libboost_system.so /usr/lib64/libboost_regex.so /usr/lib/gcc/x86_64-redhat-linux/10/libgomp.so /usr/lib64/libpthread.so -lm /usr/lib64/libflann_cpp.so /usr/lib64/libOpenGL.so /usr/lib64/libGLX.so /usr/lib64/libGLU.so /usr/lib64/libvtkChartsCore.so.9.0.1 /usr/lib64/libvtkRenderingContextOpenGL2.so.9.0.1 /usr/lib64/libvtkRenderingLOD.so.9.0.1 /usr/lib64/libvtkRenderingOpenGL2.so.9.0.1 /usr/lib64/libGLEW.so /usr/lib64/libvtkViewsContext2D.so.9.0.1 /usr/lib64/libvtkRenderingContext2D.so.9.0.1 /usr/lib64/libvtkViewsCore.so.9.0.1 /usr/lib64/libvtkRenderingUI.so.9.0.1 /usr/lib64/libX11.so /usr/lib64/libvtkInteractionWidgets.so.9.0.1 /usr/lib64/libvtkFiltersModeling.so.9.0.1 /usr/lib64/libvtkInteractionStyle.so.9.0.1 /usr/lib64/libvtkFiltersExtraction.so.9.0.1 /usr/lib64/libvtkIOLegacy.so.9.0.1 /usr/lib64/libvtkIOCore.so.9.0.1 /usr/lib64/libvtkRenderingAnnotation.so.9.0.1 /usr/lib64/libvtkRenderingFreeType.so.9.0.1 /usr/lib64/libfreetype.so /usr/lib64/libvtkImagingSources.so.9.0.1 /usr/lib64/libvtkIOImage.so.9.0.1 /usr/lib64/libvtkImagingCore.so.9.0.1 /usr/lib64/libvtkRenderingCore.so.9.0.1 /usr/lib64/libvtkCommonColor.so.9.0.1 /usr/lib64/libvtkFiltersSources.so.9.0.1 /usr/lib64/libvtkFiltersGeneral.so.9.0.1 /usr/lib64/libvtkFiltersCore.so.9.0.1 /usr/lib64/libvtkCommonExecutionModel.so.9.0.1 /usr/lib64/libvtkCommonDataModel.so.9.0.1 /usr/lib64/libvtkCommonTransforms.so.9.0.1 /usr/lib64/libvtkCommonMisc.so.9.0.1 /usr/lib64/libvtkCommonMath.so.9.0.1 /usr/lib64/libvtkCommonCore.so.9.0.1 /usr/lib64/libvtksys.so.9.0.1 -ldl /usr/lib64/libQt5Gui.so.5.15.1 /usr/lib64/libQt5Core.so.5.15.1 
/usr/bin/ld: CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o: in function `OpenNIPassthrough::refreshView()':
/builddir/build/BUILD/pcl-115f720d941a92b5fe7548ecbed5a497dd692151/apps/src/openni_passthrough.cpp:145: undefined reference to `QVTKOpenGLNativeWidget::renderWindow() const'
/usr/bin/ld: CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o: in function `OpenNIPassthrough::OpenNIPassthrough(pcl::OpenNIGrabber&)':
/builddir/build/BUILD/pcl-115f720d941a92b5fe7548ecbed5a497dd692151/apps/src/openni_passthrough.cpp:73: undefined reference to `QVTKOpenGLNativeWidget::setRenderWindow(vtkRenderWindow*)'
/usr/bin/ld: /builddir/build/BUILD/pcl-115f720d941a92b5fe7548ecbed5a497dd692151/apps/src/openni_passthrough.cpp:74: undefined reference to `QVTKOpenGLNativeWidget::renderWindow() const'
/usr/bin/ld: /builddir/build/BUILD/pcl-115f720d941a92b5fe7548ecbed5a497dd692151/apps/src/openni_passthrough.cpp:74: undefined reference to `QVTKOpenGLNativeWidget::interactor() const'
/usr/bin/ld: CMakeFiles/pcl_openni_passthrough.dir/src/openni_passthrough.cpp.o: in function `Ui_MainWindow::setupUi(QMainWindow*)':
/builddir/build/BUILD/pcl-115f720d941a92b5fe7548ecbed5a497dd692151/x86_64-redhat-linux-gnu/apps/ui_openni_passthrough.h:51: undefined reference to `QVTKOpenGLNativeWidget::QVTKOpenGLNativeWidget(QWidget*, QFlags<Qt::WindowType>)'
collect2: error: ld returned 1 exit status

@larshg
Copy link
Contributor

larshg commented Oct 16, 2020

Please try again. I got a ubuntu 20.04 compiling after the latest changes.

@opoplawski
Copy link
Author

Looks good here too. Thanks!

@larshg larshg closed this as completed Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: compile error Type of issue needs: pr merge Specify why not closed/merged yet status: triage Labels incomplete
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants