There is a PR to fix the build issue with libx265 : https://github.com/MythTV/mythtv/pull/970
EDIT: The PR has been merged in fixes/34. The build issue is fixed upstream.
Git Clone URL: | https://aur.archlinux.org/mythtv-git.git (read-only, click to copy) |
---|---|
Package Base: | mythtv-git |
Description: | A Homebrew PVR project (Stable '-fixes' branch) |
Upstream URL: | https://www.mythtv.org/ |
Licenses: | GPL |
Conflicts: | mythtv |
Provides: | mythtv |
Submitter: | JohnLBergqvist |
Maintainer: | JohnLBergqvist |
Last Packager: | JohnLBergqvist |
Votes: | 36 |
Popularity: | 0.000007 |
First Submitted: | 2023-04-10 09:11 (UTC) |
Last Updated: | 2025-03-02 11:54 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 .. 33 Next › Last »
There is a PR to fix the build issue with libx265 : https://github.com/MythTV/mythtv/pull/970
EDIT: The PR has been merged in fixes/34. The build issue is fixed upstream.
Not sure what I'm doing wrong, but I am still not able to install. I've added the paramater suggested by @hamelg under configuration in the PKGBUILD and applied the patch acccording to the instructions by @jfabernathy. Now I get this error:
/usr/bin/ld: libavcodec/amfenc_h264.o: in function `GetDefaultChannelLayout':
/usr/include/AMF/core/AudioBuffer.h:89: multiple definition of `GetDefaultChannelLayout'; libavcodec/amfenc.o:/usr/include/AMF/core/AudioBuffer.h:89: first defined here
/usr/bin/ld: libavcodec/amfenc_hevc.o: in function `GetDefaultChannelLayout':
/usr/include/AMF/core/AudioBuffer.h:89: multiple definition of `GetDefaultChannelLayout'; libavcodec/amfenc.o:/usr/include/AMF/core/AudioBuffer.h:89: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [ffbuild/library.mak:121: libavcodec/libmythavcodec.so.59] Error 1
make[2]: Leaving directory '/var/tmp/pamac-build-user/mythtv-git/mythtv-git/src/mythtv/mythtv/external/FFmpeg'
make[1]: *** [Makefile:32: FFmpeg-all] Error 2
make[1]: Leaving directory '/var/tmp/pamac-build-user/mythtv-git/mythtv-git/src/mythtv/mythtv/external'
make: *** [Makefile:66: external] Error 2
==> ERROR: A failure occurred in build().
It seems that just removing x264 from the configuration in PKGBUILD works and performs just fine, if anybody wants a simpler workaround.
@glenb77 Thanks, I think I did this right. I downloaded the patch to the same directory as the PKGBUILD file, removed the --extra-cflags mentioned earlier, and then did:
makepkg -o
patch -d src/mythtv/ -p1 < libx265.patch
makepkg -ef
makepkg -i
mythfrontend works at least.
@jfabernathy, built for me. i just did makepkg -o to get source and not compile, applied the patch, then makepkg -e to build after the file is patched.
I've never patched a AUR PKGBUILD packagage. I'm not finding a lot of info on how to do that and not mess up mythtv-git.
applying this patch should be better.
https://app.box.com/s/fu5admlhwiw00vyfeyga6jq4ur8ufc6p
EDIT: upload patch
patch the PKGBUILD : add this parameter to the configure command :
--extra-cflags=-Wno-incompatible-pointer-types \
see the issue : https://github.com/MythTV/mythtv/issues/966
Where did you add the option " -Wno-incompatible-pointer-types" to work around the failure"?
upgrading x265 from 3.6 to 4.0 requires recompiling mythtv and now the compilation fails with this error :
libavcodec/libx265.c: In function ‘libx265_encode_frame’:
libavcodec/libx265.c:579:59: error: passing argument 5 of ‘ctx->api->encoder_encode’ from incompatible pointer type [-Wincompatible-pointer-types]
579 | pic ? &x265pic : NULL, &x265pic_out);
| ^~~~~~~~~~~~
| |
| x265_picture *
libavcodec/libx265.c:579:59: note: expected ‘x265_picture **’ but argument is of type ‘x265_picture *’
make[2]: *** [ffbuild/common.mak:81: libavcodec/libx265.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/goinfre/build/tmp/mythtv-git/src/mythtv/mythtv/external/FFmpeg'
make[1]: *** [Makefile:32: FFmpeg-all] Error 2
make[1]: Leaving directory '/goinfre/build/tmp/mythtv-git/src/mythtv/mythtv/external'
make: *** [Makefile:66: external] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Any ideas to solve this problem?
EDIT: I used -Wno-incompatible-pointer-types to work around the failure
Pinned Comments
JohnLBergqvist commented on 2023-04-10 15:56 (UTC) (edited on 2023-04-10 15:57 (UTC) by JohnLBergqvist)
This package replaces the previous 'mythtv' AUR package. It has been renamed to comply with Arch's VCS package guidelines.
I hope to update the various mythplugins AUR packages soon