[Insight-users] Help with compile the ImageViewer

Luis Ibanez luis.ibanez at kitware.com
Thu Jun 24 18:38:24 EDT 2004


Hi Yingli,

It seems that you enabled in CMake the option of using
your system version of ZLIB. Please don't do that.

Rerun CMake, Disable this option and reconfigure
InsightApplications.

If you are also enabling VTK, please make sure that
you configure and build VTK without using the system
Zlib libraries.



Please let us know if you find any further problems,


    Thanks,


      Luis


-----------------
yingli fan wrote:

> Dear all,
> 
> I want to use the imageviewer . I installed the FLTK (use make)   and 
> build the InsightAppications (use cmake)
> 
> When I try to compile the Imageviewer here are the error:
> 
> ///////////////////
> 
> Building dependencies. cmake.depends...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/ImageViewer/ImageViewerGUI.cxx...
> Building object file ImageViewerGUI.o...
> Building object file ImageViewer.o...
> Building dependencies. cmake.depends...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkClippingPlane3DDrawerGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkDisplayGlWindowGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkDisplayGlWindowFlatGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkFrustumFunctionControlGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkImageViewerGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkImage2DViewerGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkRGBImage2DViewerGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkRegularStepGradientDescentGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkSlice2DDrawerGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkSlice3DDrawerGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkSphereFunctionControlGUI.cxx...
> Building Custom command 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/Auxiliary/FltkImageViewer/fltkTimeProbesCollectorGUI.cxx...
> Building dependencies cmake.check_depends...
> Building object file fltkClippingPlane3DDrawerGUI.o...
> Building object file fltkDisplayGlWindowGUI.o...
> Building object file fltkDisplayGlWindowFlatGUI.o...
> Building object file fltkFrustumFunctionControlGUI.o...
> Building object file fltkImageViewerGUI.o...
> Building object file fltkImage2DViewerGUI.o...
> Building object file fltkRGBImage2DViewerGUI.o...
> Building object file fltkRegularStepGradientDescentGUI.o...
> Building object file fltkSlice2DDrawerGUI.o...
> Building object file fltkSlice3DDrawerGUI.o...
> Building object file fltkSphereFunctionControlGUI.o...
> Building object file fltkTimeProbesCollectorGUI.o...
> Building object file fltkBox3D.o...
> Building object file fltkCone3D.o...
> Building object file fltkClippingPlane3DDrawer.o...
> Building object file fltkCylinder3D.o...
> Building object file fltkFrustum3D.o...
> Building object file fltkGlWindow.o...
> Building object file fltkGlWindowInteractive.o...
> Building object file fltkGlWindowInteractiveFlat.o...
> Building object file fltkImage2DViewerWindow.o...
> Building object file fltkRGBImage2DViewerWindow.o...
> Building object file fltkLightButton.o...
> Building object file fltkProgressBar.o...
> Building object file fltkShape3D.o...
> Building object file fltkSphere3D.o...
> Building object file fltkWindowInteractive.o...
> Building object file fltkTimeProbeGUI.o...
> Building object file fltkTimeProbesCollector.o...
> Building object file fltkUtils.o...
> Building static library libITKFltkImageViewer.a...
> Building executable 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/ImageViewer/ImageViewer...
> ld: warning multiple definitions of symbol _crc32
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(crc32.o) 
> definition of _crc32 in section (__TEXT,__text)
> /usr/lib/libz.dylib(crc32.o) definition of _crc32
> ld: warning multiple definitions of symbol _get_crc_table
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(crc32.o) 
> definition of _get_crc_table in section (__TEXT,__text)
> /usr/lib/libz.dylib(crc32.o) definition of _get_crc_table
> ld: warning multiple definitions of symbol _deflate
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(deflate.o) 
> definition of _deflate in section (__TEXT,__text)
> /usr/lib/libz.dylib(deflate.o) definition of _deflate
> ld: warning multiple definitions of symbol _deflateCopy
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(deflate.o) 
> definition of _deflateCopy in section (__TEXT,__text)
> /usr/lib/libz.dylib(deflate.o) definition of _deflateCopy
> ld: warning multiple definitions of symbol _deflateReset
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(deflate.o) 
> definition of _deflateReset in section (__TEXT,__text)
> /usr/lib/libz.dylib(deflate.o) definition of _deflateReset
> ld: warning multiple definitions of symbol _deflateSetDictionary
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(deflate.o) 
> definition of _deflateSetDictionary in section (__TEXT,__text)
> /usr/lib/libz.dylib(deflate.o) definition of _deflateSetDictionary
> ld: warning multiple definitions of symbol _deflateInit2_
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(deflate.o) 
> definition of _deflateInit2_ in section (__TEXT,__text)
> /usr/lib/libz.dylib(deflate.o) definition of _deflateInit2_
> ld: warning multiple definitions of symbol _deflateEnd
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(deflate.o) 
> definition of _deflateEnd in section (__TEXT,__text)
> /usr/lib/libz.dylib(deflate.o) definition of _deflateEnd
> ld: warning multiple definitions of symbol _deflateParams
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(deflate.o) 
> definition of _deflateParams in section (__TEXT,__text)
> /usr/lib/libz.dylib(deflate.o) definition of _deflateParams
> ld: warning multiple definitions of symbol _deflateInit_
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(deflate.o) 
> definition of _deflateInit_ in section (__TEXT,__text)
> /usr/lib/libz.dylib(deflate.o) definition of _deflateInit_
> ld: warning multiple definitions of symbol _zError
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(zutil.o) 
> definition of _zError in section (__TEXT,__text)
> /usr/lib/libz.dylib(zutil.o) definition of _zError
> ld: warning multiple definitions of symbol _zlibVersion
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(zutil.o) 
> definition of _zlibVersion in section (__TEXT,__text)
> /usr/lib/libz.dylib(zutil.o) definition of _zlibVersion
> ld: warning multiple definitions of symbol _inflateEnd
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(inflate.o) 
> definition of _inflateEnd in section (__TEXT,__text)
> /usr/lib/libz.dylib(inflate.o) definition of _inflateEnd
> ld: warning multiple definitions of symbol _inflateSync
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(inflate.o) 
> definition of _inflateSync in section (__TEXT,__text)
> /usr/lib/libz.dylib(inflate.o) definition of _inflateSync
> ld: warning multiple definitions of symbol _inflateSyncPoint
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(inflate.o) 
> definition of _inflateSyncPoint in section (__TEXT,__text)
> /usr/lib/libz.dylib(inflate.o) definition of _inflateSyncPoint
> ld: warning multiple definitions of symbol _inflate
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(inflate.o) 
> definition of _inflate in section (__TEXT,__text)
> /usr/lib/libz.dylib(inflate.o) definition of _inflate
> ld: warning multiple definitions of symbol _inflateSetDictionary
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(inflate.o) 
> definition of _inflateSetDictionary in section (__TEXT,__text)
> /usr/lib/libz.dylib(inflate.o) definition of _inflateSetDictionary
> ld: warning multiple definitions of symbol _inflateInit2_
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(inflate.o) 
> definition of _inflateInit2_ in section (__TEXT,__text)
> /usr/lib/libz.dylib(inflate.o) definition of _inflateInit2_
> ld: warning multiple definitions of symbol _inflateReset
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(inflate.o) 
> definition of _inflateReset in section (__TEXT,__text)
> /usr/lib/libz.dylib(inflate.o) definition of _inflateReset
> ld: warning multiple definitions of symbol _inflateInit_
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(inflate.o) 
> definition of _inflateInit_ in section (__TEXT,__text)
> /usr/lib/libz.dylib(inflate.o) definition of _inflateInit_
> ld: warning multiple definitions of symbol _adler32
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(adler32.o) 
> definition of _adler32 in section (__TEXT,__text)
> /usr/lib/libz.dylib(adler32.o) definition of _adler32
> ld: warning multiple definitions of symbol _gzeof
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzeof in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzeof
> ld: warning multiple definitions of symbol _gzclose
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzclose in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzclose
> ld: warning multiple definitions of symbol _gzdopen
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzdopen in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzdopen
> ld: warning multiple definitions of symbol _gzerror
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzerror in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzerror
> ld: warning multiple definitions of symbol _gzflush
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzflush in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzflush
> ld: warning multiple definitions of symbol _gzgetc
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzgetc in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzgetc
> ld: warning multiple definitions of symbol _gzgets
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzgets in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzgets
> ld: warning multiple definitions of symbol _gzopen
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzopen in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzopen
> ld: warning multiple definitions of symbol _gzprintf
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzprintf in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzprintf
> ld: warning multiple definitions of symbol _gzputc
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzputc in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzputc
> ld: warning multiple definitions of symbol _gzputs
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzputs in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzputs
> ld: warning multiple definitions of symbol _gzread
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzread in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzread
> ld: warning multiple definitions of symbol _gzrewind
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzrewind in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzrewind
> ld: warning multiple definitions of symbol _gzseek
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzseek in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzseek
> ld: warning multiple definitions of symbol _gzsetparams
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzsetparams in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzsetparams
> ld: warning multiple definitions of symbol _gztell
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gztell in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gztell
> ld: warning multiple definitions of symbol _gzwrite
> /Applications/ITK_VTK/ITK/ITK_Binary/bin/libitkzlib.a(gzio.o) definition 
> of _gzwrite in section (__TEXT,__text)
> /usr/lib/libz.dylib(gzio.o) definition of _gzwrite
> File "/Applications/ITK_VTK/FLTK/fltk_source/fluid/fluid"; Line 1; ### 
> /Developer/Tools/Rez - Expected identifier, but got 'Unknown token'
> :
> :
> :
> File "/Applications/ITK_VTK/FLTK/fltk_source/fluid/fluid"; Line 1733; 
> ### /Developer/Tools/Rez - Line too long.
> File "/Applications/ITK_VTK/FLTK/fltk_source/fluid/fluid"; ### 
> /Developer/Tools/Rez - Since errors occurred, 
> /Applications/ITK_VTK/ITK/InsightApplication_binary/ImageViewer/ImageViewer's 
> resource fork was not written.
> make[1]: *** 
> [/Applications/ITK_VTK/ITK/InsightApplication_binary/ImageViewer/ImageViewer] 
> Error 2
> make: *** [default_target] Error 2
> 
> *******************************************************
> Yingli Fan
> Laboratory for Bioimaging and Anatomical Informatics
> Department of Neurobiology & Anatomy
> Drexel University, College of Medicine
> 2900 Queen Lane PA 19129
> Tel: 215-9918455 Fax: 215-843-9367
> Email: Yingli.Fan at drexel.edu   
> *******************************************************
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users





More information about the Insight-users mailing list