Skip to content

Commit

Permalink
fix: optimize dv-plugins installation
Browse files Browse the repository at this point in the history
  • Loading branch information
WildBeast114514 committed Feb 28, 2024
1 parent 3859bee commit 43922a0
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions scripts/install_dv_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"

0 comments on commit 43922a0

Please sign in to comment.