Open mwestphal opened 8 months ago
I'm having a similar issue, I have another project in my computer called OpenUSD and I have its bin and lib paths added to my PATH environment variable and for some reason it's adding the tbb from that project in the build\openvdb\openvdb\openvdb_shared.vcxproj file so I get the error:
openvdb_static.vcxproj -> D:\openvdb\build\openvdb\openvdb\Release\libopenvdb.lib
LINK : fatal error LNK1104: cannot open file 'tbb12.lib' [D:\openvdb\build\openvdb\openvdb\openvdb_shared.vcxproj]
if I manually replace the usd tbb.lib path to the tbb12.lib file that I got from vcpkg "C:\vcpkg\installed\x64-windows\lib\tbb12.lib" then I can continue past the error.
Funny enough then I get another error that it cannot create C:/Program Files/OpenVDB/... so I had to run PowerShell in administrator mode.
After that I finally got it correctly compiled and installed in C:/Program Files/OpenVDB
Except that it didn't copy all the dlls to C:\Program Files\OpenVDB\bin so vdb_print.exe wasn't working I had to manually copy the missing dlls from the build folder.
I had same issue, "Could NOT find TBB (missing: tbb)", and finally solve it by removing it FindTBB.cmake.
OpenVDB should not provide a FindTBB.cmake (or any Find*.cmake for that matter) because it overrides local TBBConfig.cmake and may miss some components.
In my specific case, it results to the following:
Although the FindTBB.cmake providen by OpenVDB does not appear in the stack, removing it solves the issue.
Removing FindTBB.cmake seems to be finxing the issue, but you must be providing it for a reason, so some care may need to be taken for removal.