Gazebo | Ignition | Community
Ask Your Question

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

asked 2014-05-19 19:11:02 -0500

Zheng yo chen gravatar image

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!

edit retag flag offensive close merge delete


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

AndreiHaidu gravatar imageAndreiHaidu ( 2014-05-20 06:44:31 -0500 )edit

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.

Zheng yo chen gravatar imageZheng yo chen ( 2014-05-20 21:54:36 -0500 )edit

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

AndreiHaidu gravatar imageAndreiHaidu ( 2014-05-21 01:46:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-21 17:30:03 -0500

Jose Luis Rivero gravatar image

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2014-05-19 19:11:02 -0500

Seen: 533 times

Last updated: May 21 '14