Hi all We're trying to build an application using ITK on Windows using Visual Studio Express 2013 (downloads of all software happened last week, so I guess we're up-to-date). Unfortunately, we get a lot of configuration errors (see full list below), implying that CMake 2.8.12.2 has problems with this compiler. The first one is like this:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:311 (file): file STRINGS file "C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/2.8.12.2/Com pilerIdC/CompilerIdC.exe" cannot be read. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) We first thought that we could get through this, as when pressing the Configure button again, those warnings disappear, and we can generate the project files, and VSE2013 loads them without problem, and indeed even can compile. However, we do get a lot of errors building ITK. On closer inspection, the compiler flags are not set properly (for instance, exception handling is not enabled). Indeed, checking the CMake Advanced variables, all compiler flags are just empty. I did a tiny bit more of investigation to check if I can find the CompilerIdC.exe files mentioned above. It isn't there. I do find a CompilerIdC directory with projects files, a Debug directory with some stuff, but no executable. (Sorry to be so vague, but this is all happening on a student's computer to which I have no access to show you more detail). Anything we can do? Thanks Kris ------------------- Full error log CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:311 (file): file STRINGS file "C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/2.8.12.2/Com pilerIdC/CompilerIdC.exe" cannot be read. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:340 (file): file Internal CMake error when trying to open file: C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/2.8.12.2/Comp ilerIdC/CompilerIdC.exe for reading. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:341 (string): string end index: 1 is out of range -1 - 0 Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:342 (string): string begin index: 1 is out of range 0 - 0 Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:350 (math): math cannot parse the expression: " * 16 + ": syntax error, unexpected exp_TIMES, expecting exp_OPENPARENT or exp_NUMBER (2) Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:352 (file): file Internal CMake error when trying to open file: C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/2.8.12.2/Comp ilerIdC/CompilerIdC.exe for reading. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:390 (file): file Internal CMake error when trying to open file: C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/2.8.12.2/Comp ilerIdC/CompilerIdC.exe for reading. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) The C compiler identification is unknown CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:311 (file): file STRINGS file "C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/2.8.12.2/Com pilerIdCXX/CompilerIdCXX.exe" cannot be read. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:340 (file): file Internal CMake error when trying to open file: C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/2.8.12.2/Comp ilerIdCXX/CompilerIdCXX.exe for reading. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:341 (string): string end index: 1 is out of range -1 - 0 Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:342 (string): string begin index: 1 is out of range 0 - 0 Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:350 (math): math cannot parse the expression: " * 16 + ": syntax error, unexpected exp_TIMES, expecting exp_OPENPARENT or exp_NUMBER (2) Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:352 (file): file Internal CMake error when trying to open file: C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/2.8.12.2/Comp ilerIdCXX/CompilerIdCXX.exe for reading. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:41 (CMAKE_DETERMINE_COMPILER_ID_CHECK) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (PROJECT) The CXX compiler identification is unknown Check for working C compiler using: Visual Studio 12 Check for working C compiler using: Visual Studio 12 -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working CXX compiler using: Visual Studio 12 Check for working CXX compiler using: Visual Studio 12 -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Configuring incomplete, errors occurred! See also "C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/CMakeOutput. log". See also "C:/Users/Sarah/Documents/Elective/PETPVC-master/bin/CMakeFiles/CMakeError.l og". -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake