Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

TBB 4.4.2 with OS X and Xcode

Cristopher_D_
Beginner
182 Views

Hi, I've been trying to compile a program using OpenCV running on OS X with TBB. 

First, I tried using the commands

brew install tbb 

The code uses C++ ifdef HAVE_TBB flag to define what part to compile. 

When I ran the code, the compiler doesn't recognize this flag, running without TBB.

Can anyone help me, how should I compile TBB correctly to make this possible?

I tried everything that I had found at this forum, stackexchange, documentation and etc.

I'm using OS X 10.11.4, OpenCV 3.1, which was compiled correctly with -D WITH_TBB = ON, I had installed and linked tbb using homebrew and tried using the source code, compiling with makefile and linking the environment variables using the tbbvars.sh file. 

Thanks. 

0 Kudos
3 Replies
Vladimir_P_Intel2
181 Views

have you built your code with -D WITH_TBB = ON?

--Vladimir

Cristopher_D_
Beginner
182 Views

Yes, I did. 

Vladimir Polin (Intel) wrote:

have you built your code with -D WITH_TBB = ON?

--Vladimir

 

Cristopher_D_
Beginner
182 Views

Solved it. 

It was a simple -DHAVE_TBB flag and worked it. For some reason OpenCV didn't define this flag automatically. 

Thanks.

 

Reply