[Insight-users] RE: A CMake Error during configuring ITK
(CheckBigBitfield.c?) : Please dont use parenthesis in
directory names
Xiang, Hong
HXIANG at LROC.HARVARD.EDU
Thu Sep 14 19:12:13 EDT 2006
Thanks Luis. The directory name "C:/Program Files (x86)" came with the
machine which has an XP Pro. x64 pre-installed. The system won't allow
to change the name which might affect other programs to run(as prompted).
So I put the ITK directory away from the above directory, CMakes then
works straight from there.
Cheers,
Hong
-----Original Message-----
From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
Sent: Thu 9/14/2006 8:44 AM
To: Xiang, Hong
Cc: insight-users at itk.org
Subject: Re: [Insight-users] A CMake Error during configuring ITK
(CheckBigBitfield.c ?) : Please dont use parenthesis in directory names
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