我在 Ubuntu 18.04 上安装了 PCL 1.8.0,但在安装 repo 时遇到了错误。
[ 88%] Building CXX object CMakeFiles/tviewer.dir/tviewer/tviewer_widget/tviewer_widget.cpp.o
In file included from /home/gpu-1/Téléchargements/ForestMetrics/build/third-party/tviewer/tviewer-prefix/src/tviewer/tviewer/tviewer_widget/tviewer_widget.cpp:6:0:
/home/gpu-1/Téléchargements/ForestMetrics/build/third-party/tviewer/tviewer-prefix/src/tviewer/tviewer/tviewer_widget/tviewer_widget.h:12:10: fatal error: QVTKWidget.h: Aucun fichier ou dossier de ce type
#include <QVTKWidget.h>
^~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/tviewer.dir/build.make:354: recipe for target 'CMakeFiles/tviewer.dir/tviewer/tviewer_widget/tviewer_widget.cpp.o' failed
make[5]: *** [CMakeFiles/tviewer.dir/tviewer/tviewer_widget/tviewer_widget.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/tviewer.dir/all' failed
make[4]: *** [CMakeFiles/tviewer.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
third-party/tviewer/CMakeFiles/tviewer.dir/build.make:110: recipe for target 'third-party/tviewer/tviewer-prefix/src/tviewer-stamp/tviewer-build' failed
make[2]: *** [third-party/tviewer/tviewer-prefix/src/tviewer-stamp/tviewer-build] Error 2
CMakeFiles/Makefile2:385: recipe for target 'third-party/tviewer/CMakeFiles/tviewer.dir/all' failed
make[1]: *** [third-party/tviewer/CMakeFiles/tviewer.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
但是我安装sudo apt-get install libvtk6-qt-dev
没有任何错误。
任何想法 ?非常感谢 !