Comments (7)
You'll need the dev packages too, they're the ones that provide the version-less symlink.
from rust-ffmpeg-sys.
I'd already tried that variant, with:
sudo apt-get install libavutil-dev
This gives the same error, even after cargo clean
and a rebuild. The libavtil-dev package contains:
$ dpkg -L libavutil-dev
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libavutil-dev
/usr/share/doc/libavutil-dev/copyright
/usr/include
/usr/include/libavutil
/usr/include/libavutil/avconfig.h
/usr/include/libavutil/cpu.h
/usr/include/libavutil/samplefmt.h
/usr/include/libavutil/pixdesc.h
/usr/include/libavutil/audioconvert.h
/usr/include/libavutil/imgutils.h
/usr/include/libavutil/common.h
/usr/include/libavutil/attributes.h
/usr/include/libavutil/channel_layout.h
/usr/include/libavutil/error.h
/usr/include/libavutil/rational.h
/usr/include/libavutil/audio_fifo.h
/usr/include/libavutil/lfg.h
/usr/include/libavutil/avstring.h
/usr/include/libavutil/bswap.h
/usr/include/libavutil/log.h
/usr/include/libavutil/avassert.h
/usr/include/libavutil/random_seed.h
/usr/include/libavutil/base64.h
/usr/include/libavutil/sha.h
/usr/include/libavutil/intreadwrite.h
/usr/include/libavutil/blowfish.h
/usr/include/libavutil/lzo.h
/usr/include/libavutil/mem.h
/usr/include/libavutil/fifo.h
/usr/include/libavutil/xtea.h
/usr/include/libavutil/version.h
/usr/include/libavutil/aes.h
/usr/include/libavutil/eval.h
/usr/include/libavutil/old_pix_fmts.h
/usr/include/libavutil/intfloat_readwrite.h
/usr/include/libavutil/time.h
/usr/include/libavutil/pixfmt.h
/usr/include/libavutil/file.h
/usr/include/libavutil/intfloat.h
/usr/include/libavutil/md5.h
/usr/include/libavutil/dict.h
/usr/include/libavutil/adler32.h
/usr/include/libavutil/opt.h
/usr/include/libavutil/parseutils.h
/usr/include/libavutil/mathematics.h
/usr/include/libavutil/crc.h
/usr/include/libavutil/avutil.h
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libavutil.a
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/libavutil.pc
/usr/share/doc/libavutil-dev/changelog.Debian.gz
/usr/lib/x86_64-linux-gnu/libavutil.so
There's only a few libavutil packages listed:
> apt-cache search avutil
libavutil-dev - Development files for libavutil
libavutil-extra-52 - Libav utility library (transitional package)
libavutil52 - Libav utility library
Investigation reveals that libavutil-extra-52
is useless.
I'm not honestly sure what's up with the Ubuntu 14.04 packaging here.
from rust-ffmpeg-sys.
Are you 100% sure it still isn't finding avutil? Because /usr/lib/x86_64-linux-gnu/libavutil.so
is present now.
You'll need the dev packages for every other libav thing too.
from rust-ffmpeg-sys.
You'll need the dev packages for every other libav thing too.
Thank you so much, and yes, I feel like an idiot. It turns out that each of these libraries is packaged separately, and I only had some of them installed. I've manged to find almost all of them. But unfortunately, one library seems to be missing under Ubuntu 14.04 LTS:
note: /usr/bin/ld: cannot find -lswresample
There is a discussion of the issue here which might help.
from rust-ffmpeg-sys.
That's easily solvable.
[dependencies.ffmpeg]
default-features = false
features = ["codec", "format"]
That will only require libavutil
, libavformat
and libavcodec
.
from rust-ffmpeg-sys.
Thank you! I had tried that, but I was missing default-features
, and was still trying to pull in the missing library. But with default-features = false
it works beautifully.
Thank you very much for helping me sort out my stupid mistakes. I have finally manged to link ffmpeg
and now I'm going to try out some of the cool features you have so kindly provided. :-) Once again, I really appreciate your help.
from rust-ffmpeg-sys.
No problem, don't hesitate to open issues if you find anything, I'm also on Mozilla's IRC with the same name I have here.
from rust-ffmpeg-sys.
Related Issues (20)
- Build of `ffmpeg-sys` works, but using it as a dependency fails HOT 2
- Cross compile from linux to windows HOT 5
- regression on master: AVMotionVector
- Building twice fails when re-fetching ffmpeg
- "build" feature fails to link avresample
- Cannot perform bitwise operations on bitflag-like enums
- Build fails: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: MSVC', src\libcore\result.rs:906:4 HOT 2
- Can not build rust-ffmpeg-sys both on Fedora and Ubuntu 16.04 HOT 2
- Build fails on Windows 10 64bit: { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"libavformat\"", cause: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }} HOT 4
- Build failures due to missing libavresample HOT 2
- Publish version 4.0.2 to crate ? HOT 4
- migrate from libavresample to libswresample HOT 1
- Request about supporting FFmpeg Android build HOT 3
- Build fails on Linux with ffmpeg compiled from source HOT 2
- Can't compile with Rust 1.39 HOT 2
- cannot compile `ffmpeg-sys` HOT 2
- AVRounding can't be a rustified enum HOT 2
- Adding support for android (and others architectures) HOT 3
- Build script failing on Windows with a stack overflow
- Doesn't compile without `avcodec`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-ffmpeg-sys.