[Insight-users] ITK build error

Jagjeet Nain jagjeet.nain at gmail.com
Mon Mar 12 03:49:34 EDT 2012


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/20120312/a30598d6/attachment.htm>


More information about the Insight-users mailing list