Robotics StackExchange | Archived questions

when build gazebo ,how to assign it to include ogre 1.8

Because I had installed ogre1.8, then, I installed ogre1.9 again.

Now ,when I build gazebo 2.0

It comes to an error

Bad Ogre3d version: gazebo using 1.9.0 ogre version has known bugs in runtime (issue #996). Please use 1.7 or 1.8 series

I don't know how to assign gazebo ogre 1.8

I tried to use cmake-gui to find if there is a name such as "ogre" "path"

but I could not find such name like that.

I also tried to enter:

export OGRE_HOME=/usr/local/ogre1.8

but it still didn't work

Thanks for help!

Asked by Zheng yo chen on 2014-05-19 19:11:02 UTC

Comments

which ubuntu are you running? you might get it with apt-get

Asked by AndreiHaidu on 2014-05-20 06:44:31 UTC

I'm running ubutu 12.04. installing gazebo by "apt-get" may be one easy solution, but,I wan to know how to assign gazebo to a specific include. I think it's important to understand it. because ,maybe I'll face similar problem while build other software or library.

Asked by Zheng yo chen on 2014-05-20 21:54:36 UTC

sorry, i meant getting ogre with apt-get, but version 1.8 is not available that way in 12.04, you could try installing libogre-dev with apt-get, that will get you ogre-1.7.4-3 which suffices for gazebo

Asked by AndreiHaidu on 2014-05-21 01:46:53 UTC

Answers

Gazebo cmake system is looking for ogre via pkg-config. You could try something like:

export PKG_CONFIG_PATH=/home/foo/libogre-1.8/pkgconfig_directory:$PKG_CONFIG_PATH

or even pass it during cmake configuration phase:

cmake .. -DPKG_CONFIG_PATH=/home/foo/libogre-1.8/pkgconfig_directory:$PKG_CONFIG_PATH

Untested, just an idea.

Asked by Jose Luis Rivero on 2014-05-21 17:30:03 UTC

Comments