ParadoxSpiral / libmpv-rs

A libmpv abstraction written in rust that's easy to use and provides the ability to read next to all video and audio codecs.
GNU Lesser General Public License v2.1
99 stars 35 forks source link

Proper step to build on Linux #29

Open maulik9898 opened 1 year ago

maulik9898 commented 1 year ago

How can I make this work on Linux. I am able to use this in windows, but on Linux I am not sure how it can be done.

Sandvoxel commented 1 year ago

sudo apt install libmpv-dev

maulik9898 commented 1 year ago

its giving me this error Error: VersionMismatch { linked: 131072, loaded: 65645 }.

Cargo.toml

name = "mpv-rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
#libmpv = {git = "https://github.com/StratusFearMe21/libmpv-rs" , features = ["build_libmpv"]}
# libmpv = {version= "2.0.1" , features = ["build_libmpv"]}
libmpv = {git="https://github.com/ParadoxSpiral/libmpv-rs"}
❯ apt-cache showpkg libmpv-dev
Package: libmpv-dev
Versions:
0.34.1-1ubuntu3 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_jammy_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_jammy_universe_binary-amd64_Packages
                  MD5: 75dc37959dc839bda92d807f6bf8032d
 Description Language: en
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_jammy_universe_i18n_Translation-en
                  MD5: 75dc37959dc839bda92d807f6bf8032d

Reverse Depends:
  multimedia-devel,libmpv-dev
Dependencies:
0.34.1-1ubuntu3 - libmpv1 (5 0.34.1-1ubuntu3)
Provides:
0.34.1-1ubuntu3 -
Reverse Provides: