2015-04-01 286 views
-1

我正嘗試使用Visual Studio 2012的C++編譯器在CMake中構建一個視覺檢測系統庫。不少配置的固定,QT 5的安裝,同時Openni之後,我仍然從CMake的配置步驟中得到以下錯誤:CMake錯誤:BUILD_TBB選項僅支持ARM上的Windows

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". 
+0

你如何打電話給CMake?它沒有找到OpenNI,它抱怨說你已經通過了一些標誌來構建TBB。您的TBB安裝來自哪裏? – usr1234567 2015-04-01 06:43:32

+0

我使用cmake gui。我已經有了Visual Studio 2012作爲編譯器,它可以很好地完成它。我不清楚TBB是什麼,對於TBB我很抱歉,我是一個完全新手。 – 2015-04-02 12:10:53

+0

有趣的是我在我的筆記本電腦上安裝了openNI,爲什麼cmake無法找到它?我應該告訴它像我做其他應用程序一樣查看哪個目錄?如果是這樣,我如何提醒它到openni目錄? – 2015-04-02 12:22:06

回答

1

cmake_gui,您可以快速關閉BUILD_TBB變量。如果你想要TBB,你必須自己單獨構建它,然後你可以使用this guide在OpenCV中激活它。

+0

TBB代表什麼?爲什麼我需要它?我如何禁用它?對不起,如果你不介意的話,你必須像寶寶一樣一步一步帶我走。 – 2015-04-02 12:12:15

+1

@SolimanSamirSoliman:TBB代表Threading Building Blocks,Antonio甚至連接到他們的主頁。 – usr1234567 2015-04-02 12:18:57

+1

@SolimanSamirSoliman在我的回答中,我向您提供了一個TBB的鏈接。你運行cmake_gui嗎?從那裏直接設置CMake變量。 – Antonio 2015-04-02 12:19:01