arturoc / gstreamer1.0-rs

Idiomatic bindings for Gstreamer on Rust.
MIT License
36 stars 14 forks source link

Error linking gstreamer libraries in Ubuntu #26

Closed aldonogueira closed 7 years ago

aldonogueira commented 7 years ago

Cargo can't find the gstreamer libraries in Ubuntu 16.04 and Ubuntu 17.04 beta.
It aborts the compilation with

= note: /usr/bin/ld: cannot find -lgstvideo-1.0 /usr/bin/ld: cannot find -lgstapp-1.0 collect2: error: ld returned 1 exit status

I can fix the problem with

cd /usr/lib/x86_64-linux-gnu sudo ln -s libgstapp-1.0.so.0 libgstapp-1.0.so sudo ln -s libgstvideo-1.0.so.0 libgstvideo-1.0.so

But it doesn't seem right.

arturoc commented 7 years ago

you probably need to install the -dev packages for these, as in libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev...

aldonogueira commented 7 years ago

Exactly! The package libgstreamer-plugins-base1.0-dev wasn't installed. Thanks!