You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /Users/thewoz/Documents/GitHub/opencv/modules/gapi/src/compiler/gcompiler.cpp:31:
In file included from /Users/thewoz/Documents/GitHub/opencv/modules/gapi/src/compiler/gstreaming_priv.hpp:12:
/Users/thewoz/Documents/GitHub/opencv/modules/gapi/src/executor/gstreamingexecutor.hpp:19:12: fatal error: 'tbb/concurrent_queue.h' file not found
# include <tbb/concurrent_queue.h> // FIXME: drop it from here!
Of course with -DBUILD_opencv_gapi=OFF is all right
However it is strange since I have the TBB installed and I have the concurrent_queue.h file in the right place
Looks like that in the receipt of G-API in the cmake is missing the path of TBB
I also have this issue building with MSVC 2017 x64 using the WITH_TBB option. I worked around this by after generating with cmake changing opencv_gapi settings to have access to TBB using the configuration GUI interface (Intel performance libraries section). I could not fix this for some reason by specifying a specific location for the tbb includes. The best fix for this should be fixing the cmake configuration because all the other modules don't seem to have this issue.
Activity
alalek commentedon Oct 26, 2019
Looks like G-API wants some fresh TBB version (missing version check).
Possible workarounds:
-DWITH_TBB=OFF-DBUILD_TBB=ON(build TBB from sources)-DBUILD_opencv_gapi=OFFthewoz commentedon Oct 26, 2019
Of course with -DBUILD_opencv_gapi=OFF is all right
However it is strange since I have the TBB installed and I have the concurrent_queue.h file in the right place
Looks like that in the receipt of G-API in the cmake is missing the path of TBB
alalek commentedon Oct 26, 2019
Could you please dump compiler args. Something like:
make VERBOSE=1ninja -vthewoz commentedon Oct 27, 2019
Looks like that the path for TBB is missing.
I have the TBB installed here: /usr/local/include/tbb
amrosado commentedon Nov 11, 2019
I also have this issue building with MSVC 2017 x64 using the WITH_TBB option. I worked around this by after generating with cmake changing opencv_gapi settings to have access to TBB using the configuration GUI interface (Intel performance libraries section). I could not fix this for some reason by specifying a specific location for the tbb includes. The best fix for this should be fixing the cmake configuration because all the other modules don't seem to have this issue.
dmatveev commentedon Dec 6, 2019
Thanks for reporting this. @amrosado so what CMake configuration you are proposing to fix?
dmatveev commentedon Dec 6, 2019
@alalek do we need to use anything special in our add_module thing to get TBB linked properly?
alalek commentedon Dec 6, 2019
@thewoz @amrosado Could you please check if this patch resolves problem on your side: #16084 ?
amrosado commentedon Dec 6, 2019
I tested your branch and it appears to resolve the problem. I'm using CMAKE 3.16.0-rc4 and MSVC 2019. Thanks so much for your help.
dmatveev commentedon Dec 6, 2019
@alalek cool, thanks!
thewoz commentedon Dec 7, 2019
I try patch and it seems to work!