diff --git a/scripts/apollo_base.sh b/scripts/apollo_base.sh index fe5ecddbd8e..e5f237a4add 100755 --- a/scripts/apollo_base.sh +++ b/scripts/apollo_base.sh @@ -733,7 +733,7 @@ function run_bazel() { if [[ "$(uname -m)" == "x86_64" ]]; then job_args="--copt=-mavx2 --host_copt=-mavx2 --jobs=${count} --local_ram_resources=HOST_RAM*0.7" else - job_args="--copt=-march=native --host_copt=-march=native --jobs=${count} --local_ram_resources=HOST_RAM*0.7" + job_args="--copt=-march=native --host_copt=-march=native --jobs=${count} --local_ram_resources=HOST_RAM*0.7 --copt=-fPIC --host_copt=-fPIC" fi set -x bazel ${1,,} ${CMDLINE_OPTIONS} ${job_args} -- ${formatted_targets} diff --git a/scripts/install_dv_plugins.sh b/scripts/install_dv_plugins.sh index fd0f9eed287..96de86e81d0 100644 --- a/scripts/install_dv_plugins.sh +++ b/scripts/install_dv_plugins.sh @@ -41,6 +41,7 @@ if [ -e "/apollo/.workspace.json" ]; then cp /apollo/.workspace.json ./ fi sudo rm -rf modules/studio_connector +sudo cp /etc/ld.so.conf.d/apollo.conf /etc/ld.so.conf.d/apollo_source.conf buildtool init buildtool install --legacy sim-obstacle studio-connector @@ -49,6 +50,7 @@ buildtool install --legacy sim-obstacle studio-connector 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!" \ No newline at end of file +ok "Please restart dreamview. Enjoy!"