TBB libraries not found

asked 2016-04-13 14:22:45 -0500

LarryK gravatar image

Building OpenCV 3.1 with TBB 4.4 results in link failure, TBB libraries not found. CMake is using tbb\intel_64 as lib path. Lib files are located in tbb\intel_64_win

Build environment: VS 2015 x64 TBB ver: 4.4

Have updated cmake files been created to correct the problem?

edit retag flag offensive close merge delete


On windows there is two flags in cmake for TBB : WITH_TBB and BUILD_TBB. If you 've got only lib use WITH_TBB

LBerger gravatar imageLBerger ( 2016-04-14 03:01:20 -0500 )edit

Make use of the CMAKE graphical user interface, select the WITH_TBB option, then in your second configure run, make sure you adapt the TBB library path, where he is looking for the installation.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-04-14 03:08:39 -0500 )edit

1) I am using CMAKE graphical user interface

2) TBB was installed from Intel Parallel Studio XE 2016 Update2 downloaded 4/9/2016

3) Prior to starting cmake-gui, tbbvars.bat is run and produces the following environment variables: TBBROOT=I:\OpenCV\deps\tbb\bin.. TBB_ARCH_PLATFORM=intel64\vc14 TBB_BIN_DIR=I:\OpenCV\deps\tbb\bin\ TBB_TARGET_ARCH=intel64 TBB_TARGET_VS=vc14

4) After running configure the second time in CMAKE, CMAKE reports: TBB_LIB_DIR: I:/OpenCV/deps/tbb/lib/intel64/vc14, that directory is empty, the correct location is: I:/OpenCV/deps/tbb/lib/intel64_win/vc14

That's why I asked if the CMAKE list files had been updated to correct the problem.

LarryK gravatar imageLarryK ( 2016-04-14 14:41:10 -0500 )edit

You can change path name in cmake and if it works you can ask here

LBerger gravatar imageLBerger ( 2016-04-15 01:11:57 -0500 )edit