0

Ich kompiliere die Doxygen auf Fenster aus den Quellen und ich habe diesen Link verfolgt ->https://www.stack.nl/~dimitri/doxygen/manual/install.html#install_src_windows. Ich habe die notwendigen Voraussetzungen für die Installation getan, aber ich bekomme diese Fehlermeldung im Stammordner, wann immer ich diesen Befehl ausführen: cmake -G „Visual Studio 12 2013“Kompilieren von Doxygen aus Quellen unter Windows

enter image description here Ist es für den Compiler sucht Aber basicclr .exe ist schon da

Inhalt von CmakeError.log:

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

The output was: 
1 
Microsoft (R) Build Engine version 4.0.30319.17929 
[Microsoft .NET Framework, version 4.0.30319.18063] 
Copyright (C) Microsoft Corporation. All rights reserved. 

Build started 7/5/2016 9:53:56 AM. 
Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets). 
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj(18,3): error MSB4019: The imported project "C:\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 "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED. 

Build FAILED. 

"C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) -> 
    C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj(18,3): error MSB4019: The imported project "C:\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.06 


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. 
Compiler: 
Build flags: 
Id flags: 

The output was: 
1 
Microsoft (R) Build Engine version 4.0.30319.17929 
[Microsoft .NET Framework, version 4.0.30319.18063] 
Copyright (C) Microsoft Corporation. All rights reserved. 

Build started 7/5/2016 9:53:56 AM. 
Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets). 
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\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 "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED. 

Build FAILED. 

"C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) -> 
    C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\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.05 


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

The output was: 
1 
Microsoft (R) Build Engine version 4.0.30319.17929 
[Microsoft .NET Framework, version 4.0.30319.18063] 
Copyright (C) Microsoft Corporation. All rights reserved. 

Build started 7/5/2016 9:54:53 AM. 
Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets). 
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj(18,3): error MSB4019: The imported project "C:\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 "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED. 

Build FAILED. 

"C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) -> 
    C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj(18,3): error MSB4019: The imported project "C:\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.04 


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. 
Compiler: 
Build flags: 
Id flags: 

The output was: 
1 
Microsoft (R) Build Engine version 4.0.30319.17929 
[Microsoft .NET Framework, version 4.0.30319.18063] 
Copyright (C) Microsoft Corporation. All rights reserved. 

Build started 7/5/2016 9:54:54 AM. 
Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets). 
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\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 "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED. 

Build FAILED. 

"C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) -> 
    C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\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.04 

Und CMakeOutput.log ist:

The system is: Windows - 6.1.7601 - AMD64 
+0

CMake kann die angeforderte Visual Studio-Version auf Ihrem Computer nicht erkennen. Dies ist ein eindeutiges Anzeichen dafür, dass Sie Visual Studio entweder nicht korrekt installiert haben oder Ihre Installation nachträglich beschädigt wurde. Versuchen Sie die "Reparieren" Option von Visual Studio-Installer und sehen, ob das das Problem löst. Beachten Sie außerdem, dass Visual Studio ohne C++ - Sprachunterstützung installiert werden kann. Stellen Sie sicher, dass Sie alle erforderlichen Komponenten installiert haben, die zum Kompilieren von systemeigenen Win32-C++ - Anwendungen benötigt werden. – ComicSansMS

+0

Gibt es einen anderen Test, um dies zu erkennen? Ich habe viele erfolgreiche Anwendungen entwickelt (derzeit in der Fertigung verwendet) mit dem gleichen VS. Vielleicht gibt es einige Pfadeinstellungen, um dies zu tun? Können Sie dies mit einigen Testbeispielen replizieren? – Raulp

+0

CMake arbeitet aus der Box mit einem frischen, korrekt installierten VS. Wenn es nicht für Sie funktioniert, bedeutet dies, dass etwas mit der Installation von CMake oder VS nicht stimmt. Es ist sehr mühsam für uns beide, zu bestimmen, was das über StackOverflow ist. Ich habe bereits einige Hinweise gegeben, wie ich die (meiner Erfahrung nach) häufigsten Ursachen für dieses Problem beheben kann. – ComicSansMS

Antwort

0

Haben Sie die Visual Studio-Eingabeaufforderung im Menü Extras in Visual Studio verwendet? Ein einfaches Befehlsfenster funktioniert nicht.

+0

Ich habe Visual Studio-Eingabeaufforderung verwendet! – Raulp

+0

Haben Sie versucht, eine Out-of-Tree-Build mit 'mkdir build; CD bauen; cmake -G "Visual Studio 12 2013" ..'. –