catkin_package() DEPENDS on 'gazebo' but neither 'gazebo_INCLUDE_DIRS' nor 'gazebo_LIBRARIES' is defined.
参考
- make use of DEPENDS in catkin_package(…)
- DEPENDS in catkin_package() not adding package INCLUDE_DIRS
原因
-
This will not work in every listed case. In order to list something in DEPENDS, it needs to have matching case varaible names. For example, you put Ogre in the DEPENDS section, but Ogre produces these variables: OGRE_INCLUDE_DIRS and OGRE_LIBRARIES. Because the case is different, catkin has no way of mapping the name you give it to the variables which it produces. Others might work, like urdfdom, but Qt, Eigen, Ogre, and OpenGL will not work like this and you need to manually pass the correct variables along to INCLUDE_DIRS and LIBRARIES accordingly.
-
That is exactly correct, if the p