Skip to content

Fix setup_acados.sh#90

Open
N0OBSTUDENT wants to merge 1 commit into
learnsyslab:mainfrom
N0OBSTUDENT:main
Open

Fix setup_acados.sh#90
N0OBSTUDENT wants to merge 1 commit into
learnsyslab:mainfrom
N0OBSTUDENT:main

Conversation

@N0OBSTUDENT
Copy link
Copy Markdown
Collaborator

The former acados setup script OVERWRITEs the whole environment variable LD_LIBRARY_PATH, making other library paths not visible.

The former acados setup script OVERWRITE the whole environment variable LD_LIBRARY_PATH, making other library paths not accessible.
Comment thread tools/setup_acados.sh
export ACADOS_SOURCE_DIR="$ACADOS_DIR"
export ACADOS_INSTALL_DIR="$ACADOS_DIR"
export LD_LIBRARY_PATH="$ACADOS_DIR/lib"
export LD_LIBRARY_PATH="$ACADOS_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work even if the LD_LIBRARY_PATH is not set?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I suppose this is equivalent to something like

LD_LIBRARY_PATH = f"{ACADOS_DIR}/lib" + (f":{LD_LIBRARY_PATH}" if LD_LIBRARY else "")

in python

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.

2 participants