Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
Fix path error
Browse files Browse the repository at this point in the history
  • Loading branch information
f0reachARR committed Oct 26, 2023
1 parent 64872af commit 4ef88f7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 67 deletions.
8 changes: 6 additions & 2 deletions docker/scripts/cross_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export SYSROOT=/root/rootfs
export PYTHON_LIBRARY="${SYSROOT}/usr/lib/aarch64-linux-gnu/libpython3.10.so"
export PYTHON_INCLUDE_DIR="${SYSROOT}/usr/include/python3.10"

source /root/ros2/install/setup.bash
if [ -f /root/ros2/install/setup.bash ]; then
source /root/ros2/install/setup.bash
fi

colcon \
build \
Expand All @@ -26,4 +28,6 @@ colcon \
-DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR \
"$@"

chown -R $UID:$GID /root/ros2
if [ -d /root/ros2_ws ]; then
chown -R $UID:$GID /root/ros2_ws
fi
1 change: 0 additions & 1 deletion ros2_cross_compile
Submodule ros2_cross_compile deleted from 654f0d
3 changes: 2 additions & 1 deletion scripts/release/alias_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ setup_colcon_cross() {
ros2_arm64_cross "$@"

echo "Rewriting path of packages"
find $PWD/install/share/ament_index/resource_index/parent_prefix_path -type f -exec sed -i s%/root/ros2%$PWD% {} ";"
find $PWD/install/share/ament_index/resource_index/parent_prefix_path -type f -exec sed -i s%/root/ros2_ws%$PWD% {} ";"
find $PWD/install/share/ament_index/resource_index/parent_prefix_path -type f -exec sed -i s%/root/ros2/install%/opt/ros/$ROS_DISTRO% {} ";"
}

export -f colcon_cross_build
Expand Down
61 changes: 0 additions & 61 deletions scripts/release/build_ros2.sh

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/system/build_ros2_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ fi
echo "Building ROS system..."
docker run --rm $TTY_OPTS \
--volume $PWD/ros2_sysroot:/root/rootfs \
--volume $PWD/ros2_humble:/root/ros2_ws \
-w /root/ros2_ws \
--volume $PWD/ros2_humble:/root/ros2 \
-w /root/ros2 \
--entrypoint /bin/bash \
--env UID=`id -u` \
--env GID=`id -g` \
Expand Down

0 comments on commit 4ef88f7

Please sign in to comment.