[Qgis-developer] Building QGIS in Visual Studio Failed

Umrahi Azghar.Hussain at rmsi.com
Thu Jun 25 05:50:23 PDT 2015


Hi,

Please help me.
I am trying to build QGIS in Visual Studio 2012 64 bit using CMAKE. I am
getting following error.

The C compiler identification is unknown
The CXX compiler identification is unknown
Check for working C compiler using: Visual Studio 12 2013 Win64
Check for working C compiler using: Visual Studio 12 2013 Win64 -- broken
CMake Error at C:/Program Files
(x86)/CMake/share/cmake-3.3/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
  program.

  It fails with the following output:

   Change Dir: D:/QGIS/build/CMakeFiles/CMakeTmp
  Run Build Command:"MSBuild.exe" "cmTC_94742.vcxproj"
  "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0"

  Microsoft (R) Build Engine version 4.0.30319.33440

  [Microsoft .NET Framework, version 4.0.30319.34014]

  Copyright (C) Microsoft Corporation.  All rights reserved.

  Build started 6/25/2015 3:01:07 PM.

 Project "D:\QGIS\build\CMakeFiles\CMakeTmp\cmTC_94742.vcxproj" on node 1
  (default targets).


  D:\QGIS\build\CMakeFiles\CMakeTmp\cmTC_94742.vcxproj(27,3): error MSB4019:
  The imported project "D:\Microsoft.Cpp.Default.props" was not found.
  Confirm that the path in the <Import> declaration is correct, and that the
  file exists on disk.


  Done Building Project
  "D:\QGIS\build\CMakeFiles\CMakeTmp\cmTC_94742.vcxproj" (default targets)
--
  FAILED.


  


  Build FAILED.


  


  "D:\QGIS\build\CMakeFiles\CMakeTmp\cmTC_94742.vcxproj" (default target)
(1)
  ->


    D:\QGIS\build\CMakeFiles\CMakeTmp\cmTC_94742.vcxproj(27,3): error
MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not
found. Confirm that the path in the <Import> declaration is correct, and
that the file exists on disk.


  


      0 Warning(s)

      1 Error(s)


  


  Time Elapsed 00:00:00.60


  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:10 (PROJECT)

------------------------------------------------------------------
What I understood from above error is that CMAKE is not able to find
cmTC_94742.vcxproj file in the \build\CMakeFiles\CMakeTmp\ directory. 
I also searched QGIS code on GitHub. I found that there is no 
cmTC_94742.vcxproj in QGIS source code inside Github.


Please help in resolving this issue.

Thanks,
Azghar



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Building-QGIS-in-Visual-Studio-Failed-tp5212940.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list