[Insight-users] A CMake Error during configuring ITK (CheckBigBitfield.c ?)

Xiang, Hong HXIANG at LROC.HARVARD.EDU
Wed Sep 13 12:09:45 EDT 2006


Hello ITK users,

In installing and configuring ITK to a new machine [Windows XP, Pro. x64(WOW)],
we saw
a CMake error as shown below. It seems to do with a CMake file:
CheckBigBitfield.c Any 
clue for a fix would be very helpful.

Thanks in advance,
Hong

P.S. 

We did not see this error while configuring VTK, and FLTK etc. The error
appeared during 
configuring from CMake as "Checking to see if this platform supports large
bit-fields(>32)", 
and reads 

"CMake Error: Error in cmake code at
C:/Program Files
(x86)/InsightToolkit-281-Binary/CMakeFiles/CMakeTmp/CMakeLists.txt:1:
Parse error. Function missing ending ")". Instead found left paren with text
"(".
 
Below I pasted the above CMakeLists.txt file, which seems to be ok.

SET(CMAKE_MODULE_PATH C:/Program Files (x86)/InsightToolkit-2.8.1/CMake)
PROJECT(CMAKE_TRY_COMPILE C)
SET(CMAKE_VERBOSE_MAKEFILE 1)
SET(CMAKE_C_FLAGS "  /DWIN32 /D_WINDOWS /W3 /Zm1000  ${COMPILE_DEFINITIONS}")
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})
LINK_DIRECTORIES(${LINK_DIRECTORIES})
ADD_EXECUTABLE(cmTryCompileExec "C:/Program Files
(x86)/InsightToolkit-2.8.1/CMake/CheckBigBitfield.c")
TARGET_LINK_LIBRARIES(cmTryCompileExec ${LINK_LIBRARIES})  


More information about the Insight-users mailing list