[vtkusers] VTK5.0 compilation problem with QT4 using Visual C++ 2005
Michael Rice
marice at knology.net
Wed Jul 19 21:40:22 EDT 2006
It looks like it's not linking in the [correct] output from the Qt moc.
When you ran 'cmake', did you select a Debug or Release build? If you
selected Release in 'cmake', try setting the configuration to Release
in VS 2005 and then rebuild.
Michael
On Jul 19, 2006, at 2:56 PM, Wang, Haobing wrote:
> Hello,
>
>
>
> I am trying to compile VTK5.0 with QT4.1.4 using Visual C++ 2005.
> When compiling QVTK, I got the following errors:
>
>
>
> 2>------ Build started: Project: QVTK, Configuration: Debug Win32
> ------
>
> 2>Linking...
>
> 2> Creating library D:\vtk\VTK\bin\Debug\QVTK.lib and object D:
> \vtk\VTK\bin\Debug\QVTK.exp
>
> 2>vtkEventQtSlotConnect.obj : error LNK2001: unresolved external
> symbol "public: virtual struct QMetaObject const * __thiscall
> vtkQtConnection::metaObject(void)const " (?
> metaObject at vtkQtConnection@@UBEPBUQMetaObject@@XZ)
>
> 2>vtkEventQtSlotConnect.obj : error LNK2001: unresolved external
> symbol "public: virtual void * __thiscall
> vtkQtConnection::qt_metacast(char const *)" (?
> qt_metacast at vtkQtConnection@@UAEPAXPBD at Z)
>
> 2>vtkEventQtSlotConnect.obj : error LNK2001: unresolved external
> symbol "public: virtual int __thiscall vtkQtConnection::qt_metacall
> (enum QMetaObject::Call,int,void * *)" (?
> qt_metacall at vtkQtConnection@@UAEHW4Call at QMetaObject@@HPAPAX at Z)
>
> 2>vtkEventQtSlotConnect.obj : error LNK2019: unresolved external
> symbol "protected: void __thiscall vtkQtConnection::EmitExecute
> (class vtkObject *,unsigned long,void *,void *,class vtkCommand
> *)" (?
> EmitExecute at vtkQtConnection@@IAEXPAVvtkObject@@KPAX1PAVvtkCommand@@@Z)
> referenced in function "public: void __thiscall
> vtkQtConnection::Execute(class vtkObject *,unsigned long,void *)" (?
> Execute at vtkQtConnection@@QAEXPAVvtkObject@@KPAX at Z)
>
> 2>D:\vtk\VTK\bin\Debug\QVTK.dll : fatal error LNK1120: 4 unresolved
> externals
>
> 2>Build log was saved at "file://d:\vtk\VTK\GUISupport\Qt\QVTK.dir
> \Debug\BuildLog.htm"
>
> 2>QVTK - 5 error(s), 0 warning(s)
>
> ========== Build: 1 succeeded, 1 failed, 20 up-to-date, 0 skipped
> ==========
>
>
>
> I tried to link all the libraries in VTK and QT, but still got
> those errors. Does anyone know what the problem is and how to solve
> it? Thanks a lot in advance.
>
>
>
> Haobing
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/
> Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060719/f480d6c8/attachment.htm>
More information about the vtkusers
mailing list