how to compile opencv3 without threads

asked 2015-07-02 10:11:39 -0500

alon gravatar image

Hey All, I'm trying to build opencv without _any_ threads.. despite using tbb and my own.. I've been breaking my head figuring out the CMakeCache, but no matter what I do the haar cascade creates threads.. this is what I am using to build mostly only the face(might be a little bit redundancy:)

cmake /media/sf_Downloads/opencv-3.0.0/opencv-3.0.0/ -DCMAKE_INSTALL_PREFIX=/home/alon/workspace/opencv3/install/ -DWITH_IPP=OFF -DWITH_CUDA=OFF -DWITH_CUFFT=OFF -DWITH_LIBV4L=OFF -DWITH_FFMPEG=OFF -DWITH_OPENCL=OFF -DWITH_TBB=OFF -DBUILD_opencv_apps=OFF -DBUILD_opencv_calib3d=OFF -DBUILD_opencv_features2d=OFF -DBUILD_opencv_flann=OFF -DBUILD_opencv_highgui=OFF -DBUILD_opencv_imgcodecs=OFF -DBUILD_opencv_photo=OFF -DBUILD_opencv_shape=OFF -DBUILD_opencv_stitching=OFF -DBUILD_opencv_superres=OFF -DBUILD_opencv_ts=OFF -DBUILD_opencv_video=OFF -DBUILD_opencv_videoio=OFF -DBUILD_opencv_videostab=OFF

in particular, this is what I believed effected threads:

cmake /media/sf_Downloads/opencv-3.0.0/opencv-3.0.0/ -DCMAKE_INSTALL_PREFIX=/home/alon/workspace/opencv3/install/ -DWITH_IPP=OFF -DWITH_CUDA=OFF -DWITH_OPENCL=OFF -DWITH_TBB=OFF

anyone has a clue?


edit retag flag offensive close merge delete


I don't know if it can help you but there is two TBB flags WITH_TBB and BUILD_TBB

LBerger gravatar imageLBerger ( 2015-07-02 10:54:11 -0500 )edit