environment-setup-cortexa53-crypto-poky-linux
然后source environment-setup-cortexa53-crypto-poky-linux 即可进行编译
# Check for LD_LIBRARY_PATH being set, which can break SDK and generally is a bad practice
# http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80
# http://xahlee.info/UnixResource_dir/_/ldpath.html
# Only disable this check if you are absolutely know what you are doing!
if [ ! -z "$LD_LIBRARY_PATH" ]; then
echo "Your environment is misconfigured, you probably need to 'unset LD_LIBRARY_PATH'"
echo "but please check why this was set in the first place and that it's safe to unset."
echo "The SDK will not operate correctly in most cases when LD_LIBRARY_PATH is set."
echo "For more references see:"
echo " http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80"
echo " http://xahlee.info/UnixResource_dir/_/ldpath.html"
return 1
fi
export PATH=$PATH:/work//buildroot/output/rockchip_rk356x_robot/
export LD_LIBRARY_PATH=/work/7/buildroot/output/rockchip_rk356x_robot/host/lib/
export SYSROOT=/work//buildroot/output/rockchip_rk356x_robot/host/aarch64-buildroot-linux-gnu/sysroot/
export CC=/work/buildroot/output/rockchip_rk356x_robot/host/bin/aarch64-buildroot-linux-gnu-gcc
export CXX=/work/buildroot/output/rockchip_rk356x_robot/host/bin/aarch64-buildroot-linux-gnu-g++
export CROSS_COMPILE=/work/buildroot/output/rockchip_rk356x_robot/host/bin/aarch64-buildroot-linux-gnu-
export STRIP=/work/buildroot/output/rockchip_rk356x_robot/host/bin/aarch64-buildroot-linux-gnu-strip
export TARGET_ARCH=aarch64
export PYTHONPATH=/work/buildroot/output/rockchip_rk356x_robot/target/opt/ros/lib/python3.9/site-packages
export AMENT_PREFIX_PATH=/opt/ros/foxy
export CMAKE_PREFIX_PATH="/work/buildroot/output/rockchip_rk356x_robot/target/opt/ros"
export OpenCV_DIR="/work/buildroot/output/rockchip_rk356x_robot/host/aarch64-buildroot-linux-gnu/sysroot/usr/share/OpenCV"
export OECORE_TARGET_ARCH="aarch64"
export OECORE_TARGET_OS="linux"