|Message: Re: CMake problems installing to Windows||Not Logged In (login)|
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
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)?