Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Cristopher_D_
Beginner
85 Views

TBB 4.4.2 with OS X and Xcode

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
85 Views

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

--Vladimir

Cristopher_D_
Beginner
85 Views

Yes, I did. 

Vladimir Polin (Intel) wrote:

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

--Vladimir

 

Cristopher_D_
Beginner
85 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