[vtkusers] QVTKWidget error

Massinissa Bandou Massinissa.Bandou at USherbrooke.ca
Thu Apr 11 17:53:20 EDT 2013


Hi VTK, 

I'm working on QT+VTK project in vs10 win8. I've installed VTK and I assume
that I set the right directories path for the
libraries(Linker->General->Additional lib....) and .h
files(C/C++->General->additional Include Dir...) for release and debug. But,
when I add QVTKWidget in my form, I got this Error: 

1>imageregistration.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall QVTKWidget::QVTKWidget(class
QWidget *,class QFlags<enum Qt::WindowType>)"
(__imp_??0QVTKWidget@@QAE at PAVQWidget@@V?$QFlags at W4WindowType@Qt@@@@@Z)
referenced in function "public: void __thiscall
Ui_ImageRegistration::setupUi(class QMainWindow *)"
(?setupUi at Ui_ImageRegistration@@QAEXPAVQMainWindow@@@Z) 
1>imageregistration.obj : error LNK2001: unresolved external symbol "public:
virtual struct QMetaObject const * __thiscall
QVTKWidget::metaObject(void)const "
(?metaObject at QVTKWidget@@UBEPBUQMetaObject@@XZ) 
1>imageregistration.obj : error LNK2001: unresolved external symbol "public:
virtual void * __thiscall QVTKWidget::qt_metacast(char const *)"
(?qt_metacast at QVTKWidget@@UAEPAXPBD at Z) 
1>imageregistration.obj : error LNK2001: unresolved external symbol "public:
virtual int __thiscall QVTKWidget::qt_metacall(enum
QMetaObject::Call,int,void * *)"
(?qt_metacall at QVTKWidget@@UAEHW4Call at QMetaObject@@HPAPAX at Z) 
1>imageregistration.obj : error LNK2001: unresolved external symbol
"protected: virtual bool __thiscall QVTKWidget::event(class QEvent *)"
(?event at QVTKWidget@@MAE_NPAVQEvent@@@Z) 
1>imageregistration.obj : error LNK2001: unresolved external symbol
"protected: virtual void __thiscall QVTKWidget::mousePressEvent(class
QMouseEvent *)" (?mousePressEvent at QVTKWidget@@MAEXPAVQMouseEvent@@@Z) 
... 
... 
... 
... 

Any Idea????? 

THX 
Massi



--
View this message in context: http://vtk.1045678.n5.nabble.com/QVTKWidget-error-tp5719992.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list