Bonjour,
Récemment, je suis passé à CMake pour un projet, histoire de facilité le développement (ui est "étalé" sur plusieurs machines). Je rencontre cependant un problème majeur avec Visual Studio 9: lorsque CMake tente de compiler un fichier test (TryCompile) pour voir si le compilateur marche bien, devenv.com plante (erreur COM). Je suis sous Windows XP, avec Visual Studio 2008 SP1.
L'erreur:
J'ai essayé d'utiliser --debug-trycompile, et en compilant manuellement la solution (pas en ligne de commande), tout marche bien. Par contre, CMake ou pas CMake, j'ai le même crash en utilisant devenv.com en ligne de commande (je précise que j'utilise le prompt Visual Studio).Error: Error occured while executing build version increment.
System.Runtime.InteropServices.COMException (0x80004005): Une erreur HRESULT E_FAIL a été retournée à partir d'un appel à un composant COM.
à EnvDTE80.DTE2.get_ActiveSolutionProjects()
à BuildVersionIncrement.VersionIncrementer.OnBuildBegin(vsBuildScope scope, vsBuildAction action)
Log:Je suis preneur de toute idée!Check for working C compiler using: Visual Studio 9 2008 Check for working C compiler using: Visual Studio 9 2008 -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "cl" is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/SPARK Particle Editor/SPARK2/buildtest/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
Error: Error occured while executing build version increment.
System.Runtime.InteropServices.COMException (0x80004005): Une erreur
HRESULT E_FAIL a été retournée à partir d'un appel à un composant COM.
à EnvDTE80.DTE2.get_ActiveSolutionProjects()
à BuildVersionIncrement.VersionIncrementer.OnBuildBegin(vsBuildScope scope, vsBuildAction action)
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:9 (project)
Configuring incomplete, errors occurred!
Merci d'avance,
~Darktib
Partager