[IGSTK-Users] Error compiling the current cvs version on linux

Yair Yarom irush at cs.huji.ac.il
Sun Jan 14 05:42:24 EST 2007


Hi,

I have several compilation errors for the cvs version on linux (debian):

1. In the CMakeLists.txt, the "high" ports numbering is wrong (no port 4 and
extra port 8), at around line 161, instead of:
   SET(IGSTK_SERIAL_PORT_5 "/dev/ttyS4" CACHE STRING
   SET(IGSTK_SERIAL_PORT_6 "/dev/ttyS5" CACHE STRING
   SET(IGSTK_SERIAL_PORT_7 "/dev/ttyS6" CACHE STRING
   SET(IGSTK_SERIAL_PORT_8 "/dev/ttyS7" CACHE STRING

it should be (I think):
   SET(IGSTK_SERIAL_PORT_4 "/dev/ttyS4" CACHE STRING
   SET(IGSTK_SERIAL_PORT_5 "/dev/ttyS5" CACHE STRING
   SET(IGSTK_SERIAL_PORT_6 "/dev/ttyS6" CACHE STRING
   SET(IGSTK_SERIAL_PORT_7 "/dev/ttyS7" CACHE STRING


2. In igstkToolCalibrationReader.txx, there is no "zlib/zlib.h" to include,
there is only "zlib.h". But this fix possibly causes error 3:


3. When building with testing, I get the error:

[ 46%] Built target IGSTK
[ 46%] Building CXX object Testing/CMakeFiles/igstkStateMachineExportTest.dir/igstkStateMachineExportTest.o
/usr/include/zlib.h:82: error: redefinition of ‘struct z_stream_s’
/usr/local/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/local/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/local/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/local/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


Without the testings, it builds fine.


Thanks,
    Yair.




More information about the IGSTK-Users mailing list