Skip to content

Fix build of usd executables when PXR_PY_UNDEFINED_DYNAMIC_LOOKUP is enabled #3577

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

traversaro
Copy link

@traversaro traversaro commented Mar 24, 2025

Description of Change(s)

Even if PXR_PY_UNDEFINED_DYNAMIC_LOOKUP is defined (to avoid that the usd python extensions links to the python library, to avoid problems with statically linked python interpreters) we want that executables that link usd_python to link with the Python library, as otherwise they would fail due to missing symbols, see #2371 and #2568.

This can be done by adding to INTERFACE_LINK_LIBRARIES the appropriate generator expression, that will evalute to empty when usd_python is linked to a library, but it will evaluate to Python3::Python when linked to an executable.

Link to proposal (if applicable)

Fixes Issue(s)

This needs to be verified by the specific persons that open the issues, but probably this will fix the following issues:

Checklist

@traversaro traversaro changed the title Fix build of usd executable with PXR_PY_UNDEFINED_DYNAMIC_LOOKUP Fix build of usd executables when PXR_PY_UNDEFINED_DYNAMIC_LOOKUP is enabled Mar 24, 2025
@traversaro
Copy link
Author

Sorry, I need to look into that, I plan to do this in the following days.

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10819

❗ Please make sure that a signed CLA has been submitted!

(This is an automated message. See here for more information.)

@jesschimein
Copy link
Collaborator

/AzurePipelines run

@tallytalwar
Copy link
Contributor

/AzurePipelines run

1 similar comment
@tallytalwar
Copy link
Contributor

/AzurePipelines run

@traversaro
Copy link
Author

Sorry, I need to look into that, I plan to do this in the following days.

I submitted the signed CLA by email today.

@jesschimein
Copy link
Collaborator

/AzurePipelines run

@traversaro
Copy link
Author

Sorry, I need to look into that, I plan to do this in the following days.

I submitted the signed CLA by email today.

The CLA was approved.

@jesschimein
Copy link
Collaborator

/AzurePipelines run

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