[vtkusers] typedef redefinition during VTK compilation

David Gobbi david.gobbi at gmail.com
Thu Feb 4 17:58:03 EST 2016


Hi Matheus,

Seems like a strange error, I don't recall anything like this ever showing
up on the testing dashboards.

If you add this line to your CMakeCache.txt, it might fix the problem:

H5_SIZEOF_INT64_T:INTERNAL=8

 - David


On Thu, Feb 4, 2016 at 4:27 AM, matheus_viana <vianamp at gmail.com> wrote:

> Hi guys, I am trying to compile VTK 6.3 with non-shared libraries on OSX
> 10.10 but I got the error messages below. Does anyone know how to go around
> that?
>
> ...
> [ 68%] Built target vtkGeovisCore
> Scanning dependencies of target H5detect
> [ 68%] Building C object
> ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o
> In file included from
> /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:57:
> In file included from
> /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5private.h:37:
> /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5public.h:259:18:
> error:
>       typedef redefinition with different types ('long' vs 'long long')
>     typedef long int64_t;
>                  ^
>
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_types/_int64_t.h:30:20:
> note:
>       previous definition is here
> typedef long long               int64_t;
>                                 ^
> In file included from
> /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:57:
> In file included from
> /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5private.h:37:
> /usr/local/sources/VTK-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5public.h:279:27:
> error:
>       typedef redefinition with different types ('unsigned long' vs
> 'unsigned long long')
>     typedef unsigned long uint64_t;
>                           ^
>
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/_types/_uint64_t.h:31:28:
> note:
>       previous definition is here
> typedef unsigned long long uint64_t;
>                            ^
> 2 errors generated.
> make[2]: ***
> [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o] Error 1
> make[1]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/all]
> Error
> 2
> make: *** [all] Error 2
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160204/69f3efbf/attachment.html>


More information about the vtkusers mailing list