How to disable TBB when compiling an OpenCV project

I am working with OpenCV 2.3.1 on VisualStudio 9 and when I compile my project I have an error that I do not have tbb.dll. But I don't need this as it will be an Android project in the future. Does anyone know how I can disable TBB when compiling? I saw the post but it doesn't seem very relevant: s (http://stackoverflow.com/questions/7565089/how-to-disable-auto-link-for-tbb)

thank

+1


source to share


1 answer


You can first use cmake-gui (for Windows) and re-compile opencv with the following disable option: -D WITH_TBB (=OFF)

On Windows, this option can be called USE_TBB

. Second, if you just want to compile your program without using TBB, you need to provide the same option if the compilation rule is in VS9. I'm not VS now, so I can just give you the option name.



+1


source







All Articles