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

Fix building on macOS. #980

Merged
merged 1 commit into from
Jun 4, 2022
Merged

Conversation

csukuangfj
Copy link
Collaborator

Fixes #836 and replaces #837

There is no $ORIGIN on macOS. This PR adds the directory where the final _k2.cpython-*.so resides to the runpath so that the dynamic loader can locate where the dependent libraries are. I've tested it on kaldifeat and it works. Will revert #837 in a separate PR.

@csukuangfj csukuangfj added the ready Ready for review and trigger GitHub actions to run label Jun 3, 2022
@csukuangfj csukuangfj merged commit c11c0b7 into k2-fsa:master Jun 4, 2022
@csukuangfj csukuangfj deleted the fix-building-on-macOS branch June 4, 2022 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Ready for review and trigger GitHub actions to run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Importing k2 on MacOS fails: image not found
1 participant