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

Gao, Yi gaoyi.cn at gmail.com
Wed Dec 16 21:54:57 EST 2009


To follow up: I made it by compiling gdcm alone:

1. download gdcm-2.0.14.tar.bz2

2. build gdcm using ccmake and make (the CMAKE_PREFIX_PATH is
available, so gdcm can find uuid in /home/gaoyi/local/)

3. build itk, turn ITK_USE_SYSTEM_GDCM to ON

4. cmake will ask for dir of gdcm. point it to gdcm-bin (where the
out-source binary dir of gdcm)

5. make

itk build successfully.

So i'm still guessing the gdcm in itk source may possibly have some
include path problem.

Best,
yi

On Wed, Dec 16, 2009 at 8:25 PM, Gao, Yi <gaoyi.cn at gmail.com> wrote:
>
> 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



--
Yi Gao
Graduate Student
Dept. Biomedical Engineering
Georgia Institute of Technology


More information about the Insight-users mailing list