gpt4 book ai didi

c++ - 使用 VS2013 express 在 Windows 8.1 上构建 cpprest (Casablanca)

转载 作者:行者123 更新时间:2023-11-28 06:34:34 25 4
gpt4 key购买 nike

我正在尝试构建 SDK 但无济于事。我的目标是按照此处的说明构建库的静态版本: How to statically link the CPP REST SDK ,但我什至还没有到达静态部分,项目上的构建按原样失败。

这是我做的:

  1. 克隆the repo
  2. 运行 setup_ps_env_VS2013.ps1(不确定是否有必要)
  3. 使用 VS2013 express 打开 casablanca120.desktop.sln
  4. 运行构建解决方案
    编译似乎有效,但链接失败:

    error LNK1104: 无法打开文件'MY_WORSPACE\cpprest\Binaries\Win32\Debug\cpprest120d_xp_2_2.lib'
    MY_WORSPACE\cpprest\Release\samples\BingRequest\BingRequest120.xp\LINKBingRequest120.xp

我根本没有尝试为 XP 构建它,所以我尝试了相同的方法,但使用 casablanca120.WinRT.sln 解决方案,当我尝试构建它时,我得到:

MY_WORSPACE\cpprest2\Release\src\build\casablanca120.winrt.vcxproj : error  : Unable to read the project file "casablanca120.winrt.vcxproj".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(1809,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

MY_WORSPACE\cpprest2\Release\src\build\casablanca120.wp81.vcxproj : error : Unable to read the project file "casablanca120.wp81.vcxproj".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(1809,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

MY_WORSPACE\cpprest2\Release\samples\BlackJack\BlackJack_UIClient\BlackJack_UIClient120.vcxproj : error : Unable to read the project file "BlackJack_UIClient120.vcxproj".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(1809,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

MY_WORSPACE\cpprest2\Release\samples\FacebookDemo\FacebookDemo120.vcxproj : error : Unable to read the project file "FacebookDemo120.vcxproj".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(1809,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

MY_WORSPACE\cpprest2\Release\samples\WindowsLiveAuth\WindowsLiveAuth120.vcxproj : error : Unable to read the project file "WindowsLiveAuth120.vcxproj".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(1809,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

知道我做错了什么吗?

最佳答案

如果您遇到相同或类似的问题,请尝试我在 CodePlex 论坛上获得的答案:

Building the sdk on windows 8.1 using VS2013 express (on CodePlex)

关于c++ - 使用 VS2013 express 在 Windows 8.1 上构建 cpprest (Casablanca),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26955377/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com