[Qgis-developer] Building QGIS with Visual Studio Express 12

Robin Schwab contact at robinschwab.ch
Tue Apr 22 02:34:18 PDT 2014


Hi everyone
I am a curious user so I tried to build QGIS myself using Visual Studio 
Express 2013 on Windows 8.1

This how-to [1] is well written but outdated. I fail when running 
cmake-gui trying to build a project. I get the following CMakeError.log:

Compiling the C compiler identification source file "CMakeCCompilerId.c" 
failed.
Compiler:
Build flags:
Id flags:

The output was:
1
Microsoft (R)-Buildmodul, Version 12.0.21005.1
[Microsoft .NET Framework, Version 4.0.30319.34011]
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Der Buildvorgang wurde am 22.04.2014 08:47:42 gestartet.
Projekt 
"E:\QGISbuild\CMakeFiles\2.8.12.2\CompilerIdC\CompilerIdC.vcxproj" auf 
Knoten "1" (Standardziele).
PrepareForBuild:
   Das Verzeichnis "Debug\" wird erstellt.
   Das Verzeichnis "Debug\CompilerIdC.tlog\" wird erstellt.
InitializeBuildStatus:
   "Debug\CompilerIdC.tlog\unsuccessfulbuild" wird erstellt, da 
"AlwaysCreate" angegeben wurde.
ClCompile:
   C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c 
/nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise 
/Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TC 
/analyze- /errorReport:queue CMakeCCompilerId.c
   CMakeCCompilerId.c
Link:
   C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe 
/ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO 
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib 
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
/MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" 
/manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 
/DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X86 /SAFESEH 
Debug\CMakeCCompilerId.obj
LINK : fatal error LNK1181: Eingabedatei "gdi32.lib" kann nicht geöffnet 
werden. [E:\QGISbuild\CMakeFiles\2.8.12.2\CompilerIdC\CompilerIdC.vcxproj]
Die Erstellung des Projekts 
"E:\QGISbuild\CMakeFiles\2.8.12.2\CompilerIdC\CompilerIdC.vcxproj" ist 
abgeschlossen (Standardziele) -- FEHLER.

It seems almost all the paths have changed since 2003. How do I assign 
the paths so all the libraries are found? How do you build the official 
binaries?

I tried adjusting the lib variable or renaming it to libpath or 
assigning CMAKE_LIBRARY_PATH in cmake-gui or using nightly cmake 3.0 but 
nothing helped.

Sincerly

Robin

[1] https://raw.github.com/qgis/QGIS/master/INSTALL


More information about the Qgis-developer mailing list