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

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Aug 1 17:45:12 EDT 2008


Thomas,

  The code in gdcmUtil.cxx is:

#if _WIN32
#define HAVE_UUIDCREATE
#else
#ifdef GDCM_SYSTEM_UUID_FOUND
#define HAVE_UUID_GENERATE
#include "uuid/uuid.h"
#endif
#endif

  Does this means _WIN32 is not defined on cygwin ?
  Anyway try something like:

#if defined(_WIN32) || defined(__CYGWIN__)

Thanks
-Mathieu

On Fri, Aug 1, 2008 at 6:46 PM, Thomas Feuvrier
<thomas.feuvrier at c-s.cnes.fr> 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
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Thomas FEUVRIER - Ingénieur d'études et développement CS Systèmes
> d'Information - Division ESPACE
> Département Information Géographique & Image
> Téléphones : +33 561 17 65 16 / FAX : +33 561 34 84 15
> Email: thomas.feuvrier at c-s.fr
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> 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