[vtkusers] QVTKWidget error
David Doria
daviddoria at gmail.com
Mon Apr 15 08:38:49 EDT 2013
On Thu, Apr 11, 2013 at 5:53 PM, Massinissa Bandou
<Massinissa.Bandou at usherbrooke.ca> wrote:
> 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
Did you build VTK with Qt support? Is there a reason you are not using CMake?
David
More information about the vtkusers
mailing list