Hi all,
I tried to use QVTKWidget in my application. I used the design to promote the class QVTKWidget to my widget.But, when i compile my program, i got this error:
FenClient.obj:-1: erreur : LNK2019: unresolved external symbol "public: __thiscall QVTKWidget::QVTKWidget(class QWidget *,class QFlags<enum Qt::WindowType>)" (??0QVTKWidget@@QAE@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) referenced in function "public: void __thiscall Ui_FenClient::setupUi(class QWidget *)" (?setupUi@Ui_FenClient@@QAEXPAVQWidget@@@Z)
FenClient.obj:-1: erreur : LNK2019: unresolved external symbol "public: __thiscall QVTKWidget::QVTKWidget(class QWidget *,class QFlags<enum Qt::WindowType>)" (??0QVTKWidget@@QAE@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) referenced in function "public: void __thiscall Ui_FenClient::setupUi(class QWidget *)" (?setupUi@Ui_FenClient@@QAEXPAVQWidget@@@Z)
To copy to clipboard, switch view to plain text mode
and this one :
release\client.exe:-1: erreur : LNK1120: 1 unresolved externals
release\client.exe:-1: erreur : LNK1120: 1 unresolved externals
To copy to clipboard, switch view to plain text mode
Even, when i add the libs to my .pro file , i still have these errors :
LIBS += -LC:/vtkqt/lib/vtk-5.8 -lvtkWidgets \
-LC:/vtkqt/lib/vtk-5.8 -lvtkCharts \
-LC:/vtkqt/lib/vtk-5.8 -lvtksys \
-LC:/vtkqt/lib/vtk-5.8 -lvtkGeovis \
-LC:/vtkqt/lib/vtk-5.8 -lvtkViews \
-LC:/vtkqt/lib/vtk-5.8 -lvtkInfovis \
-LC:/vtkqt/lib/vtk-5.8 -lvtkVolumeRendering \
-LC:/vtkqt/lib/vtk-5.8 -lvtkHybrid \
-LC:/vtkqt/lib/vtk-5.8 -lvtkRendering \
-LC:/vtkqt/lib/vtk-5.8 -lvtkGenericFiltering \
-LC:/vtkqt/lib/vtk-5.8 -lvtkGraphics \
-LC:/vtkqt/lib/vtk-5.8 -lvtkIO \
-LC:/vtkqt/lib/vtk-5.8 -lvtkCommon \
-LC:/vtkqt/lib/vtk-5.8 -lvtkProj4
LIBS += -LC:/vtkqt/lib/vtk-5.8 -lvtkWidgets \
-LC:/vtkqt/lib/vtk-5.8 -lvtkCharts \
-LC:/vtkqt/lib/vtk-5.8 -lvtksys \
-LC:/vtkqt/lib/vtk-5.8 -lvtkGeovis \
-LC:/vtkqt/lib/vtk-5.8 -lvtkViews \
-LC:/vtkqt/lib/vtk-5.8 -lvtkInfovis \
-LC:/vtkqt/lib/vtk-5.8 -lvtkVolumeRendering \
-LC:/vtkqt/lib/vtk-5.8 -lvtkHybrid \
-LC:/vtkqt/lib/vtk-5.8 -lvtkRendering \
-LC:/vtkqt/lib/vtk-5.8 -lvtkGenericFiltering \
-LC:/vtkqt/lib/vtk-5.8 -lvtkGraphics \
-LC:/vtkqt/lib/vtk-5.8 -lvtkIO \
-LC:/vtkqt/lib/vtk-5.8 -lvtkCommon \
-LC:/vtkqt/lib/vtk-5.8 -lvtkProj4
To copy to clipboard, switch view to plain text mode
I will appreciate all suggestions, thanks
Bookmarks