I have tried this following steps,
1) Downloaded the TBB package.
2) Build using the below command
mingw32-make compiler=gcc arch=ia32 runtime=mingw default
3) I set the Environmental variable path
4) Now using cmake, I enabled "WITH_TBB" and compiled the opencv.
after that i got an error as
[33%] Built target pch_Generate_opencv_core
Linking CXX shared library ..\..\bin\libopencv_core245.dll
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot fin
d -ltbb
collect2: ld returned 1 exit status
make[2]: *** [bin/libopencv_core245.dll] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Can any one say how to overcome this issue and how to build the tbb for windows mingw ??