skip to Main Content

When trying to use gazebo on ubuntu 20.04 with ros-noetic I got the error

gazebo: error while loading shared libraries: libopenh264.so.5: cannot open shared object file: No such file or directory

Can anyone help me with this issue?
Thanks in advance.

I tried to simply run

gazebo

when running the command

apt search libopenh264

I get

Sorting... Done
Full Text Search... Done

2

Answers


  1. Chosen as BEST ANSWER

    I fixed this issue by building openh264 from the source. I chose the version v2.0.0 which creates the libopenh264.so.5 shared object file. Newer versions created objects like libopenh264.so.7 and didn't work.

    git clone -b v2.0.0 https://github.com/cisco/openh264
    cd openh264
    make -j4
    sudo make install
    ls /usr/local/lib
    # libopenh264.so.5 ........
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    ls ${PKG_CONFIG_PATH}
    #openh264.pc
    

  2. wget http://ciscobinary.openh264.org/libopenh264-1.8.0-linux64.4.so.bz2
    
    bunzip2 libopenh264-1.8.0-linux64.4.so.bz2
    
    sudo mv libopenh264-1.8.0-linux64.4.so /usr/lib/x86_64-linux-gnu/libopenh264.so.5
    
    sudo ldconfig
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search