我正在尝试用cmake配置我的Visual Studio14,但是在这个命令$ cmake -G "Visual Studio 14 2015"之后。它显示此错误消息BUILD FAILED。我不明白为什么构建失败了,错误消息是Cannot evaluate the item metadata "%(FullPath)"。我不知道该怎么改正,我需要帮助!
ASHWANI KUMAR@ASHWANI MINGW64 /e/Study/GSoC'18/CERN-HSF/ROOT/root (master)
$ cmake -G "Visual Studio 14 2015"
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- broken
CMake Error at E:/Study/GSoC'18/CERN-HSF/ROOT/CMake/share/cmake-3.11/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: E:/Study/GSoC'18/CERN-HSF/ROOT/root/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_bfc97.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 3/10/2018 7:14:11 PM.
Project "E:\Study\GSoC'18\CERN-HSF\ROOT\root\CMakeFiles\CMakeTmp\cmTC_bfc97.vcxproj" on node 1 (default targets).
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(5121,7): error MSB4023: Cannot evaluate the item metadata "%(FullPath)". The item metadata "%(FullPath)" cannot be applied to the path "@(_DebugSymbolsInter mediatePath->'E:\Study\GSoC'18\CERN-HSF\ROOT\root\CMakeFiles\CMakeTmp\Debug\%(Filename)%(Extension)')". Illegal characters in path. [E:\Study\GSoC'18\CERN-HSF\ROOT\root\CMakeFiles\CMakeTmp\cmTC_bfc97.vcxproj]
Done Building Project "E:\Study\GSoC'18\CERN-HSF\ROOT\root\CMakeFiles\CMakeTmp\cmTC_bfc97.vcxproj" (default targets) -- FAILED.
Build FAILED.
"E:\Study\GSoC'18\CERN-HSF\ROOT\root\CMakeFiles\CMakeTmp\cmTC_bfc97.vcxproj"(default target) (1) ->
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(5121,7): error MSB4023: Cannot evaluate the item metadata "%(FullPath)".
The item metadata "%(FullPath)" cannot be applied to the path "@(_DebugSymbolsIntermediatePath->'E:\Study\GSoC'18\CERN-HSF\ROOT\root\CMakeFiles\CMakeTmp\Debug\%(Filename)%(Extension)')". Illegal characters in path. [E:\Study\GSoC'18\CERN-HSF\ROOT\root\CMakeFiles\CMakeTmp\cmTC_bfc97.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.28发布于 2018-03-12 21:09:06
您正在尝试编译哪个版本的ROOT?仅供参考,根6 (git master)需要Visual Studio 2017,根5最多需要Visual Studio 2013
干杯,伯特兰。
https://stackoverflow.com/questions/49216755
复制相似问题