-
Notifications
You must be signed in to change notification settings - Fork 9.9k
acados: relative rpath #35624
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
acados: relative rpath #35624
Conversation
You will probably also need to change the paths for these kernels: openpilot/selfdrive/modeld/SConscript Lines 24 to 26 in f726717
|
on macos master:
this branch:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the build system to use relative runtime paths (rpath) for acados library dependencies instead of hardcoded absolute paths. The changes improve portability by making the built libraries locate their dependencies relative to their installation location rather than relying on environment variables.
- Replaces absolute LD_LIBRARY_PATH/DYLD_LIBRARY_PATH environment variables with relative $ORIGIN-based rpath settings
- Updates both longitudinal and lateral MPC library build configurations to use consistent relative pathing
- Modifies linking approach for Cython modules to use LIBPATH and explicit library names instead of absolute paths
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
SConstruct | Removes hardcoded LD_LIBRARY_PATH and DYLD_LIBRARY_PATH, initializes empty rpath list |
selfdrive/controls/lib/longitudinal_mpc_lib/SConscript | Adds relative rpath configuration for acados dependencies and updates Cython linking |
selfdrive/controls/lib/lateral_mpc_lib/SConscript | Adds relative rpath configuration and Darwin-specific linking flags for lateral MPC |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
This reverts commit a55077f.
This reverts commit 07a6a26.
No description provided.