[Insight-users] QtITK linking errors

Chetan Bhole cpbhole at gmail.com
Sun Oct 15 19:37:06 EDT 2006


Hi,

I am trying to link the Qt program given in the insight applications 2.0.0
/QTITK.

I have installed:
Qt 3.3.3
Cmake 2.0.6
Insight ToolKit 2.0.0

I use MS Visual Studio 6 for compiling and linking. The errors that i get
are:

--------------------Configuration: QtITK - Win32 Debug--------------------
Building QT Wrapped File
D:\RA_WSU\Projects\ITK\myProjectQ\bin\moc_qtITK.cxx.rule
D:/RA_WSU/Projects/ITK/myProjectQ/src/qtITK.cxx(0): Warning: No relevant
classes found. No output generated.
Compiling...
itkQtProgressBar.cxx
qtITK.cxx
Generating Code...
Linking...
   Creating library Debug/QtITK.lib and object Debug/QtITK.exp
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual bool
__thiscall itk::QtTranslator::qt_property(int,int,class QVariant *)"
(?qt_property at QtTranslator@itk@@UAE_NHHPAVQVariant@@@Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual bool
__thiscall itk::QtTranslator::qt_emit(int,struct QUObject *)" (?qt_emit@
QtTranslator at itk@@UAE_NHPAUQUObject@@@Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual bool
__thiscall itk::QtTranslator::qt_invoke(int,struct QUObject *)" (?qt_invoke@
QtTranslator at itk@@UAE_NHPAUQUObject@@@Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual void
* __thiscall itk::QtTranslator::qt_cast(char const *)" (?qt_cast@
QtTranslator at itk@@UAEPAXPBD at Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual char
const * __thiscall itk::QtTranslator::className(void)const " (?className@
QtTranslator at itk@@UBEPBDXZ)
qtITK.obj : error LNK2001: unresolved external symbol "public: static class
QMetaObject * __cdecl itk::QtTranslator::staticMetaObject(void)"
(?staticMetaObject at QtTranslator@itk@@SAPAVQMetaObject@@XZ)
qtITK.obj : error LNK2001: unresolved external symbol "protected: void
__thiscall itk::QtTranslator::Signal(void)" (?Signal at QtTranslator@itk
@@IAEXXZ)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual bool
__thiscall itk::QtLightIndicator::qt_property(int,int,class QVariant *)"
(?qt_property at QtLightIndicator@itk@@UAE_NHHPAVQVariant@@@Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual bool
__thiscall itk::QtLightIndicator::qt_emit(int,struct QUObject *)" (?qt_emit@
QtLightIndicator at itk@@UAE_NHPAUQUObject@@@Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual bool
__thiscall itk::QtLightIndicator::qt_invoke(int,struct QUObject *)"
(?qt_invoke at QtLightIndicator@itk@@UAE_NHPAUQUObject@@@Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual void
* __thiscall itk::QtLightIndicator::qt_cast(char const *)" (?qt_cast@
QtLightIndicator at itk@@UAEPAXPBD at Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: virtual char
const * __thiscall itk::QtLightIndicator::className(void)const "
(?className at QtLightIndicator@itk@@UBEPBDXZ)
qtITK.obj : error LNK2001: unresolved external symbol "public: static class
QMetaObject * __cdecl itk::QtLightIndicator::staticMetaObject(void)"
(?staticMetaObject at QtLightIndicator@itk@@SAPAVQMetaObject@@XZ)
Debug/QtITK.exe : fatal error LNK1120: 13 unresolved externals
Error executing link.exe.

ALL_BUILD - 14 error(s), 1 warning(s)


Could anyone kindly help me out?

Thanks and Regards,
Chetan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20061015/8f73dd0c/attachment.htm


More information about the Insight-users mailing list