[Insight-developers] Error to compile ITK 3.8.0 on Cygwin platform

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Aug 1 17:40:11 EDT 2008


Thomas,

  Forget what Luis just said. cygwin is NOT supposed to use the uuid
lib which is a linux only library. Win box have another API via the
CreateUuid function call (found in rpcrt4 lib).

  I'll have to double check if the cygwin is indeed actually using the
Win32 API.

Thanks for report,
-Mathieu

On Fri, Aug 1, 2008 at 10:05 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Thomas,
>
>
> GDCM uses the UUID library in order to generate unique identifiers.
>
>
> CMake searches for the library at configuration time, and it if
> finds it, it enables its use in
>
>
>    Insight/Utilities/gdcm/CMakeLists.txt
>
>
> It would seem that in your Cygwin configuration you have an
> inconsistent combination of the UUID headers and libraries.
>
> You may want to try modifying the line 18 of the file
>
>    Insight/Utilities/gdcm/CMakeLists.txt
>
> to disable the use of UUID,
>
> or, verifying your Cygwin installation to make sure that
> you have a consistent combination of the UUID header and
> libraries.
>
>
>
>    Regards,
>
>
>
>        Luis
>
>
>
> -----------------------
> Thomas Feuvrier wrote:
>>
>> Hi,
>>
>> I'm trying to compile the new ITK version 3.8.0 on my cygwin platform, but
>> I have the following error :
>> :
>> :
>> [ 28%] Built target ITKDICOMParser
>> [ 29%] Built target itkvcl
>> [ 50%] Built target itkv3p_netlib
>> [ 51%] Built target itktestlib
>> [ 68%] Built target itkvnl
>> [ 74%] Built target itkvnl_algo
>> [ 77%] Built target itkgdcm
>> [ 78%] Built target itkvnl_inst
>> [ 85%] Built target ITKCommon
>> [ 88%] Built target ITKNumerics
>> [ 88%] Built target ITKBasicFilters
>> [ 90%] Built target ITKStatistics
>> [ 90%] Built target ITKAlgorithms
>> [ 90%] Built target ITKSpatialObject
>> [ 95%] Built target ITKIO
>> Linking CXX executable ../../bin/itkTestDriver.exe
>> ../../bin/libitkgdcm.a(gdcmUtil.o):gdcmUtil.cxx:(.text+0x211): undefined
>> reference to `_uuid_generate'
>> ../../bin/libitkgdcm.a(gdcmUtil.o):gdcmUtil.cxx:(.text+0x26dd): undefined
>> reference to `_uuid_generate'
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/itkTestDriver.exe] Error 1
>> make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
>> I use cmake 2.6.0 with gcc 3.4.4, and I selected "OFF" for cmake build
>> shared libs option and "Release" for cmake build type option.
>> On this platform, I have none problem to compile the 3.6.0 ITK version.
>>
>> Thank you for help me.
>>
>> Best regards,
>>
>> Thomas
>>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>



-- 
Mathieu


More information about the Insight-developers mailing list