I guess if you are here you have the same question as I did, how to install Gazebo on openSUSE.

What you have to do in order to install simulator Gazebo is to find or build it’s rpm package. Thankfully some guy who goes by the nickname awissu has already built an rpm package.

Go download and install it. In my case I downloaded gazebo-7.0.0-13.1.x86_64.rpm

> sudo zypper in gazebo-7.0.0-13.1.x86_64.rpm

Wow (!) installation succeeded, but if you go to run the gazebo you get an error:

> gazebo
> gazebo: error while loading shared libraries: libignition-math2.so.2: cannot open shared object file: No such file or directory

Okay, now let’s go and solve this problem. Instructions on how to Build And Install ignition math follow. /* you will need to install package mercurial if you don’t already have it */

  1. Setup local repository:
    > hg clone https://bitbucket.org/ignitionrobotics/ign-math /tmp/ign-math
    > cd /tmp/ign-math
    > hg up ign-math2
  2. Make build folder:
    > mkdir build
    > cd build
  3. Build and install:
    > cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    > make -j4 ## Here put the number of your computer's cores instead of 4
    > sudo make install

Let’s try again!

> gazebo
> Error [parser.cc:62] Unable to find or open SDF file[root.sdf]

Damn.. It still doesn’t work.
It’s time to install now SDFormat [Build And Install SDFormat]. Similar as ignition math we have:

  1. Init repo
    > hg clone https://bitbucket.org/osrf/sdformat /tmp/sdformat
    > cd /tmp/sdformat
    > hg up sdf3
  2. To make the build folder:
    > mkdir build
    > cd build
  3. And to actual build it:
    > cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    > make -j4
    > sudo make install

Fingers crossed. Let’s hope third time is the charm. Yaaayyyy, it finally works!



Until next time.

— flanaras