Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error tbb/task.h is deprecated #7

Open
aditiapratama opened this issue Jul 30, 2024 · 0 comments
Open

Build Error tbb/task.h is deprecated #7

aditiapratama opened this issue Jul 30, 2024 · 0 comments

Comments

@aditiapratama
Copy link

aditiapratama commented Jul 30, 2024

Hello, I try to build RenderStudioKit on Pop!OS and I've got following error

cmake --build Build --config Release
[  1%] Built target InstallPythonDeps
[  3%] Built target ExecuteNuitka
[  8%] Built target fmt
[ 11%] Built target RenderStudioLogger
[ 14%] Built target zip
[ 22%] Built target RenderStudioUtils
[ 26%] Built target RenderStudioNotice
[ 52%] Built target uriparser
[ 65%] Built target RenderStudioNetworking
[ 75%] Built target RenderStudioSchema
[ 80%] Built target RenderStudioSerialization
[ 81%] Building CXX object Sources/Resolver/CMakeFiles/RenderStudioResolver.dir/Data.cpp.o
In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26,
                 from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29,
                 from /opt/OpenUSD/include/pxr/usd/pcp/types.h:13,
                 from /opt/OpenUSD/include/pxr/usd/pcp/node.h:12,
                 from /opt/OpenUSD/include/pxr/usd/usd/editTarget.h:14,
                 from /opt/OpenUSD/include/pxr/usd/usd/stage.h:15,
                 from /home/aditia/usd-git/RenderStudioKit/Sources/Resolver/Data.h:27,
                 from /home/aditia/usd-git/RenderStudioKit/Sources/Resolver/Data.cpp:15:
/opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’
   21 |  deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")
      |                                                                                                ^

/home/aditia/usd-git/RenderStudioKit/Sources/Resolver/Data.cpp: In member function ‘void pxrInternal_v0_24__pxrReserved__::RenderStudioData::ProcessRemoteUpdates(pxrInternal_v0_24__pxrReserved__::SdfLayerHandle&)’:
/home/aditia/usd-git/RenderStudioKit/Sources/Resolver/Data.cpp:183:51: error: loop variable ‘delta’ of type ‘const std::pair<pxrInternal_v0_24__pxrReserved__::SdfPath, pxrInternal_v0_24__pxrReserved__::RenderStudioData::_SpecData>&’ binds to a temporary constructed from type ‘std::pair<const pxrInternal_v0_24__pxrReserved__::SdfPath, pxrInternal_v0_24__pxrReserved__::RenderStudioData::_SpecData>’ [-Werror=range-loop-construct]
  183 |         for (const std::pair<SdfPath, _SpecData>& delta : deltas)
      |                                                   ^~~~~
/home/aditia/usd-git/RenderStudioKit/Sources/Resolver/Data.cpp:183:51: note: use non-reference type ‘const std::pair<pxrInternal_v0_24__pxrReserved__::SdfPath, pxrInternal_v0_24__pxrReserved__::RenderStudioData::_SpecData>’ to make the copy explicit or ‘const std::pair<const pxrInternal_v0_24__pxrReserved__::SdfPath, pxrInternal_v0_24__pxrReserved__::RenderStudioData::_SpecData>&’ to prevent copying
cc1plus: all warnings being treated as errors
gmake[2]: *** [Sources/Resolver/CMakeFiles/RenderStudioResolver.dir/build.make:90: Sources/Resolver/CMakeFiles/RenderStudioResolver.dir/Data.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:631: Sources/Resolver/CMakeFiles/RenderStudioResolver.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant