Open osrf-migration opened 9 years ago
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
I don't understand why this error occurs. As you mentioned in the link, the gazebo.pc file has a Requires
entry for ignition-math2
. Do you need to use the GAZEBO_CFLAGS
variable?
Original report (archived issue) by John Hsu (Bitbucket: hsu, GitHub: hsu).
Since pull request #1534, gazebo depends on ign-math. If an external library depends on gazebo and includes
gazebo/math/Vector3.hh
, and it uses pkgconfig, it will fail to compile with following error:unless we make downstream package depend on ignition-math2 as well.
On the contrary, the ignition-math2 flags are added directly to gazebo-config.cmake.
This seems a bit inconsistent on how pkgconfig and cmake config files are generated?