Include tbb12 library for LookdevXUfe on Windows-Maya2026.0 only#4356
Include tbb12 library for LookdevXUfe on Windows-Maya2026.0 only#4356raph080 wants to merge 1 commit intoAutodesk:devfrom
Conversation
Add support for tbb12 library dependency on Windows for Maya 2026.0 Only to prevent a crash: LINK : fatal error LNK1104: cannot open file 'tbb12.lib'
|
@raph080 Thanks for your interest in contributing to our repo maya-usd. Before we can accept PR from a new contributor, we need you to fill, sign and email the proper CLA (individual or corporate) from the link below: https://github.com/Autodesk/maya-usd/tree/dev/doc/CLA |
|
Hi @seando-adsk, thanks for the update. I will fill the CLA as soon as possible. In the meantime I tried to compile the plugin MayaUSD for Windows and Maya 2026.2. Even if ttb12.lib does not appears in the lib folder for lookdevXUfe anymore (devkitBase\devkit\ufe\extensions\lookdevXUfe\lib), it still seems to be a equired dependency. I just faced the same error. We might need to modify the building process so it could get the one from devkitBase\lib instead. I might work on it later. Thank you! |
|
@raph080 Tbb is part of the Maya devkit, but it should also be part of your USD build and included as a dependency by USD in the pxrConfig.cmake. Sean |
|
Hi @seando-adsk, I think the main concern is that lookdevXUfe is looking exclusively for tbb12.lib. OpenUSD embeds tbb.lib, which is missing the version number. |
|
Maya 2026 was built with OneTBB and ships with a Are you using your own USD build or the one that ships with MayaUsd? If you use the one that ships with MayaUsd, make sure to extract the file Sean |
Overview
Add support for tbb12 library dependency on Windows for Maya 2026.0 Only to prevent a crash: LINK : fatal error LNK1104: cannot open file 'tbb12.lib'.
The problem
I was trying to compile MayaUSD for Windows 11 - Maya 2026.0 and I face this error during compilation:
LINK : fatal error LNK1104: cannot open file 'tbb12.lib' [C:\Users\raphael.jouretz\tmp\MayaUSD-0.33.0-complied\build\RelWithDebInfo\lib\lookdevXUsd\lookdevXUsd.vcxproj]After some investigation, I noticed that devkitBase\devkit\ufe\extensions\lookdevXUfe\lib is the only 2026 version that contains an extra dependency: tbb12.lib. Other 2026.X and OS do not have that lib.
See https://aps.autodesk.com/developer/overview/maya ->
Download SDKs 2019–2026 for Windows->Maya 2026 win64 DevKit.The fix
lookdevXUsd will complain that it does not find tbb12.lib, so we need to add that extra lib in the target link libraries. Currently it contains ${LookdevXUfe_LIBRARY}
maya-usd/lib/lookdevXUsd/CMakeLists.txt
Line 134 in d1fb618
I am creating this MR in order to keep track so other people who face the same problem have a quick fix. Not sure if we need to patch the official branch as it should not be a problem for future versions/other OSs.