Closed wyfwyfwyf1234567 closed 4 weeks ago
First, please tell me how to reproduction this.. (From ros2-jazzy installatin)
The reproduction steps:
Don't use colcon with sudo
. You can build without admin privileges.
[!TIP] Why is colcon installed with
sudo pip install colcon-common-extensions
? -> Because you need admin privileges to install under /usr/local/bin. You can usewhich colcon
to check where thecolcon
command is located.
However, I didn't get the same error log as yours, so I don't know if this will solve the problem.
Thanks for your reply. it didn't work for me. May be I need to find other solution. thank you.
Maybe your ROS environment is broken...
Please show me the console result of find /opt/ros/ -name rclcppConcifg.cmake
.
Expected result is /opt/ros/jazzy/share/rclcpp/cmake/rclcppConfig.cmake
The console result shows nothing....
It is likely that the dpkg is corrupt or has disappeared due to an unexpected error during installation (or subsequent operation).
In fact, I found rclcppConfig.cmake
from https://s3.ap-northeast-1.wasabisys.com/download-raw/dpkg/ros2-desktop/debian/bookworm/ros-jazzy-desktop-0.3.2_20240525_arm64.deb
. (same pkg from your procedure)
Reinstall it and check that there are no errors in its execution process.
~$ dpkg -c ros-jazzy-desktop-0.3.2_20240525_arm64.deb | grep rclcppConfig.cmake
-rw-r--r-- root/root 1379 2024-05-25 10:27 ./opt/ros/jazzy/share/rclcpp/cmake/rclcppConfig.cmake
-rw-r--r-- root/root 1336 2024-05-25 10:27 ./opt/ros/jazzy/share/test_rclcpp/cmake/test_rclcppConfig.cmake
I reinstalled the bookworm on raspberry pi 5 and then reinstalled the sudo apt install ./ros-jazzy-desktop-0.3.2_20240525_arm64.deb
. The colsole shows following result. (Notice)
Then I try to do colcon build
according to the reproduction steps. The colsole shows the result:
Then I type dpkg -c ros-jazzy-desktop-0.3.2_20240525_arm64.deb | grep ament_cmakeConfig.cmake
the result is showed below.
The package is already included in the deb, but it cannot be found. This may be the problem. Could you please give me some suggestions? Thanks
Your log during installation look like same as mine...
If you can find the file with find /opt/ros/ -name rclcppConcifg.cmake
, try deleting the build cache. (maybe you've already run)
rm -rf ~/ros2_ws/install ~/ros2_ws/build
# after removing the cache, run following
source /opt/ros/jazzy/setup.bash
colcon build
I tried to build the official example in the official docker image, and the same error occurred. I tried the ros2 code provided by others, and it built normally. So I guess there is a problem in the official example. Thank you for your help.:>
Hi! Thank you for sharing the files. I have installed the jazzy on raspberry pi 5 (bookworm) according to your instruction. However, when I run the conmand 'colcon build', the following error occurs. Could you please help me fix the problem?