[IGSTK-Users] Errors building IGSTK 2.0.1

Patrick Cheng cheng at isis.georgetown.edu
Wed Apr 4 18:12:17 EDT 2007


Hi Wagner,

Someone had the same problem before.

Please read this thread.
http://public.kitware.com/pipermail/igstk-users/2007-January/000071.html

Basically, you need to chance igstkToolCalibrationReader.txx line 21

from
#include "zlib/zlib.h"
to
#include "itk_zlib.h"

Patrick

Wagner Sales wrote:
> Hi all,
> 
> I was tried to compile IGSTK on my linux box with the following software 
> versions:
> - ITK 3.2 ( not using system's zlib - default )
> - ZLIB info:
> Package: zlib1g-dev
> Priority: optional
> Section: libdevel
> Installed-Size: 616
> Maintainer: Ubuntu Core Developers <ubuntu-devel at lists.ubuntu.com 
> <mailto:ubuntu-devel at lists.ubuntu.com>>
> Architecture: amd64
> Source: zlib
> Version: 1:1.2.3-13ubuntu2
> - VTK - CVS Version
> Linux Box: Kubuntu 6.10, on amd64 dual core.
> 
> The following messages are showed to me:
> 
> [ 56%] Built target IGSTK
> [ 57%] Building CXX object 
> Testing/CMakeFiles/igstkStateMachineExportTest.dir/igstkStateMachineExportTest.o 
> 
> /usr/include/zlib.h:82: error: redefinition of 'struct z_stream_s'
> /usr/include/InsightToolkit/Utilities/itkzlib/zlib.h:68: error: previous 
> definition of 'struct z_stream_s'
> /usr/include/zlib.h:101: error: invalid type in declaration before ';' 
> token
> /usr/include/zlib.h:101: error: conflicting declaration 'typedef int 
> z_stream'
> /usr/include/InsightToolkit/Utilities/itkzlib/zlib.h:87: error: 
> 'z_stream' has a previous declaration as 'typedef struct z_stream_s 
> z_stream'
> /usr/include/zlib.h:1114: error: declaration of C function 'int 
> itk_zlib_gzwrite(void*, const void*, unsigned int)' conflicts with
> /usr/include/InsightToolkit/Utilities/itkzlib/zlib.h:704: error: 
> previous declaration 'int itk_zlib_gzwrite(void*, void*, unsigned int)' 
> here
> /usr/include/zlib.h:1350: error: redefinition of 'struct internal_state'
> /usr/include/InsightToolkit/Utilities/itkzlib/zlib.h:882: error: 
> previous definition of 'struct internal_state'
> make[2]: *** 
> [Testing/CMakeFiles/igstkStateMachineExportTest.dir/igstkStateMachineExportTest.o] 
> Error 1
> make[1]: *** [Testing/CMakeFiles/igstkStateMachineExportTest.dir/all] 
> Error 2
> make: *** [all] Error 2
> 
> 
> Can anyone helps?
> 
> Thks in advance,
> 
> Wagner Sales
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> IGSTK-Users mailing list
> IGSTK-Users at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users



More information about the IGSTK-Users mailing list