ros-visualization / visualization_tutorials

Tutorials related to using and extending RViz and interactive_markers.
262 stars 263 forks source link

Compilation fails with Ogre 1.9 on Arch Linux #15

Closed bchretien closed 10 years ago

bchretien commented 10 years ago

Here's the kind of errors we get with rviz_plugin_tutorials:

/opt/ros/hydro/include/rviz/mesh_loader.h:33:22: fatal error: OgreMesh.h: No such file or directory
 #include <OgreMesh.h>
                      ^
/opt/ros/hydro/include/rviz/properties/parse_color.h:35:29: fatal error: OgreColourValue.h: No such file or directory
 #include <OgreColourValue.h>
                             ^

Indeed, in parse_color.h, we find:

#include <OgreColourValue.h> 

However, headers are in /usr/include/OGRE, as explained in /usr/lib/pkgconfig/OGRE.pc:

Cflags: -I${includedir} -I${includedir}/OGRE -pthread

Thus, those C/C++ flags should be taken into account when compiling these tutorials. Since Ogre checking does not seem to be done, this should be fixed while adding pkg-config support.

This may also happen in the other tutorials.

bchretien commented 10 years ago

Fixed in catkin.