fix acados libs on neos (#22172)

Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
Adeeb Shihadeh
2021-09-08 19:11:14 -07:00
committed by GitHub
parent 0a75a66537
commit 02a83fdcb3
5 changed files with 17 additions and 3 deletions

View File

@@ -38,7 +38,21 @@ cp -r $DIR/acados_repo/lib $INSTALL_DIR
cp -r $DIR/acados_repo/interfaces/acados_template/acados_template $DIR/../../pyextra
#pip3 install -e $DIR/acados/interfaces/acados_template
# hack to workaround no rpath on android
if [ -f /EON ]; then
pushd $INSTALL_DIR/lib
for lib in $(ls .); do
if ! readlink $lib; then
patchelf --set-soname "$PWD/$lib" $lib
fi
done
popd
fi
# build tera
cd $DIR/acados_repo/interfaces/acados_template/tera_renderer/
cargo build --verbose --release
cp target/release/t_renderer $INSTALL_DIR/
# build with commaai/termux-packages for NEOS
if [ ! -f /EON ]; then
cd $DIR/acados_repo/interfaces/acados_template/tera_renderer/
cargo build --verbose --release
cp target/release/t_renderer $INSTALL_DIR/
fi