Questions tagged [colcon]
28 questions
2
votes
1 answer
Shared runtime libraries not found in ros2 at launch
I've had this issue multiple times with different libraries. The colcon build runs fine but at launch ros2 complaints that the shared objects were not found. Is there a better way to add the path other than setting $LD_LIBRARY_PATH env variable?
I…

mro47
- 83
- 5
1
vote
1 answer
Run colcon test with GDB backtrack
I would like to use the colcon test functionality to test multiple colcon packages at once by executing the following command from the terminal.
colcon test --event-handlers console_direct+ --return-code-on-test-failure --packages-select package1…

Manumerous
- 455
- 6
- 21
1
vote
0 answers
ERROR:Could not find the colcon-terminal-notifier.app in the install prefix '/usr/local
ERROR:Could not find the colcon-terminal-notifier.app in the install prefix '/usr/local
Operation OS: MacOS Monterey
ROS2 Version:Foxy
When I use the command "colcon build",The terminal post the…

nerv_zmg
- 11
- 1
1
vote
1 answer
Colcon/Ros2: Specify a different src directory?
From the documentation, I see that colcon allows one to specify different build (--build-base) and install directories (--install-base):
https://colcon.readthedocs.io/en/released/reference/verb/build.html
But is it also possible to specify a…

bremen_matt
- 6,902
- 7
- 42
- 90
1
vote
0 answers
Multiple Top-level packages discovered in a flat-layout:['share','resource'].Ros2-galactic installation,colcon build error
I'm trying to install Ros2-galactic in Ubuntu 20.04 version.
while Installing I'm facing the following issue.
--- stderr: rqt …

SPDKalyan
- 11
- 4
1
vote
0 answers
Unable to make ROS2 package (but used to be able to)
I am having trouble making a ros2 package for the Robotis Open manipulator. I was able to run this and am able to run this on a virtual machine, but my main machine is now not able to build these packages anymore. I have reinstall foxy a number of…

sardanian
- 11
- 1
1
vote
1 answer
How can I make colcon output a plain CMake project's output with the ninja generator?
Ninja redirects the stderr output to stdout. When used with colcon and its colcon-cmake extension, the error log is therefore not displayed when a ninja package build is failing.
How can I see the build error messages?

Roland Sarrazin
- 1,203
- 11
- 29
1
vote
1 answer
Colcon build fail, rclpy
Trying to Colcon build ROS2 Rolling (https://docs.ros.org/en/rolling/Installation/Ubuntu-Development-Setup.html), I've faced this error:
colcon build --symlink-install
Starting >>> rclpy
--- stderr: rclpy
CMake Error at…

Rexcirus
- 2,459
- 3
- 22
- 42
0
votes
0 answers
Error when cross-compiling ROS2 from source for CHERI arm64
I'm trying to cross-compile ROS2 Humble for Morello arm64. This architecture is near identical to standard arm64 but uses CHERI capability flags, which requires me to build everything from source.
I'm following the ROS2 cross-compile instruction,…

Nicolas
- 1
0
votes
0 answers
ROS2 cross compile colcon build: Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version "3.8.10")
cross compile question
Host: ubuntu20.04 x86_64
target: ubuntu20.04 aarch64
toolchain: gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu
sysroot: sysroot-glibc-linaro-2.25-2019.12-aarch64-linux-gnu
Before I cross compile the python
when I type the…

Ricky Yel
- 1
- 1
0
votes
0 answers
Error when building custom ros2 msg, cannot find .hpp file
I am getting this error when attempting to build my custom ros2 msg. I followed this tutorial on creating a custom ros2 msg (https://docs.ros.org/en/crystal/Tutorials/Custom-ROS2-Interfaces.html), but when i get to the final step of running:
colcon…
0
votes
1 answer
How can I fix the cudnn_cmake_module error when building Autoware with colcon?
--- stderr: trtexec_vendor
CMake Error at CMakeLists.txt:15 (find_package):
By not providing "Findcudnn_cmake_module.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"cudnn_cmake_module", but…

임승휘
- 1
0
votes
0 answers
How can I troubleshoot 'invalid initialization of reference' error while building a ROS2 package with Colcon?
I'm trying to build a package of ROS2 Galactic.
After I installed all the files and at last I tried to type "Colcon Build".
But there is an error message like followings and it is failed to build:
chiwan@Masterarbeit:~/tello_ros_ws$ colcon…

chiwan1230
- 1
- 1
0
votes
1 answer
colcon build doesn't save the changes in the code
I run ros2 (jammy distribution) on ubuntu 22.04.01 (Raspberry PI 4).
Sometimes when I run colcon build (in the terminal, after I changed the code and saved it) it doesn't save the changes.
What can be the reason for this?
I tried to delete the…

Eran Or
- 1
- 1
0
votes
0 answers
How to run ROS2 binaries without source folder
I am new to ROS. I try to build demo_nodes_cpp example. I use colcon build, source install/setup.bash to setup and ros2 run demo_nodes_cpp talker to run. All works fine.
Now I want to copy all the binary files into another machine and run it. Then I…

Josh Chiu
- 832
- 2
- 7
- 14