Gazebo | Ignition | Community
Ask Your Question
1

Building examples from ignition rendering with colcon?

asked 2021-06-30 06:23:53 -0600

ddengster gravatar image

trying to build the simple_demo example in ignition-rendering has given me compile errors.

Here's the compile error: home/ddeng/ign_rendering_ws/src/ign-rendering/examples/simple_demo/Main.cc:30:10: fatal error: ignition/common/Console.hh: No such file or directory #include <ignition/common/Console.hh>

For reference here’s the github link: https://github.com/ignitionrobotics/i...

This all signifies that I'm missing ign-common. However, if I use the colcon build method with all the ignition dependencies in the src folder, I am unable to find the binaries for it - it looks like it wasn't built at all. Is there any way to get the examples to build correctly? Preferably with the colcon build manner of building.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-06-30 08:32:56 -0600

chapulina gravatar image

We have compilation instructions for that example using CMake here:

https://ignitionrobotics.org/api/rend...

It looks like you may not have sourced your Ignition installation? Did you source install/setup.sh from your Ignition colcon workspace?

Preferably with the colcon build manner of building.

I just tried here, and if you have all dependencies correctly installed and sourced, running colcon build inside examples/simple_demo works 👍

edit flag offensive delete link more

Comments

ah thanks, that worked! 👍

ddengster gravatar imageddengster ( 2021-06-30 22:46:29 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2021-06-30 06:21:39 -0600

Seen: 207 times

Last updated: Jun 30 '21