首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >根生成使用CMake失败,Visual Studio 14给出错误:无法计算项元数据“%(FullPath)”

根生成使用CMake失败,Visual Studio 14给出错误:无法计算项元数据“%(FullPath)”
EN

Stack Overflow用户
提问于 2018-03-11 12:52:21
回答 1查看 383关注 0票数 0

我正在尝试用cmake配置我的Visual Studio14,但是在这个命令$ cmake -G "Visual Studio 14 2015"之后。它显示此错误消息BUILD FAILED。我不明白为什么构建失败了,错误消息是Cannot evaluate the item metadata "%(FullPath)"。我不知道该怎么改正,我需要帮助!

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2018-03-12 21:09:06

您正在尝试编译哪个版本的ROOT?仅供参考,根6 (git master)需要Visual Studio 2017,根5最多需要Visual Studio 2013

干杯,伯特兰。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49216755

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档