[Insight-users] ITK build error

Lisa Dean lisadean.leo at gmail.com
Mon Mar 19 06:34:32 EDT 2012


Hi Kent,


I tried everything that you suggested. VS, ITK, both have been removed and
reinstalled and yet the problem persists. I was led to believe that my
CMake got corrupted so I tried removing and reinstalling that too at which
time I discovered I had had 2 different versions of CMake installed at the
same time and though I removed those as well, I've had no success with my
original problem.


Thanks a lot for your help anyways
Lisa

On 12 March 2012 20:17, Kent Ogden <ogdenk at upstate.edu> wrote:

>  Lisa,
>
>  You can use 32 bit ITK on 64 bit Windows.  Somehow I misread the error
> message and saw VS 2008 instead of 2005, if you are not using an express
> version, you might want to check your install to see if the x64 compiler
> tools are installed, I don't think they do by default.  I think you have to
> do a custom install of VS  (not the 'typical' install) to be able to set
> this option.  I have never had good luck trying to compile ITK in 64 bit
> mode anyways, I use a 32 bit build on Win 7 64, it works just fine.
>
>  Kent
>
>
>
>
> >>> Lisa Dean <lisadean.leo at gmail.com> 3/12/2012 05:47 AM >>>
> Hi,
>
>
>
>   No, I'm my windows is 64 bit, so I compiled ITK in 64bit mode. I guess
> I'll try out 32 bit too.
>
>
>
>   Thanks
>
> Lisa
>
>
>
>
>   On 12 March 2012 13:19, Jagjeet Nain <jagjeet.nain at gmail.com> wrote:
>
>>  hi,
>> Was your previous ITK compiled for 32 bit???
>> Try compiling new ITK in 32 bit mode. you need to select Visual Studio 8
>> 2005 Win32 bit compiler(in first step of Cmake) for that.
>> Hope that helps..
>> with regards
>> Jagjeet
>>
>>    On Mon, Mar 12, 2012 at 4:09 AM, Lisa Dean <lisadean.leo at gmail.com>
>>  wrote:
>>
>>>   Hi,
>>>
>>>
>>>
>>>   I use Visual Studio 2005. I used the same when I last built ITK. This
>>> problem happened when I removed the previous version of ITK that I had and
>>> tried to build the binaries of the newer version with the same version of
>>> VS.
>>>
>>>
>>> Thanks
>>>
>>> Lisa
>>>
>>>
>>>
>>>   On 10 March 2012 17:02, Kent Ogden <ogdenk at upstate.edu> wrote:
>>>
>>>>   Do you have the express version of VS 2008? I don't think the x64
>>>> compiler tools are included with the express version. If I recall, you may
>>>> also need to download the Windows SDK to get the x64 components.
>>>>
>>>>
>>>>   Kent
>>>>
>>>>
>>>>
>>>> Sent from my iPad
>>>>
>>>>
>>>> On Mar 9, 2012, at 11:39 PM, "Lisa Dean <lisadean.leo at gmail.com>" <
>>>> lisadean.leo at gmail.com> wrote:
>>>>
>>>>
>>>>
>>>>   Hi,
>>>>
>>>>
>>>>
>>>>   I experience a problem while generating the ITK binaries using
>>>> CMake. Could anyone please tell me the reason and how to rectify it? I have
>>>> used an earlier version of ITK and never experienced this error while
>>>> generating the binaries before.�
>>>>
>>>>
>>>>   The error I get is as follows
>>>>
>>>>
>>>>
>>>>   ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>>
>>>> Check for working C compiler using: Visual Studio 8 2005 Win64
>>>>
>>>> Check for working C compiler using: Visual Studio 8 2005 Win64 --
>>>> broken
>>>>
>>>> CMake Error at
>>>> D:/ITK_FILES/cmake-2.8.4-win32-x86/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
>>>> (MESSAGE):
>>>>
>>>> The C compiler "cl" is not able to compile a simple test program.
>>>>
>>>>  It fails with the following output:
>>>>
>>>>  Change Dir: D:/ITK/Bin/CMakeFiles/CMakeTmp
>>>>
>>>>
>>>>
>>>>  Run Build Command:C:\PROGRA~2\MICROS~1\Common7\IDE\devenv.com
>>>>
>>>> CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
>>>>
>>>>
>>>>
>>>>  Microsoft (R) Visual Studio Version 8.0.50727.42.
>>>>
>>>>  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
>>>>
>>>>  ------ Build started: Project: cmTryCompileExec, Configuration: Debug
>>>> x64
>>>>
>>>> ------
>>>>
>>>>  Compiling...
>>>>
>>>>  Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.42 for x64
>>>>
>>>>  Copyright (C) Microsoft Corporation. All rights reserved.
>>>>
>>>>  cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D
>>>> "CMAKE_INTDIR=\"Debug\"" /D
>>>>
>>>> "_MBCS" /FD /RTCs /MDd /Fo"cmTryCompileExec.dir\Debug\\"
>>>>
>>>> /Fd"D:\ITK\Bin\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.pdb" /W3 /c
>>>> /Zi
>>>>
>>>> /TC /Zm1000
>>>>
>>>>  .\testCCompiler.c
>>>>
>>>>  testCCompiler.c
>>>>
>>>>  Compiling manifest to resources...
>>>>
>>>>  Linking...
>>>>
>>>>  Embedding manifest...
>>>>
>>>>  Project : error PRJ0003 : Error spawning 'cmd.exe'.
>>>>
>>>>  Build log was saved at
>>>>
>>>>
>>>> "file://d:\ITK\Bin\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"
>>>>
>>>>
>>>>  cmTryCompileExec - 1 error(s), 0 warning(s)
>>>>
>>>>  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
>>>>
>>>> ==========
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>  CMake will not be able to correctly generate this project.
>>>>
>>>> Call Stack (most recent call first):
>>>>
>>>> CMakeLists.txt:8 (PROJECT)
>>>>
>>>>
>>>>  Configuring incomplete, errors occurred!
>>>>
>>>> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>  Thanks a lot
>>>>
>>>> Lisa
>>>>
>>>>    <Part.002>
>>>>
>>>>
>>>
>>>   _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120319/ca9e0e22/attachment.htm>


More information about the Insight-users mailing list