ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I came across the sameenter code here
issue today, and after digging up a little, I was able to solve this by using the --symlink-install
flag.
How to reproduce the solution:
mkdir -p test_ws/src
cd test_ws/src
ros2 pkg create --build-type ament_python foo
cd ../
colcon build
This obviously builds fine.
Now :
rm -rf build install log
mv src/foo ..
ln -s $(pwd)/../foo src/foo
colcon build
This fails.
But now
rm -rf build install log
colcon build --symlink-install
should build successfully.
2 | No.2 Revision |
I came across the samesame issue today, and after digging up a little, I was able to solve this by using the enter code here
--symlink-install
flag.
How to reproduce the solution:
mkdir -p test_ws/src
cd test_ws/src
ros2 pkg create --build-type ament_python foo
cd ../
colcon build
This obviously builds fine.
Now :
rm -rf build install log
mv src/foo ..
ln -s $(pwd)/../foo src/foo
colcon build
This fails.
But now
rm -rf build install log
colcon build --symlink-install
should build successfully. successfully.