Ask Your Question
0

how to get gcc or g++ command when using "colcon build" in ros2?

asked 2018-08-20 05:07:24 -0600

lxbeyond gravatar image

in ros2 ardent version, I can get compile command by "set(CMAKE_VEBOSE_MAKEFILE TRUE)" in CmakeLists.txt, but I can't find these message in ros2 bouncy, anyone can help me ?

edit retag flag offensive close merge delete

Comments

You mean when you start the build? You can do something like: --cmake-args -CMAKE_VEBOSE_MAKEFILE=TRUE when launching colcon command line.

pokitoz gravatar imagepokitoz ( 2018-08-20 08:07:44 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-08-20 11:01:25 -0600

Dirk Thomas gravatar image

If the CMake code hasn't changed I would expect colcon to behave the same as ament_tools (since it is basically invoking CMake and Make for you).

By default colcon doesn't show the output from stdout. Have you tried enabling the output as mentioned in the docs?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-08-20 05:07:24 -0600

Seen: 110 times

Last updated: Aug 20 '18