Building OpenUSD-25.05 TBB error

Hello, I’m trying to build on Windows with Python 3.11 using
build_usd.py --imaging --alembic

I let it install and build tbb so I assume it’s the correct version, but I get:

ts.vcxproj -> Z:\silvia\git\OpenUSD\install\build\OpenUSD-25.05\pxr\base\ts\Release\usd_ts.dll
Z:/silvia/git/OpenUSD/OpenUSD-25.05/pxr/base/work/dispatcher.h(205,19): error C2664: 'tbb::detail::d1::task_group::task_group(const tbb::detail::d1::task_group &)': cannot convert argument 1 from 'tbb::detail::d1::task_group_context' to 'const tbb::detail::d1::task_group &' (compiling source file Z:\silvia\git\OpenUSD\OpenUSD-25.05\pxr\base\work\dispatcher.cpp) [Z:\silvia\git\OpenUSD\install\build\OpenUSD-25.05\pxr\base\work\work.vcxproj]

Hi @silviapalara,

I wonder if you’re running into build_usd.py favours system TBB over local one · Issue #3610 · PixarAnimationStudios/OpenUSD · GitHub, where your build is picking up a different installation of TBB than what the build script installs. You could look at the CMakeCache.txt in Z:\silvia\git\OpenUSD\install\build\OpenUSD-25.05 to see if that’s the case, or post it here for folks to look at.

Thank you Sunya, it seems it’s picking up the one it installed. CMakeCache.txt says

TBB_SOURCE_DIR:STATIC=Z:/silvia/git/OpenUSD/install/src/oneTBB-2021.9.0

Since Z:/silvia/git/OpenUSD/install is the install dir I give build_usd.py, it seems it’s doing the right thing. I tried with both option --onetbb and without, so in that folder I now have an install of tbb and one of one-tbb. Could they be conflicting somehow?

Ah yeah, that sounds plausible. I think the oneTBB and TBB installations have overlapping files, so running the script with and without --onetbb into the same install directory would probably not work well. If blowing everything away and rebuilding from scratch doesn’t work, then we can dig further into whatever error you get from that.