使用Cmake构建VTK和线程构建块

时间:2015-02-11 15:37:20

标签: c++ cmake vtk tbb

我没有在VTK上使用TBB。 VTK可以选择设置要使用的smp。当我将其设置为TBB时,Cmake无法找到我的TBB所在的位置:

Looked for Threading Building Blocks in C:/Program Files/Intel/TBB;C:/Program Files (x86)/Intel/TBB
CMake Error at CMake/FindTBB.cmake:272 (message):
  Could NOT find TBB library.
Call Stack (most recent call first):
  Common/Core/CMakeLists.txt:42 (find_package)

我的环境变量是:

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\geronimo\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=GEROMIN-WIN8
ComSpec=C:\Windows\system32\cmd.exe
CPATH=C:\Program Files\Intel\TBB\tbb43_20150209oss\bin\..\include;
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\geronimo
INCLUDE=C:\Program Files\Intel\TBB\tbb43_20150209oss\bin\..\include;
LIB=C:\Program Files\Intel\TBB\tbb43_20150209oss\bin\..\lib\intel64\vc11;
LOCALAPPDATA=C:\Users\geronimo\AppData\Local
LOGONSERVER=\\GEROMIN-WIN8
MIC_LD_LIBRARY_PATH=C:\Program Files\Intel\TBB\tbb43_20150209oss\bin\..\lib\mic;
MIC_LIBRARY_PATH=C:\Program Files\Intel\TBB\tbb43_20150209oss\bin\..\lib\mic;
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\Program Files\Intel\TBB\tbb43_20150209oss\bin\\intel64\vc11;C:\Borland\Delphi7\Bin;C:\Borland\Delphi7\Projects\Bpl\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\nodejs\;C:\Program Files (x86)\CMake\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Mercurial\;C:\Program Files\TortoiseHg\;C:\Program Files\TortoiseSVN\bin;C:\Users\geronimo\AppData\Roaming\npm
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SCRIPT_NAME=tbbvars.bat
SystemDrive=C:
SystemRoot=C:\Windows
TBBROOT=C:\Program Files\Intel\TBB\tbb43_20150209oss\bin\..
TBB_ARCH_PLATFORM=intel64\vc11
TBB_BIN_DIR=C:\Program Files\Intel\TBB\tbb43_20150209oss\bin\
TBB_TARGET_ARCH=intel64
TBB_TARGET_VS=vc11
TEMP=C:\Users\geronimo\AppData\Local\Temp
TMP=C:\Users\geronimo\AppData\Local\Temp
USERDOMAIN=geromin-win8
USERDOMAIN_ROAMINGPROFILE=geromin-win8
USERNAME=geronimo
USERPROFILE=C:\Users\geronimo
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
windir=C:\Windows

我的tbb位于' C:\ Program Files \ Intel \ TBB \ tbb43_20150209oss'并从Thread Building Blocks站点下载。我的SO是Windows 8.1 64位,我的Visual Studio是2012.我试图设置一个指向上面目录的cmake var TBB_INSTALL_DIR但无济于事。

有关如何将tbb与vtk一起使用的任何帮助吗?

0 个答案:

没有答案