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

usdBakeMtlx, usdrecord: skip building usdImaging tools if GPU and/or OpenGL are unavailable #2468

Conversation

mattyjams
Copy link
Contributor

This fixes two issues when building USD with PXR_BUILD_USD_IMAGING enabled but PXR_ENABLE_GPU_SUPPORT and/or PXR_ENABLE_GL_SUPPORT disabled.

The build of usdAppUtils is gated on PXR_BUILD_GPU_SUPPORT being enabled, but there was no such check for usdrecord, so the build would be aborted when CMake goes to build usdrecord but discovers the dependency is missing.

The usdBakeMtlx change might be slightly more contentious, but in environments where OpenGL is not supported, it's likely that building MaterialX will yield an installation that is missing the MaterialXRenderGlsl library. Attempting to then build USD in that environment against such an installation of MaterialX with PXR_ENABLE_GL_SUPPORT disabled would be aborted when CMake goes to build usdBakeMtlx but discovers the dependency is missing.

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

usdrecord has usdAppUtils as a dependency, which is only built when GPU support
is enabled.
usdBakeMtlx has MaterialX's MaterialXRenderGlsl library as a dependency, which
makes use of OpenGL. If OpenGL support is unavailable or disabled for the USD
build, we should skip building usdBakeMtlx since MaterialXRenderGlsl may not be
available.
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8399

@pixar-oss pixar-oss merged commit 5f55a7c into PixarAnimationStudios:dev Nov 28, 2023
@mattyjams mattyjams deleted the pr/skip_building_usdImaging_tools_without_GPU_or_OpenGL branch November 28, 2023 21:59
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

Successfully merging this pull request may close these issues.

3 participants