[Insight-developers] itk/gdcm build errors on Fedora 12
Arnaud GELAS
arnaud_gelas at hms.harvard.edu
Thu Nov 19 13:51:48 EST 2009
Hi Guys,
I have just updated my machine to Fedora 12 (where gcc-4.4.2 is the
default version of gcc), and I get the following error:
Linking C static library ../../../bin/libitkNetlibSlatec.a
[ 38%] Built target itkNetlibSlatec
[ 38%] Building CXX object
Utilities/gdcm/src/CMakeFiles/itkgdcm.dir/gdcmUtil.o
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx:105:23:
error: uuid/uuid.h: No such file or directory
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx: In static
member function ‘static bool gdcm::Util::GenerateUUID(unsigned char*)’:
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx:1021: error:
‘uuid_t’ was not declared in this scope
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx:1021: error:
expected ‘;’ before ‘g’
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx:1022: error:
‘g’ was not declared in this scope
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx:1022: error:
‘uuid_generate’ was not declared in this scope
I checked the location of uuid.h, it is "now" in /usr/include (have not
checked the location before updating if it was
in /usr/include/uuid/uuid.h).
Anyway after fixing the path (on my machine), I get the following error:
[ 38%] Building CXX object
Utilities/gdcm/src/CMakeFiles/itkgdcm.dir/gdcmUtil.o
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx: In static
member function ‘static bool gdcm::Util::GenerateUUID(unsigned char*)’:
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx:1021: error:
aggregate ‘uuid_t g’ has incomplete type and cannot be defined
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx:1022: error:
‘uuid_generate’ was not declared in this scope
/home/ajg23/CVSROOT/Insight/Utilities/gdcm/src/gdcmUtil.cxx:1023: error:
invalid application of ‘sizeof’ to incomplete type ‘uuid_t’
make[2]: *** [Utilities/gdcm/src/CMakeFiles/itkgdcm.dir/gdcmUtil.o]
Error 1
make[1]: *** [Utilities/gdcm/src/CMakeFiles/itkgdcm.dir/all] Error 2
I can't find what's going on?
Any idea?
I attach uuid.h
Thanks
Arnaud
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uuid.h
Type: text/x-chdr
Size: 4383 bytes
Desc: not available
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20091119/3cb0dc86/attachment.h>
More information about the Insight-developers
mailing list