0

SDKをビルドしようとしていますが、役に立ちません。私の目標は、次の手順に従ってライブラリの静的バージョンを構築することです: How to statically link the CPP REST SDK , しかし、静的部分に到達していないため、ビルドはそのままプロジェクトで失敗します.

これが私がしたことです:

  1. レポのクローンを作成しました
  2. setup_ps_env_VS2013.ps1 を実行しました (必要かどうかはわかりません)。
  3. VS2013 Express を使用して casablanca120.desktop.sln を開きました
  4. ビルド ソリューションを実行
    しましたが、コンパイルは機能しているように見えますが、リンクは次のように失敗します。

    エラー LNK1104: ファイル 'MY_WORSPACE\cpprest\Binaries\Win32\Debug\cpprest120d_xp_2_2.lib' を開けません'
    MY_WORSPACE\cpprest\Release\samples\BingRequest\BingRequest120.xp\LINK BingRequest120.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.

私が間違っていることはありますか?

4

1 に答える 1