You are not logged in.

#1 2025-01-26 16:08

FlexQ4
Member
Registered: 2017-02-19
Posts: 194

A simple way to compile mpv by myself?

Hi,
corresponding to this post: https://www.q4os.org/forum/viewtopic.php?id=5162

if i've grabed the sources of mpv (eg. this version: https://github.com/mpv-player/mpv/archi … 3.1.tar.gz ), unpacked it to a folder, and installed meson (build system): Is there a simple way then to compile/make a local version of mpv?
How would i look like?

Thank you

Offline

#2 2025-01-26 23:21

FlexQ4
Member
Registered: 2017-02-19
Posts: 194

Re: A simple way to compile mpv by myself?

it seems, that i have to "enable source repositories" - How can i do this, does anybody here know a tutorial?

Offline

#3 2025-01-27 09:45

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,772
Website

Re: A simple way to compile mpv by myself?

You need to edit file /etc/apt/sources.list.d/20_debian.list , and enable "deb" lines begging with "#" character so they will look like this:

deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

Last edited by q4osteam (2025-01-27 14:28)

Offline

#4 2025-01-27 11:04

FlexQ4
Member
Registered: 2017-02-19
Posts: 194

Re: A simple way to compile mpv by myself?

q4osteam wrote:
deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware

Just to be safe, since i'm still on 4.12/Gemini: bookworm - not bullseye?

Offline

#5 2025-01-27 11:06

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,772
Website

Re: A simple way to compile mpv by myself?

Yes, excuse for the blunder. You just need to enable all the commented "deb-src" lines, but keep "bullseye" anywhere. We have fixed the post in question.

Last edited by q4osteam (2025-01-27 11:29)

Offline

#6 2025-01-27 13:31

FlexQ4
Member
Registered: 2017-02-19
Posts: 194

Re: A simple way to compile mpv by myself?

Thank you! And it's good to see, that there are *.save copies of each repo files already present!

Do you have an idea, if (beside meson/ninja build systems) i have to fetch also "git" via Synaptic?
There are build scripts for mpv here: https://github.com/mpv-player/mpv-build

Important is: i want to build a version of mpv only locally (in my developement folder).
I do not want to change /usr/bin/mpv or any of the current libraries of my system at all! (god beware! wink)

Offline

#7 2025-01-27 14:31

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,772
Website

Re: A simple way to compile mpv by myself?

FlexQ4 wrote:

Do you have an idea, if (beside meson/ninja build systems) i have to fetch also "git" via Synaptic?

You likely need to install git:
$ sudo apt install git
or install it via Synaptic, it's essentially the same.

Offline

#8 2025-02-02 16:41

FlexQ4
Member
Registered: 2017-02-19
Posts: 194

Re: A simple way to compile mpv by myself?

Hello,
trying to install git (via Synaptic) i got these errors:

W: Die Datei »http://security.debian.org/debian-security/pool/updates/main/g/git/git-man_2.30.2-1%2bdeb11u3_all.deb« konnte nicht heruntergeladen werden
  404  Not Found [IP: 146.75.118.132 80]

W: Die Datei »http://security.debian.org/debian-security/pool/updates/main/g/git/git_2.30.2-1%2bdeb11u3_amd64.deb« konnte nicht heruntergeladen werden
  404  Not Found [IP: 146.75.118.132 80]

W: Die Datei »http://security.debian.org/debian-security/pool/updates/main/g/git/git-man_2.30.2-1%2bdeb11u3_all.deb« konnte nicht heruntergeladen werden
  404  Not Found [IP: 146.75.118.132 80]

W: Die Datei »http://security.debian.org/debian-security/pool/updates/main/g/git/git_2.30.2-1%2bdeb11u3_amd64.deb« konnte nicht heruntergeladen werden
  404  Not Found [IP: 146.75.118.132 80]

So i had to: sudo apt-get update  first...

Now, after i did Install 'some basic packaging tools' with the command: > apt-get install devscripts equivs 
i tried > mk-build-deps -s sudo -i  (as described here: https://github.com/mpv-player/mpv-build … tu-package ) but it doesn't work:

mk-build-deps -s sudo -i
-> Usage:
    mk-build-deps --help|--version
    mk-build-deps <options> control file | package name ...

hmmmm...

Last edited by FlexQ4 (2025-02-02 17:23)

Offline

Board footer

Powered by FluxBB