[Paraview] No native data type can represent...

Weiguang Guan guanw at rhpcs.mcmaster.ca
Tue Sep 4 17:53:14 EDT 2007


I got the following errors when trying to build Paraview 3.1 with cmake 
2.4.

/home/guanw/visualization/software/src/ParaView3/VTK/Common/vtkType.h:154:3: 
#error "No native data type can represent an 8-bit integer."
/home/guanw/visualization/software/src/ParaView3/VTK/Common/vtkType.h:169:3: 
#error "No native data type can represent a 16-bit integer."
/home/guanw/visualization/software/src/ParaView3/VTK/Common/vtkType.h:184:3: 
#error "No native data type can represent a 32-bit integer."
/home/guanw/visualization/software/src/ParaView3/VTK/Common/vtkType.h:204:3: 
#error "No native data type can represent a 64-bit integer."
/home/guanw/visualization/software/src/ParaView3/VTK/Common/vtkType.h:212:3: 
#error "No native data type can represent a 32-bit floating point value."

Considering just the second error, I find that 
ParaView3/VTK/CMakeLists.txt:SET(VTK_SIZEOF_SHORT ${CMAKE_SIZEOF_SHORT}). 
And CMAKE_SIZEOF_SHORT should be set by CHECK_TYPE_SIZE(short 
CMAKE_SIZEOF_SHORT) in 
ParaView3/VTK/CMake/CMakeBackwardCompatibilityC.cmake, but it didn't do 
so. Below is a section in my CMakeCache.txt. Can you tell me what is 
wrong?

.......
//
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Result of TRY_RUN
CMAKE_SIZEOF_CHAR:INTERNAL=127
//Result of TRY_RUN
CMAKE_SIZEOF_DOUBLE:INTERNAL=127
//Result of TRY_RUN
CMAKE_SIZEOF_FLOAT:INTERNAL=127
//Result of TRY_RUN
CMAKE_SIZEOF_INT:INTERNAL=127
//Result of TRY_RUN
CMAKE_SIZEOF_LONG:INTERNAL=127
//Result of TRY_RUN
CMAKE_SIZEOF_SHORT:INTERNAL=127
//Result of TRY_RUN
CMAKE_SIZEOF_VOID_P:INTERNAL=127
//Whether to build with rpath.
......

-- 
========================================================
Weiguang Guan, Research Engineer
RHPCS, McMaster University
========================================================


More information about the ParaView mailing list