View previous topic :: View next topic |
Author |
Message |
oekbris n00b

Joined: 24 Dec 2023 Posts: 4
|
Posted: Mon Mar 03, 2025 10:27 pm Post subject: mpv not building for a while now |
|
|
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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23333
|
Posted: Mon Mar 03, 2025 10:32 pm Post subject: |
|
|
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 |
|
 |
oekbris n00b

Joined: 24 Dec 2023 Posts: 4
|
Posted: Mon Mar 03, 2025 10:44 pm Post subject: |
|
|
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 |
|
 |
|