CMake错误:BUILD_TBB选项仅支持ARM上的Windows

时间:2015-04-01 05:08:04

标签: opencv cmake tbb

我正在尝试用CMake构建库,以便使用Visual Studio 2012的C ++编译器在OpenCV中构建视觉检测系统。经过大量的配置修复,Qt 5和Openni的安装后,我仍然从CMake配置步骤中得到以下错误:

Checking for Windows (Phone) Platform SDK 8.0/8.1
Checking for Visual Studio 2012/2013
WARNING, OpenNI library directory (set by OPENNI_LIB_DIR variable) is not     found or does not have OpenNI libraries.
WARNING, OpenNI include directory (set by OPENNI_INCLUDE_DIR variable) is not found or does not have OpenNI include files.
WARNING, PrimeSensor Module binaries directory (set by     OPENNI_PRIME_SENSOR_MODULE_BIN_DIR variable) is not found or does not have   PrimeSensor Module binaries.
Looking for Mfapi.h
Looking for Mfapi.h - found
Warning at cmake/OpenCVFindIntelPerCSDK.cmake:17 (message):
Intel Perceptual Computing SDK library directory (set by INTELPERC_LIB_DIR
variable) is not found or does not have Intel Perceptual Computing SDK
libraries.
Call Stack (most recent call first):
cmake/OpenCVFindLibsVideo.cmake:291 (include)
CMakeLists.txt:482 (include)


CMake Error at 3rdparty/tbb/CMakeLists.txt:5 (message):
  BUILD_TBB option supports Windows on ARM only!

  Use regular official TBB build instead of the BUILD_TBB option!


 Configuring incomplete, errors occurred!
 See also "C:/OpenCV/opencv/lib/CMakeFiles/CMakeOutput.log".

1 个答案:

答案 0 :(得分:1)

cmake_gui ,您可以快速禁用BUILD_TBB变量。如果你想要TBB,你必须自己单独构建它,然后你可以使用this guide在OpenCV中激活它。