- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
have you built your code with -D WITH_TBB = ON?
--Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I did.
Vladimir Polin (Intel) wrote:
have you built your code with -D WITH_TBB = ON?
--Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved it.
It was a simple -DHAVE_TBB flag and worked it. For some reason OpenCV didn't define this flag automatically.
Thanks.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page