Visual Studio 2015 x64を使用して、コマンドラインからインテルスレッディングビルディングブロックをビルドします。私はlast stable versionをhttps://www.threadingbuildingblocks.org/からダウンロードしました。VS2015 x64をコマンドラインから使用してTBBを構築するにはどうすればよいですか?
makefile.sln
tbb.vcxproj
tbbmalloc.vcxproj
tbbmalloc_proxy.vcxproj
はTBBのデバッグバージョンをビルドするには、私はVS2015 x64 Native Tools Command Prompt
で次のコマンドを試してみました:
ディレクトリtbb2017_20161128oss\build\vs2012
Devenv makefile.sln /build Debug /project tbb
しかし、私は次のエラーを取得します:
Microsoft Visual Studio 2015 Version 14.0.25420.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: tbb, Configuration: Debug Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
1> generating tbb.def file
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code -1073741515.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
ここでの問題VS2012ファイルをアップグレードする必要があるということです。私は手動でファイルmakefile.sln
を開くと、これらのウィンドウがポップアップ表示さ:私は「OK」ボタンを押すと、再びenv makefile.sln /build Debug /project tbb
を再試行する場合
をすべてが正常に動作します。
私はいくつかのコンピュータでTBBを構築する予定ですので、この手作業は面倒です。避けられますか?コマンドラインからソリューションをアップグレードする方法はありますか?
からバイナリを入手することができます。 – Anton