[Insight-users] uuid.h not found in compiling gdcm

Gao, Yi gaoyi.cn at gmail.com
Wed Dec 16 20:25:26 EST 2009


Hi All,

I'm building ITK on a machine which does not have uuid, nor do I have root.

So I download the e2fsprogs 1.41.9, and build it as:
./configure --prefix=/home/gaoyi/usr/local
make
make install-lib

Then I can see the header: /home/gaoyi/usr/local/include/uuid/uuid.h
and the lib: /home/gaoyi/usr/local/lib/libuuid.a

Then I set the env:
export CMAKE_PREFIX_PATH=/home/gaoyi/usr/local

Then in itk-bin I did:
ccmake ../InsightToolkit-3.16.0

And it won't complain about uuid (before, it did)

So I do make

But got error like this:
/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:105:23:
error: uuid/uuid.h: No such file or directory
/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:
In static member function ‘static bool
gdcm::Util::GenerateUUID(unsigned char*)’:
/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1021:
error: ‘uuid_t’ was not declared in this scope
/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1021:
error: expected `;' before ‘g’
/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1022:
error: ‘g’ was not declared in this scope
/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1022:
error: ‘uuid_generate’ was not declared in this scope


I'm wondering if the path is correctly passed to gdcm?

Thanks for any hint!


Best,
yi


More information about the Insight-users mailing list