Message: Re: CMake problems installing to Windows Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: CMake problems installing to Windows  

Forum: Installation and Configuration
Re: None CMake problems installing to Windows (Christopher Walker)
Date: 01 Apr, 2016
From: Ben Morgan <Ben Morgan>

On Fri, 01 Apr 2016 14:12:14 GMT, Christopher Walker wrote:
> Hello, First of all some details:
> 
> OS: Microsoft Windows 7
> 
> CMake version: 3.5.1
> 
> Geant4 version: 10.02.p01
> 
> Compiler: MS Visual Studio 11 (2012)
> 
> I have compiled Geant4 before on Windows, but I seem to having problems
> now at the CMake stage.
> 
> I thought I was having problems with XercesC, so I have installed the
> latest version. However, it doesn't seem to be complaining about that
> anymore.
> 
> The CMake output is below. I should say that I also tried compiling with
> Visual Studio 2015, but that also failed. I note that at the end of the
> CMakeError.log file it says it cannot open the unistd.h include file.
> 
> Thanks
> 
> Chris
> 
> The C compiler identification is MSVC 17.0.61030.0
> The CXX compiler identification is MSVC 17.0.61030.0
> Check for working C compiler using: Visual Studio 11 2012
> Check for working C compiler using: Visual Studio 11 2012 -- works
> Detecting C compiler ABI info
> Detecting C compiler ABI info - done
> Check for working CXX compiler using: Visual Studio 11 2012
> Check for working CXX compiler using: Visual Studio 11 2012 -- works
> Detecting CXX compiler ABI info
> Detecting CXX compiler ABI info - done
> Detecting CXX compile features
> Detecting CXX compile features - done
> CMake Error at cmake/Modules/Geant4MacroLibraryTargets.cmake:69 (target_compile_features):
>   The compiler feature "cxx_alias_templates" is not known to CXX compiler
> 
>   "MSVC"
> 
>   version 17.0.61030.0.

As documented in the Installation Guide, version 10.2 requires a compiler with sufficient support for the C++11 Standard. Visual Studio 11 (MSVC 17) is too old to provide the required support, so VS 12 (MSVC 18) or better VS 14 (MSVC 19) must be used.

What error did you see with VS 14(2015)?

 Add Message Add Message
to: "Re: CMake problems installing to Windows "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]