[Insight-users] A CMake Error during configuring
ITK (CheckBigBitfield.c
?) : Please dont use parenthesis in directory names
Luis Ibanez
luis.ibanez at kitware.com
Thu Sep 14 08:44:39 EDT 2006
Hi Xiang,
Do you have a directory name with parenthesis "(86)" symbols on it ?
C:/Program Files (x86)/InsightToolkit-2.8.1/CMake
^^^^^
That is probably what is disturbing CMake...
You may want to rename that directory to use a name without parenthesis.
CMake use ")" as terminators of expressions, so the parenthesis in your
directory break its syntax.
Using special symbols in directory and file names is a very unwise
practice...
Regards,
Luis
------------------
Xiang, Hong wrote:
> 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})
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list