Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to link tbb dynamic libraries (tbb.dll)

I have compiled and installed OpenCV 3.4.0 in 64-bit Windows, following this tutorial :

  • https://docs.opencv.org/3.0-beta/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariable
  • https://perso.uclouvain.be/allan.barrea/opencv/cmake_config.html

and

  • http://cvlecture.marearts.com/2017/04/opencv-opencv-32-cuda-tbb.html

to specifiy the location on the tbb env, tbb lib and tbb debug

I have successfully installed OpenCV using Visual Studio 17 (v 141 for Cuda 9.1 and the latest CMake), but when attempting to run a test from OpenCV_Dir\build\bin\release\cpp-example-contours2 I get the error :

Code execution cannon proceed because tbb.dll was not found. Reinstalling the program may fix this

I then subsequently followed the answer in http://answers.opencv.org/question/172177/cant-use-opencv-with-tbb-enabled-default_num_threads-not-found/ and ran the batch file from the command prompt specifying intel 64 and vs2017, removed the OpenCV build folder, re-configured using CMake, compiled and installed using VS2017 and ran into the same error.

How do I link the tbb dynamic libraries to avoid this error?