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

can't find lmpv c lib #24

Open
OHNONOTAMOTH opened this issue May 12, 2022 · 1 comment
Open

can't find lmpv c lib #24

OHNONOTAMOTH opened this issue May 12, 2022 · 1 comment

Comments

@OHNONOTAMOTH
Copy link

I created a project using libmpv and it gave this error at compilation.

error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.10dzegj87tzc8h81.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.12148s2g01yckjua.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.14j6wkyk3g6qde6o.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.1e2vi888eqf45hdy.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.1eupdzly8b1dkl2b.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.1fhw4jqgjukvh43k.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.1ik4coqpcdy9zhic.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.1jtu3pik7by2fa0j.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.1pj2cgsidy5mydye.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.1rf4svcseqeljt44.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.1ryw1cdwq186jc4y.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.210c7mdfxc8mu5z.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.221knjik4kk9q3zp.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.265i1aw9xs1td4r5.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.2b0mze02wkrcx3wi.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.2vw2v4uznrc11ub6.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.2zxz7a07yeuvn6y7.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.34g5akbxgwmeqafo.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.356e1fiwa4hkthe7.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.3bh07nik8m6efvh8.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.3lm6p38rheaf1vmz.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.3xywgtiml7odf4w7.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.40he0x6fwhizg03q.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.4bcaw2les9d6z4po.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.4fz6w9a344fsxdxg.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.4htsipr4wk5gppdb.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.4la02tre3c2slt23.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.5erxec32jpeu3t6e.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.jbjhzpc04u6i62k.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.nkgky7749v0paez.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.pv9p3j3p271n30y.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.q2xjhpulejmuoxa.rcgu.o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226.4rrhsx2va6t2rlwi.rcgu.o" "-Wl,--as-needed" "-L" "/home/moth/mpv-ipfs/target/debug/deps" "-L" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/moth/mpv-ipfs/target/debug/deps/liblibmpv-84324723fa2d2ad7.rlib" "/home/moth/mpv-ipfs/target/debug/deps/liblibmpv_sys-594976e67f007387.rlib" "/home/moth/mpv-ipfs/target/debug/deps/libipfs-48f51c9b81cdd372.rlib" "-Wl,--start-group" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8d61b92a0a02f53a.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fc45202bb435016b.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f2400674c7513725.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-605c3a7d1a5d300d.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3d4fb4efa907e4e8.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-65207f030ab23308.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-76ca199cb0186109.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1e3e01ed4f561dc1.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd8dddcba7c13fee.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-00b13d31c3420656.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e4c8460b81557bd5.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-600d46e5f0005455.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e4a08a2585b62d37.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-fbc21ec567cb9dc7.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-10b3fa8e49bd978f.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-64625b73694ffce7.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-fb6b78ac543a58ee.rlib" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1d1f2d1bec6f51b8.rlib" "-Wl,--end-group" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-acf5ff6e9595d982.rlib" "-Wl,-Bdynamic" "-lmpv" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/moth/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/moth/mpv-ipfs/target/debug/deps/mpv_ipfs-ba29048c7f913226" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs"
  = note: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmpv
          collect2: error: ld returned 1 exit status

I have mpv installed.
I am on gentoo linux if that matters.

@ParadoxSpiral
Copy link
Owner

Do you have this enabled?

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

2 participants