代码拉取完成,页面将自动刷新
同步操作将从 智路理事会/airos-edge 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#! /usr/bin/env bash
OUT_DIR="/home/airos/os"
# 3rd
for lib in $(ls "/opt/local")
do
if [ -e "/opt/local/${lib}" ]; then
export LD_LIBRARY_PATH=/opt/local/${lib}/lib:$LD_LIBRARY_PATH
fi
done
# cyberRT
source /opt/local/cyber-rt/setup.bash
export PYTHONPATH="/usr/local/lib/python2.7/dist-packages/protobuf-3.14.0-py2.7.egg:${PYTHONPATH}"
export GLOG_log_dir="/home/airos/log"
mkdir -p ${GLOG_log_dir}
export LD_LIBRARY_PATH=${OUT_DIR}/3rd:$LD_LIBRARY_PATH
# airservice
export LD_LIBRARY_PATH=${OUT_DIR}/lib:$LD_LIBRARY_PATH
# package
pkg_dir=(modules app)
for pkg in "${pkg_dir[@]}"; do
for sub_dir in "${pkg}"/lib/*; do
if [ -d "$sub_dir" ]; then
export LD_LIBRARY_PATH="$sub_dir:$LD_LIBRARY_PATH"
if [ -d "${sub_dir}/lib" ]; then
export LD_LIBRARY_PATH="${sub_dir}/lib:$LD_LIBRARY_PATH"
fi
fi
done
done
for all_device in ${OUT_DIR}/device/lib/*; do
for device in "${all_device[@]}"; do
for pkg in ${device}/*; do
export LD_LIBRARY_PATH="$pkg:$LD_LIBRARY_PATH"
if [ -d "${pkg}/lib" ]; then
export LD_LIBRARY_PATH="${pkg}/lib:$LD_LIBRARY_PATH"
fi
done
done
done
export PATH=${OUT_DIR}/launch/:$PATH
# env
export PARAM_DIR="/home/airos/param/"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。