Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpv not building for a while now
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
oekbris
n00b
n00b


Joined: 24 Dec 2023
Posts: 4

PostPosted: Mon Mar 03, 2025 10:27 pm    Post subject: mpv not building for a while now Reply with quote

Hello,

I'm not great with system updates and for a while now, several months for sure, I have not been able to build mpv. I've been able to get away with it for a while but I had to do a depclean and now I don't have it anymore.

The error has always been on the final link stage of the build process, saying
Code:

/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libmpv.so.2.3.0.p/common_encode_lavc.c.o: in function `av_ts_make_time_string':
/usr/local/include/libavutil/timestamp.h:76:(.text+0x1c9e): undefined reference to `av_ts_make_time_string2'
collect2: error: ld returned 1 exit status

I've always had the missing av_ts_make_time_string2 symbol error

I've also tried building v0.39.0 myself and the current head from the git repository with the same result.

Code:

emerge --info --color n mpv

https://bpa.st/DFVQ

Build log: https://bpa.st/ZBNA


I also get a errors building xine-lib and mplayer that sound like they might be related to ffmpeg but I'm not sure.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23333

PostPosted: Mon Mar 03, 2025 10:32 pm    Post subject: Reply with quote

There should not be a header at /usr/local/include/libavutil/timestamp.h. That suggests you locally installed a package (probably ffmpeg or libav) outside Portage, and it is now being picked up and confusing the build. Move aside the bad package, and retry your mpv build.
Back to top
View user's profile Send private message
oekbris
n00b
n00b


Joined: 24 Dec 2023
Posts: 4

PostPosted: Mon Mar 03, 2025 10:44 pm    Post subject: Reply with quote

Oh, right!
I didn't notice the 'local' part of the path.
I did make uninstall on a fresh copy of ffmpeg source code and I can build mpv just fine now!
You're right I was playing around with a modified version of ffmpeg a while back...

thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum