Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

failed to make opencv with tbb42 on macosx Mavericks

I installed mac version of tbb42_20140122oss on my macbook pro which running on Mavericks. I tried to install opencv-2.4.8 with tbb enabled. (after issuing the cmake with -DWITH_TBB=ON), the report shown "with TBB YES".

mkdir debug cmake -DWITH_TBB=ON -DENABLE_SSE3=ON -DENABLE_SSSE3=ON -DENABLE_SSSE3=ON -DENABLE_SSE42=ON -DBUILD_EXAMPLES=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DBUILD_PERF_TESTS=ON -DINSTALL_C_EXAMPLES=NO -DINSTALL_PYTHON_EXAMPLES=ON -D CMAKE_BUILD_TYPE=DEBUG -D CMAKE_INSTALL_PREFIX=/usr/local -G "Unix Makefiles" .. make

However I was unable to make the opencv, it died at

In file included from /usr/local/include/tbb/combinable.h:32:0, from /usr/local/include/tbb/tbb.h:49, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/core/include/opencv2/core/internal.hpp:179, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/highgui/src/precomp.hpp:50, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/highgui/src/window_cocoa.mm:43: /usr/local/include/tbb/enumerable_thread_specific.h: In instantiation of 'static _opaque_pthread_t* tbb::interface6::internal::ets_base<ets_key_type>::key_of_current_thread() [with tbb::ets_key_usage_type ETS_key_type = (tbb::ets_key_usage_type)1u; tbb::interface6::internal::ets_base<ets_key_type>::key_type = _opaque_pthread_t]': /usr/local/include/tbb/enumerable_thread_specific.h:173:54: required from 'void tbb::interface6::internal::ets_base<ets_key_type>::table_lookup(bool&) [with tbb::ets_key_usage_type ETS_key_type = (tbb::ets_key_usage_type)1u]' /usr/local/include/tbb/enumerable_thread_specific.h:281:36: required from here /usr/local/include/tbb/enumerable_thread_specific.h:98:70: warning: declaration of 'id' shadows a global declaration [-Wshadow] tbb::tbb_thread::id id = tbb::this_tbb_thread::get_id(); ^ make[2]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_cocoa.mm.o] Error 1 make[1]: [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: ** [all] Error 2

could somebody helps me out ?

click to hide/show revision 2
retagged

updated 2014-03-30 05:47:50 -0600

berak gravatar image

failed to make opencv with tbb42 on macosx Mavericks

I installed mac version of tbb42_20140122oss on my macbook pro which running on Mavericks. I tried to install opencv-2.4.8 with tbb enabled. (after issuing the cmake with -DWITH_TBB=ON), the report shown "with TBB YES".

mkdir debug cmake -DWITH_TBB=ON -DENABLE_SSE3=ON -DENABLE_SSSE3=ON -DENABLE_SSSE3=ON -DENABLE_SSE42=ON -DBUILD_EXAMPLES=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DBUILD_PERF_TESTS=ON -DINSTALL_C_EXAMPLES=NO -DINSTALL_PYTHON_EXAMPLES=ON -D CMAKE_BUILD_TYPE=DEBUG -D CMAKE_INSTALL_PREFIX=/usr/local -G "Unix Makefiles" .. make

However I was unable to make the opencv, it died at

In file included from /usr/local/include/tbb/combinable.h:32:0, from /usr/local/include/tbb/tbb.h:49, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/core/include/opencv2/core/internal.hpp:179, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/highgui/src/precomp.hpp:50, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/highgui/src/window_cocoa.mm:43: /usr/local/include/tbb/enumerable_thread_specific.h: In instantiation of 'static _opaque_pthread_t* tbb::interface6::internal::ets_base<ets_key_type>::key_of_current_thread() [with tbb::ets_key_usage_type ETS_key_type = (tbb::ets_key_usage_type)1u; tbb::interface6::internal::ets_base<ets_key_type>::key_type = _opaque_pthread_t]': /usr/local/include/tbb/enumerable_thread_specific.h:173:54: required from 'void tbb::interface6::internal::ets_base<ets_key_type>::table_lookup(bool&) [with tbb::ets_key_usage_type ETS_key_type = (tbb::ets_key_usage_type)1u]' /usr/local/include/tbb/enumerable_thread_specific.h:281:36: required from here /usr/local/include/tbb/enumerable_thread_specific.h:98:70: warning: declaration of 'id' shadows a global declaration [-Wshadow] tbb::tbb_thread::id id = tbb::this_tbb_thread::get_id(); ^ make[2]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_cocoa.mm.o] Error 1 make[1]: [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: ** [all] Error 2

could somebody helps me out ?

failed to make opencv with tbb42 on macosx Mavericks

I installed mac version of tbb42_20140122oss on my macbook pro which running on Mavericks. I tried to install opencv-2.4.8 with tbb enabled. (after issuing the cmake with -DWITH_TBB=ON), the report shown "with TBB YES".YES". PS: I'm using gcc4.8

mkdir debug cmake -DWITH_TBB=ON -DENABLE_SSE3=ON -DENABLE_SSSE3=ON -DENABLE_SSSE3=ON -DENABLE_SSE42=ON -DBUILD_EXAMPLES=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DBUILD_PERF_TESTS=ON -DINSTALL_C_EXAMPLES=NO -DINSTALL_PYTHON_EXAMPLES=ON -D CMAKE_BUILD_TYPE=DEBUG -D CMAKE_INSTALL_PREFIX=/usr/local -G "Unix Makefiles" .. make

However I was unable to make the opencv, it died at

In file included from /usr/local/include/tbb/combinable.h:32:0, from /usr/local/include/tbb/tbb.h:49, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/core/include/opencv2/core/internal.hpp:179, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/highgui/src/precomp.hpp:50, from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/highgui/src/window_cocoa.mm:43: /usr/local/include/tbb/enumerable_thread_specific.h: In instantiation of 'static _opaque_pthread_t* tbb::interface6::internal::ets_base<ets_key_type>::key_of_current_thread() [with tbb::ets_key_usage_type ETS_key_type = (tbb::ets_key_usage_type)1u; tbb::interface6::internal::ets_base<ets_key_type>::key_type = _opaque_pthread_t]': /usr/local/include/tbb/enumerable_thread_specific.h:173:54: required from 'void tbb::interface6::internal::ets_base<ets_key_type>::table_lookup(bool&) [with tbb::ets_key_usage_type ETS_key_type = (tbb::ets_key_usage_type)1u]' /usr/local/include/tbb/enumerable_thread_specific.h:281:36: required from here /usr/local/include/tbb/enumerable_thread_specific.h:98:70: warning: declaration of 'id' shadows a global declaration [-Wshadow] tbb::tbb_thread::id id = tbb::this_tbb_thread::get_id(); ^ make[2]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_cocoa.mm.o] Error 1 make[1]: [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: ** [all] Error 2

could somebody helps me out ?

failed to make opencv with tbb42 on macosx Mavericks

I installed mac version of tbb42_20140122oss on my macbook pro which running on Mavericks. I tried to install opencv-2.4.8 with tbb enabled. (after issuing the cmake with -DWITH_TBB=ON), the report shown "with TBB YES". PS: I'm using gcc4.8

mkdir debug
 cmake -DWITH_TBB=ON -DENABLE_SSE3=ON -DENABLE_SSSE3=ON -DENABLE_SSSE3=ON -DENABLE_SSE42=ON -DBUILD_EXAMPLES=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DBUILD_PERF_TESTS=ON -DINSTALL_C_EXAMPLES=NO -DINSTALL_PYTHON_EXAMPLES=ON -D CMAKE_BUILD_TYPE=DEBUG -D CMAKE_INSTALL_PREFIX=/usr/local -G "Unix Makefiles" ..
make 

make

However I was unable to make the opencv, it died at

In file included from /usr/local/include/tbb/combinable.h:32:0,
from /usr/local/include/tbb/tbb.h:49,
from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/core/include/opencv2/core/internal.hpp:179,
from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/highgui/src/precomp.hpp:50,
from /Users/benzene/works/OpenCV/opencv-2.4.8/modules/highgui/src/window_cocoa.mm:43:
/usr/local/include/tbb/enumerable_thread_specific.h: In instantiation of 'static _opaque_pthread_t* tbb::interface6::internal::ets_base<ets_key_type>::key_of_current_thread() tbb::interface6::internal::ets_base<ETS_key_type>::key_of_current_thread() [with tbb::ets_key_usage_type ETS_key_type = (tbb::ets_key_usage_type)1u; tbb::interface6::internal::ets_base<ets_key_type>::key_type tbb::interface6::internal::ets_base<ETS_key_type>::key_type = _opaque_pthread_t]':
_opaque_pthread_t*]':
/usr/local/include/tbb/enumerable_thread_specific.h:173:54: required from 'void tbb::interface6::internal::ets_base<ets_key_type>::table_lookup(bool&) 'void* tbb::interface6::internal::ets_base<ETS_key_type>::table_lookup(bool&) [with tbb::ets_key_usage_type ETS_key_type = (tbb::ets_key_usage_type)1u]'
/usr/local/include/tbb/enumerable_thread_specific.h:281:36: required from here
/usr/local/include/tbb/enumerable_thread_specific.h:98:70: warning: declaration of 'id' shadows a global declaration [-Wshadow]
tbb::tbb_thread::id id = tbb::this_tbb_thread::get_id();
^
make[2]: * *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_cocoa.mm.o] Error 1
make[1]:  *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: ** *** [all] Error 2

2

could somebody helps me out ?