[Insight-users] Qt Slice Viewer
Luis Ibanez
luis.ibanez@kitware.com
Thu, 30 Jan 2003 14:09:13 -0500
Hi Zein,
The link error messages are related with
OpenGl, MetaImage and PNG.
Please look at the CMakeList.txt file
and make sure that the following libraries
are included in the link list:
LINK_LIBRARIES(
${ITK_LIBRARIES}
${QT_QT_LIBRARY}
${GLU_LIBRARY}
${OPENGL_LIBRARY}
ITKMetaIO
ITKMetaIO
itkzlib
itkpng
)
Let us know if you find any problem,
Thanks
Luis
-----------------------------
salah wrote:
>
> salah wrote:
>
>>The attached file contain the compilation errors of the qtImageViewer.
>>
>>Note: I have returned to use the itk release of oct2002 with fltk-1.0.11.
>>
>>Zein
> ------------------------------------------------------------------------
>
> --------------------Configuration: QtSlicer - Win32 Debug--------------------
> Performing Custom Build Step on D:\InsightToolkit-1.0.0-Bin\Examples\ZeinTester\QtImageViewer\QtSlicerHelpGUI.h
> Performing Custom Build Step on D:\InsightToolkit-1.0.0-Bin\Examples\ZeinTester\QtImageViewer\QtSlicerGUI.h
> Performing Custom Build Step on D:\InsightToolkit-1.0.0\Auxiliary\QtImageViewer\QtSlicerHelpGUI.ui
> Performing Custom Build Step on D:\InsightToolkit-1.0.0\Auxiliary\QtImageViewer\QtSlicerGUI.ui
> Compiling...
> QtSlicerGUI.cxx
> QtSlicerHelpGUI.cxx
> moc_QtSlicerGUI.cxx
> moc_QtSlicerHelpGUI.cxx
> QtSlicer.cxx
> QtSlicerTest.cxx
> Generating Code...
> Linking...
> Creating library Debug/QtSlicer.lib and object Debug/QtSlicer.exp
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glFrustum@48
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glPixelStorei@8
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glVertex2d@16
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glCallLists@12
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glColor4f@16
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glBlendFunc@8
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glDrawPixels@20
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glPixelZoom@8
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glRasterPos2i@8
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glOrtho@48
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glGetIntegerv@8
> QtGlSliceView.obj : error LNK2001: unresolved external symbol __imp__glClear@4
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall MetaImage::~MetaImage(void)" (??1MetaImage@@UAE@XZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "bool __cdecl MET_SystemByteOrderMSB(void)" (?MET_SystemByteOrderMSB@@YA_NXZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: __thiscall MetaImage::MetaImage(void)" (??0MetaImage@@QAE@XZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: void __thiscall MetaImage::ElementDataFileName(char const *)" (?ElementDataFileName@MetaImage@@QAEXPBD@Z)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: float __thiscall MetaObject::Position(int)const " (?Position@MetaObject@@QBEMH@Z)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: float __thiscall MetaObject::ElementSpacing(int)const " (?ElementSpacing@MetaObject@@QBEMH@Z)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: int __thiscall MetaImage::DimSize(int)const " (?DimSize@MetaImage@@QBEHH@Z)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: int __thiscall MetaObject::NDims(void)const " (?NDims@MetaObject@@QBEHXZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: enum MET_ValueEnumType __thiscall MetaImage::ElementType(void)const " (?ElementType@MetaImage@@QBE?AW4MET_ValueEnumType@@XZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: int __thiscall MetaImage::ElementNumberOfChannels(void)const " (?ElementNumberOfChannels@MetaImage@@QBEHXZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall MetaObject::BinaryData(void)const " (?BinaryData@MetaObject@@QBE_NXZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall MetaImage::ElementByteOrderFix(void)" (?ElementByteOrderFix@MetaImage@@QAE_NXZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: char const * __thiscall MetaImage::ElementDataFileName(void)const " (?ElementDataFileName@MetaImage@@QBEPBDXZ)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: void __thiscall MetaObject::BinaryData(bool)" (?BinaryData@MetaObject@@QAEX_N@Z)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: void __thiscall MetaObject::Position(float const *)" (?Position@MetaObject@@QAEXPBM@Z)
> ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall MetaImage::InitializeEssential(int,int const *,float const *,enum MET_ValueEnumType,int,void *,bool)" (?InitializeEssential@MetaImage@@QAE_NHPBHPBMW4M
> ET_ValueEnumType@@HPAX_N@Z)
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_destroy_read_struct
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_create_info_struct
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_create_read_struct
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_sig_cmp
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_read_end
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_read_image
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_get_rowbytes
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_read_update_info
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_set_swap
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_set_tRNS_to_alpha
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_get_valid
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_set_gray_1_2_4_to_8
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_set_palette_to_rgb
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_get_IHDR
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_read_info
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_set_sig_bytes
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_init_io
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_get_channels
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_write_end
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_write_image
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_write_info
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_set_compression_level
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_set_IHDR
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_destroy_write_struct
> ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external symbol _png_create_write_struct
> Debug/QtSlicer.exe : fatal error LNK1120: 62 unresolved externals
> Error executing link.exe.
>
> QtSlicer.exe - 63 error(s), 0 warning(s)
>
> error.txt
>
> Content-Description:
>
> error.txt
> Content-Type:
>
> text/plain
> Content-Encoding:
>
> base64
>
>