Closed opoplawski closed 4 years ago
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.
I have added an update to pcl_openni_passthrough - but there are probably more lurking around š
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
Woops, copy paste error :-P I'll correct it.
@opoplawski please try again.
More updates coming soon.
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
Please try latest update š
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
Please try again. I got a ubuntu 20.04 compiling after the latest changes.
Looks good here too. Thanks!
Describe the error
To Reproduce
Screenshots/Code snippets/Build information
cmake output:
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):
Additional context
Testing VTK 9 builds - see #4262