Ask Your Question
0

How to link tbb dynamic libraries (tbb.dll)

asked 2018-01-17 04:00:15 -0500

gerardWalsh gravatar image

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

and

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/17... 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?

edit retag flag offensive close merge delete

Comments

simply add the tbb.dll files from the Path: tbb2018_20171205oss\bin\intel64\vc14 to your executable directory!

Balaji R gravatar imageBalaji R ( 2018-01-17 04:15:49 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-01-17 04:14:29 -0500

LBerger gravatar image

tbb.dll is not in a folder given in PATH variable. To check this copy dll in same folder of exe file and run again your program. If it works then you must add tbb dll folder to path environement variable and exit VS 2017 and start again

edit flag offensive delete link more

Comments

I added tbb.dll to the system variables and user variables, reconfigured with, recompiled and reinstalled - only to have the same result - tbb.dll not found

gerardWalsh gravatar imagegerardWalsh ( 2018-01-18 10:42:31 -0500 )edit

"I added tbb.dll" you mean folder where is tbb.dll?

LBerger gravatar imageLBerger ( 2018-01-18 10:50:07 -0500 )edit

do you think, is it possible not to compile OpenCV libraries (core.dll for example) not to depend on tbb.dll, but just include it inside them?

DavitBaghdasaryan gravatar imageDavitBaghdasaryan ( 2018-10-28 03:05:52 -0500 )edit

I don't understand what you want exactly. tbb is detected via cmake and then tbb is set using HAVE_TBB in source code (example) You can try in static but you will need tbb source code (that's not free)

LBerger gravatar imageLBerger ( 2018-10-28 03:26:38 -0500 )edit

I just want to embed tbb.dll in opencv_core.dll in order not to set up any environmental variables

DavitBaghdasaryan gravatar imageDavitBaghdasaryan ( 2018-10-28 04:32:24 -0500 )edit

I don't think it's possibble without source file and license is broken

LBerger gravatar imageLBerger ( 2018-10-28 11:48:57 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-01-17 03:58:11 -0500

Seen: 1,062 times

Last updated: Jan 17 '18