surajj4837
surajj4837

Reputation: 61

error: undefined reference to `QVTKWidget::QVTKWidget(QWidget*, QFlags<Qt::WindowType>)'

I m using Qt5.15 in Ubuntu 20.04. I want to use PCL to visualise point cloud data. To get PCL runnig with Qt, VTK library is also required. So in my system I have PCL 1.10 and VTK 7.1.1. I have taken sample code for testing the setup from here. I m getting following error:

error: undefined reference to `QVTKWidget::QVTKWidget(QWidget*, QFlags<Qt::WindowType>)'

Any suggestion for resolving this?

Upvotes: 0

Views: 1103

Answers (1)

Pj Toopmuch
Pj Toopmuch

Reputation: 147

Install Qt, Build VTK with QT_DIR set and Install. Build PCL with VTK_DIR and visualization module set. Install PCL. If custom install dirs add them to ubuntu's ldconfig. I prefer building with cmake in qtcreator. Create new project in qtcreator and choose cmake as compiler in wizard

Upvotes: 0

Related Questions