Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you want to use OpenCV's parallel_for_, you don't need to add anything at compile time, but you need OpenCV compiled with WITH_TBB flag and have libtbb2 installed.

I find a lot easier to use the parallel_for directly from the tbb2 library. In this case toy need to add -ltbb to the g++ arguments.

See this answer about using TBB's parallel_for.