我正在尝试在QT项目中使用QVTKWidget。我将以下库添加到我的.pro文件中:
win32:CONFIG(release, debug|release): LIBS += -L'C:/Program Files/VTK 5.8.0/lib/vtk-5.8/' \
-lvtkCommon \
-lvtkRendering \
-lvtkHybrid \
-lvtkCharts \
-lvtkViews \
-lvtkInfovis \
-lvtkWidgets \
-lvtkexoIIc \
-lvtkVolumeRendering \
-lvtkGraphics \
-lvtkverdict \
-lvtkImaging \
-lvtkftgl \
-lvtkfreetype \
-lvtkIO \
-lvtkFiltering \
-lvtkDICOMParser \
-lvtkNetCDF_cxx \
-lvtkNetCDF \
-lvtkmetaio \
-lvtksys \
-lvtksqlite \
-lvtkpng \
-lvtktiff \
-lvtkjpeg \
-lvtkexpat \
-lvtklibxml2 \
-lvtkzlib \
-lvtkalglib \
当我用
创建一个新的QVTKWidget对象时 vtkWidget = new QVTKWidget(this,QFlag(0));
我收到链接器错误:
mainwindow.obj:-1: Fehler:LNK2019: unresolved external symbol "public: __cdecl
QVTKWidget::QVTKWidget(class QWidget *,class QFlags<enum Qt::WindowType>)
(??0QVTKWidget@@QEAA@PEAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) referenced in
function "public: __cdecl MainWindow::MainWindow(class QWidget *)"
(??0MainWindow@@QEAA@PEAVQWidget@@@Z)
感谢您的任何提示!