diff --git a/scripts/install_dv_plugins.sh b/scripts/install_dv_plugins.sh index 234634981b1..6eafa79a308 100644 --- a/scripts/install_dv_plugins.sh +++ b/scripts/install_dv_plugins.sh @@ -36,25 +36,21 @@ dpkg -l apollo-neo-buildtool >/dev/null 2>&1 sudo touch /.installed && sudo sed -i 's/#include "flann\/general\.h"/#include <\/usr\/include\/flann\/general\.h>/g' /usr/include/flann/util/params.h # install dv plugins -mkdir ~/apollo_tmp -cd ~/apollo_tmp -cp -r /apollo/modules ./ -cp -r /apollo/cyber ./ -if [ -e "/apollo/.workspace.json" ]; then - cp /apollo/.workspace.json ./ -fi -sudo rm -rf modules/studio_connector - -buildtool init -buildtool install --legacy sim-obstacle studio-connector +set +e +buildtool reinstall 3rd-tf2 3rd-civetweb 3rd-ad-rss-lib +buildtool reinstall studio-connector >/dev/null 2>&1 +buildtool reinstall sim-obstacle >/dev/null 2>&1 +set -e sudo cp -f /etc/ld.so.conf.d/apollo.conf /etc/ld.so.conf.d/apollo_pkg.conf -# remove buildtool and tmp dir +# remove buildtool sudo apt remove -y apollo-neo-buildtool -rm -rf ~/apollo_tmp + mv /opt/apollo/neo/setup.sh.bak /opt/apollo/neo/setup.sh + sudo ldconfig ok "Successfully install dreamview plugins." ok "Please restart dreamview. Enjoy!" +