[vtkusers] Re: [Paraview] No native data type can represent...
Weiguang Guan
guanw at rhpcs.mcmaster.ca
Wed Sep 5 11:47:05 EDT 2007
Hello,
I am pretty sure that
CHECK_TYPE_SIZE(int CMAKE_SIZEOF_INT)
CHECK_TYPE_SIZE(long CMAKE_SIZEOF_LONG)
CHECK_TYPE_SIZE("void*" CMAKE_SIZEOF_VOID_P)
CHECK_TYPE_SIZE(char CMAKE_SIZEOF_CHAR)
CHECK_TYPE_SIZE(short CMAKE_SIZEOF_SHORT)
CHECK_TYPE_SIZE(float CMAKE_SIZEOF_FLOAT)
CHECK_TYPE_SIZE(double CMAKE_SIZEOF_DOUBLE)
in ParaView3/VTK/CMake/CMakeBackwardCompatibilityC.cmake failed on Linux
ws21 2.6.9-42.9hp.XCsmp #1 SMP Sun Mar 11 14:04:29 EDT 2007 x86_64 x86_64
x86_64 GNU/Linux. The compiler is gcc (GCC) 3.4.6 20060404 (Red Hat
3.4.6-8).
I am desperate for a help/hint/suggestion... Thank you in advance!
Weiguang
On Tue, 4 Sep 2007, Weiguang Guan wrote:
> 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.
> ......
>
>
More information about the vtkusers
mailing list