[vtkusers] typedef redefinition during VTK compilation

matheus_viana vianamp at gmail.com
Thu Feb 4 06:27:56 EST 2016


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



--
View this message in context: http://vtk.1045678.n5.nabble.com/typedef-redefinition-during-VTK-compilation-tp5736352.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list