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

Luis Ibanez luis.ibanez at kitware.com
Mon Jan 15 10:04:59 EST 2007



Hi Yair,

1) Thanks for pointing out the shift on the
    numbering of serial port symbols.

    This has been entered as bug:

http://public.kitware.com/Bug/bug.php?op=show&bugid=4314&pos=0

    and a fix for the CMakeLists.txt file has been
    committed in CVS:

http://public.kitware.com/cgi-bin/viewcvs.cgi/CMakeLists.txt?root=IGSTK&r1=1.23&r2=1.24



2) You seem to be using an old version of IGSTK.
    The Include for "zlib/zlib.h" was added to
    the igstkToolCallibrationReader.txx on June 7th
    2006.

http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/igstkToolCalibrationReader.txx?annotate=1.3&root=IGSTK


Please use an updated version of IGSTK.


Please let us know if you find any other problems,



  Regards,


    Luis



---------------------------
Yair Yarom wrote:
> 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.
> 
> _______________________________________________
> 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