Giter VIP home page Giter VIP logo

Comments (7)

meh avatar meh commented on June 30, 2024

You'll need the dev packages too, they're the ones that provide the version-less symlink.

from rust-ffmpeg-sys.

emk avatar emk commented on June 30, 2024

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.

meh avatar meh commented on June 30, 2024

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.

emk avatar emk commented on June 30, 2024

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.

meh avatar meh commented on June 30, 2024

That's easily solvable.

[dependencies.ffmpeg]
default-features = false
features = ["codec", "format"]

That will only require libavutil, libavformat and libavcodec.

from rust-ffmpeg-sys.

emk avatar emk commented on June 30, 2024

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.

meh avatar meh commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.