[vtkusers] undefined reference to 'QVTKWidget::QVTKWidget'
Yifei Li
yifli at mtu.edu
Fri Mar 20 15:02:55 EDT 2009
Hi all,
I'm trying to compile an example of Qt4 and VTK integration -
SimpleView. Although I included all the libraries (I use qmake):
LIBS += -L/usr/lib \
-lQVTK \
-lvtkHybrid \
-lvtkVolumeRendering \
-lvtkIO \
-lvtkRendering \
-lvtkGenericFiltering \
-lvtkGraphics \
-lvtkImaging \
-lvtkFiltering \
-lvtkCommon \
-lvtkftgl \
-lvtkDICOMParser \
-lvtksys
compilation still failed with the error message:
debug/vtkgui.o: In function `Ui_MainWindow::setupUi(QMainWindow*)':
undefined reference to `QVTKWidget::QVTKWidget(QWidget*,
QFlags<Qt::WindowType>)'
Any Ideas? Thanks in advance
Yifei
P.S. Development Environment:
OS: Fedora 9
IDE: Eclipse 3.3.2
Compiler: g++ 4.3
Qt: 4.3
Qt/Eclipse integration for qt-4.5.0
VTK: 5.0
More information about the vtkusers
mailing list