You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building ros2 project with the external library and this external library depends on another third-party libary with CMake's ExternalProject_Add functionality.(I installed colcon with apt(sudo apt install python3-colcon-common-extensions) and OS is Ubuntu 18.04 LTS2)
So my project has structure like below
main
third-party
another third-party with external project add function
The problem is, if the third-party's external project has any CMake message function inside it and executed, colcon output shows build has stderr output even if the code compilation itself has no errors or warnings.
The output below is what I got when build my project and "OS is linux" and "LIB_DIR: lib" is just the CMake messages
Starting >>> azero_interfaces
Finished <<< azero_interfaces [2.97s]
Starting >>> azero_core
Starting >>> azero_drive_configurator
Starting >>> azero_drive_status_monitor
Starting >>> azero_joy_controller
Finished <<< azero_drive_configurator [0.75s]
Finished <<< azero_drive_status_monitor [0.74s]
Finished <<< azero_joy_controller [0.94s]
--- stderr: azero_core
OS is linux
LIB_DIR: lib
OS is linux
LIB_DIR: lib
---
Finished <<< azero_core [8.21s]
Summary: 5 packages finished [11.3s]
1 package had stderr output: azero_core
The part of CMakelist.txt of third-party's external project is something like below.
colcon simply shows you all the output which CMake prints on stderr. The build succeeded either way.
Please see the CMake docs about message(). A message() call without specifying a severity as a first keyword results in an "important" message to be printed to stderr.
If you don't want the message to appear in stderr (which I would only suggest for errors / problems / warning) you might want to use message(STATUS ...) instead.
You should check if you have installed pip3 list on your terminal , if not install it by cmd (sudo apt install python3-pip) and than check for pip3 lists . Further check your setuptools vesion by cmd ( pip3 list | grep setuptools) and it will be something like 5.9.xx you should downgrade it to 5.8.2 by cmd ( pip install setuptools==58.2.0) for me this removed it and package was build successfully
Hi
I'm building ros2 project with the external library and this external library depends on another third-party libary with CMake's ExternalProject_Add functionality.(I installed colcon with apt(sudo apt install python3-colcon-common-extensions) and OS is Ubuntu 18.04 LTS2)
So my project has structure like below
The problem is, if the third-party's external project has any CMake message function inside it and executed, colcon output shows build has stderr output even if the code compilation itself has no errors or warnings.
The output below is what I got when build my project and "OS is linux" and "LIB_DIR: lib" is just the CMake messages
The part of CMakelist.txt of third-party's external project is something like below.
I tested with different messages and showed same stderr output.
If the messages are commeted out, colcon showed success with no error.
Thank you in advance.
The text was updated successfully, but these errors were encountered: