Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare required development packages #47

Closed
fenollp opened this issue Nov 22, 2015 · 2 comments
Closed

Declare required development packages #47

fenollp opened this issue Nov 22, 2015 · 2 comments

Comments

@fenollp
Copy link

fenollp commented Nov 22, 2015

I have trouble linking on Debian 8 and OSX 10.11.
Could you guys write a quick list of dep+vsn in /README.md?

On debian I have this:

error: linking with `cc` failed: exit code: 1
note: "cc" "-Wl,--as-needed" "-m64" "-L" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/pete/wefwefwef/chaptrs.git/target/debug/chaptrs.0.o" "-o" "/home/pete/wefwefwef/chaptrs.git/target/debug/chaptrs" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/pete/wefwefwef/chaptrs.git/target/debug" "-L" "/home/pete/wefwefwef/chaptrs.git/target/debug/deps" "-L" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/home/pete/wefwefwef/chaptrs.git/.rust/lib/x86_64-unknown-linux-gnu" "-L" "/home/pete/wefwefwef/chaptrs.git/lib/x86_64-unknown-linux-gnu" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/pete/wefwefwef/chaptrs.git/target/debug/deps/libffmpeg-805255d617bd8363.rlib" "/home/pete/wefwefwef/chaptrs.git/target/debug/deps/libffmpeg_sys-fadf153a42f32bb4.rlib" "/home/pete/wefwefwef/chaptrs.git/target/debug/deps/liblibc-540159808ccfa9ab.rlib" "/home/pete/wefwefwef/chaptrs.git/target/debug/deps/libbitflags-eec34728826d9769.rlib" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8cf6ce90.rlib" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-8cf6ce90.rlib" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-8cf6ce90.rlib" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-8cf6ce90.rlib" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-8cf6ce90.rlib" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-8cf6ce90.rlib" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-8cf6ce90.rlib" "/home/pete/.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8cf6ce90.rlib" "-l" "avutil" "-l" "avcodec" "-l" "avdevice" "-l" "avformat" "-l" "avfilter" "-l" "avresample" "-l" "swresample" "-l" "swscale" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "rt" "-l" "pthread" "-l" "c" "-l" "m" "-Wl,-rpath,$ORIGIN/../../../../.multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-rpath,/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "compiler-rt"
note: /usr/bin/ld: cannot find -lswresample
collect2: error: ld returned 1 exit status

Mainly: does it depend on ffmpeg (from the Ffmpeg project), avconv (because both my platforms ask for libavutil)?
Or: do you know an easy way to install libavutil on debian or osx?
I think I'll test my code using only Travis CI for now :D

@meh
Copy link
Owner

meh commented Nov 22, 2015

We're trying to figure that out, see ongoing discussion here.

@meh meh closed this as completed Nov 22, 2015
This was referenced Apr 9, 2021
@klesun
Copy link

klesun commented Apr 9, 2021

sudo apt-get install libavutil-dev
sudo apt-get install libavformat-dev
sudo apt-get install libavfilter-dev
sudo apt-get install libavdevice-dev
sudo apt-get install libclang-dev

See meh/rust-ffmpeg-sys#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants