-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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_usd.py fails when building in debug mode #2231
Comments
You could try adding the following in the InstallAlembic() function in build.py:
|
Thank you, the missing OpenVDB:
USD:
Note how, although being a fallback option, OpenEXR is not found aswell, although being build and resolved fine when building OpenImageIO for example. |
We don't build with OpenVDB, but it looks like it also has a FindIlmBase.cmake that you'll need to patch. Sorry I don't know what happened with USD not being able to find OpenEXR. Sean |
The configuration of msvc debug builds is a bit complex. The _d suffix in OpenEXR (and many other projects) is meant to distinguish the choice of common runtime, since the debug and release variants are not compatible with each other. There is a patch here that might help you ~ if you are able to try it out and let us know how far you get that would be helpful. I notice that patch does not address any potential issues with OpenVdb. |
Filed as internal issue #USD-7959 |
It works 👍 Patching When I patched |
Closing this as a duplicate of #2079, which we are in progress on. Thanks everyone! |
Description of Issue
I tried to use the build_usd.py script to build USD 23.02 without usd-view, examples, tools in Debug mode. I eventually want to build both, Debug and Release versions.
System Information (OS, Hardware)
Windows 10
Intel(R) Core(TM) i7-7820X
Python 3.11.1
Visual Studio 2022
CMake 3.25.2
NASM 2.16.01
Steps to Reproduce
release
branch at tagv23.02
USD\build_scripts
build_usd.py
with the build flags below. The output folder is namedDEBUG
.Build Flags
--imaging --ptex --embree --openvdb --openimageio --opencolorio --alembic --hdf5 --materialx --no-draco --no-tools --no-prman --no-usdview --no-examples --no-tutorials --no-python --no-docs --build-monolithic --build-variant debug DEBUG -v
Now, when
build_usd.py
reachesalembic
, I get an error thatILMBASE_ROOT is undefined
and consequently the ilmbase libraries cannot be found (windows user name obfuscated):Although all libs
Half-2_5_d.dll
,Iex-2_5_d.dll
,IlmThread-2_5_d.dll
andImath-2_5_d.dll
being present inUSD\build_scripts\DEBUG\bin
, aswell as their respective.lib
counterparts inUSD\build_scripts\DEBUG\lib
...I tried adding the
bin
andlib
directories to PATH, invoking the CMake call manually with ILMBASE_ROOT pointing toUSD\build_scripts\DEBUG
, but nothing worked.I hope someone can help with this or point me in the right direction.
Thanks!
The text was updated successfully, but these errors were encountered: