[ITK-users] cmake build error

D'Isidoro Fabio fisidoro at ethz.ch
Mon Oct 31 14:41:56 EDT 2016


Thanks, I did it but I got the same kind of error. What else could I try?


-----Original Message-----
From: Matt McCormick [mailto:matt.mccormick at kitware.com] 
Sent: Montag, 31. Oktober 2016 19:19
To: D'Isidoro Fabio
Cc: insight-users at itk.org
Subject: Re: [ITK-users] cmake build error

Hi Fabio,

If the command line CMake executable is used, as opposed to the GUI, the command must be executed from a Visual Studio Command Prompt, which adjusts the PATH environmental variable to expose the compiler.

HTH,
Matt

On Mon, Oct 31, 2016 at 2:08 PM, D'Isidoro  Fabio <fisidoro at ethz.ch> wrote:
> Hallo,
>
>
>
> I downloaded ITK V4.10 and trying to build it with Cmake V3.6.2 on 
> Windows
> 10 with Visual Studio 2015. As “current generator” I tried both 
> “Visual Studio 14 2015” and “Visual Studio 14 2015 Win64” but I 
> immediately get errors with cmake when configuring. Errors are:
>
>
>
> The C compiler identification is unknown
>
> CMake Error at CMakeLists.txt:18 (enable_language):
>
>   No CMAKE_C_COMPILER could be found.
>
>
>
>
>
> Compiling the C compiler identification source file "CMakeCCompilerId.c"
> failed.
>
> Compiler:
>
> Build flags:
>
> Id flags:
>
>
>
> The output was:
>
> 1
>
> Microsoft (R) Build Engine version 14.0.25420.1
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
>
>
> Build started 31.10.2016 18:53:27.
>
> Project "C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj"
> on node 1 (default targets).
>
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5):
> error MSB8036: The Windows SDK version 8.1 was not found. Install the 
> required version of Windows SDK or change the SDK version in the 
> project property pages or by right-clicking the solution and selecting 
> "Retarget solution".
> [C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj]
>
> Done Building Project
> "C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj" 
> (default
> targets) -- FAILED.
>
>
>
> Build FAILED.
>
>
>
> "C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj" 
> (default
> target) (1) ->
>
> (Desktop_PlatformPrepareForBuild target) ->
>
>   C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5):
> error MSB8036: The Windows SDK version 8.1 was not found. Install the 
> required version of Windows SDK or change the SDK version in the 
> project property pages or by right-clicking the solution and selecting 
> "Retarget solution".
> [C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj]
>
>
>
>     0 Warning(s)
>
>     1 Error(s)
>
>
>
> Time Elapsed 00:00:00.48
>
>
>
>
>
> Compiling the C compiler identification source file "CMakeCCompilerId.c"
> failed.
>
> Compiler:
>
> Build flags:
>
> Id flags:
>
>
>
> The output was:
>
> 1
>
> Microsoft (R) Build Engine version 14.0.25420.1
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
>
>
> Build started 31.10.2016 18:58:27.
>
> Project "C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj"
> on node 1 (default targets).
>
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5):
> error MSB8036: The Windows SDK version 8.1 was not found. Install the 
> required version of Windows SDK or change the SDK version in the 
> project property pages or by right-clicking the solution and selecting 
> "Retarget solution".
> [C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj]
>
> Done Building Project
> "C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj" 
> (default
> targets) -- FAILED.
>
>
>
> Build FAILED.
>
>
>
> "C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj" 
> (default
> target) (1) ->
>
> (Desktop_PlatformPrepareForBuild target) ->
>
>   C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5):
> error MSB8036: The Windows SDK version 8.1 was not found. Install the 
> required version of Windows SDK or change the SDK version in the 
> project property pages or by right-clicking the solution and selecting 
> "Retarget solution".
> [C:\ITK_build_410\CMakeFiles\3.6.2\CompilerIdC\CompilerIdC.vcxproj]
>
>
>
>     0 Warning(s)
>
>     1 Error(s)
>
>
>
>
>
> What can I do to solve the problem?
>
>
>
> Thank you
>
>
> _____________________________________
> 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://public.kitware.com/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list