@graysky Should I create the buildroot with distcc(What is this)?
Should I Nuke the buildroot and external repo (if defined)<---What is this?
Git Clone URL: | https://aur.archlinux.org/kodi-git.git (read-only, click to copy) |
---|---|
Package Base: | kodi-git |
Description: | A software media player and entertainment hub for digital media (master branch) |
Upstream URL: | https://kodi.tv |
Licenses: | GPL2 |
Conflicts: | kodi, kodi-gbm, kodi-wayland, kodi-x11 |
Provides: | kodi, kodi-gbm, kodi-wayland, kodi-x11 |
Replaces: | kodi, kodi-gbm, kodi-wayland, kodi-x11 |
Submitter: | BlackIkeEagle |
Maintainer: | graysky |
Last Packager: | graysky |
Votes: | 83 |
Popularity: | 0.000256 |
First Submitted: | 2014-10-23 06:38 (UTC) |
Last Updated: | 2022-06-13 07:49 (UTC) |
@graysky Should I create the buildroot with distcc(What is this)?
Should I Nuke the buildroot and external repo (if defined)<---What is this?
@graysky It also fails when I use the internal FFmpeg.
https://forum.kodi.tv/showthread.php?tid=368574&pid=3101040#pid3101040
@laichiaheng - kodi is bound to a specific version of ffmpeg which is generally older than Arch's package. We avoid incompatibilities by using that specific version (ie internal ffmpeg). Recommend that you build kodi in clean chroot. See: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot
I wrote a script that automates much of that called clean-chroot-manager offered here in the AUR.
[ 19%] Built target windowing_X11 make: *** [Makefile:146:all] 錯誤 2 ==> 錯誤: build() 遭遇失敗。 正在中止... -> error making: kodi-git
It always fails to build without internal ffmpeg.
It's a split package just like the one in community. You want to install the -git flavors if you want the latest code. Bad idea to mix them.
Slightly confused here.
I've just built this and have in front of me four *.zst install files.
Is it the case that the independently available git packages eventclients, dev and texturepacker have been bundled in with the main kodi package?
I know I need eventclients. Do I need the dev and texturepacker files to run kodi as I did from the community repo?
Thank you for providing these packages.
@EndlessEden - try the latest commit
Build fails from missing patch.
"src/xbmc/tools/depends/target/libspdlog/0001-fix_fmt_version.patch : No such file or directory"
The most recent commit allows you to build with clang rather than with gcc. Just set the _clangbuild
variable to something. LTO is accomplished with -flto=thin
and seems to work well. Please try and report any problems.
Not needed here the last time I built this package r57584.8cbbb961201-1. Guessing you're not building in a clean build root and that the dep detect script in kodi's code found that on your system. Build in a clean build root.
EDIT: the most recent commit builds fine as-is.
Fails to build for me unless i add -DENABLE_PIPEWIRE=OFF
Why are you spamming this git package AUR page with requests for an old stable release? Please stop. If you want to build an EOL'ed version, seek the official build which is archived: https://github.com/archlinux/svntogit-community/tree/a2dfde4f5a9c836877ef10a7c6a735887cea4df4/trunk
I believe on line 220 'python-pillow6' should be changed to 'python-pillow'
@TUC - Thanks for pointing that out. I think I fixed this in r55550.6386f23c2da-1, would you mind trying and reporting back? Thanks.
kodi-git-gbm, kodi-git-wayland, kodi-git-x11 depend on ${pkgbase} (kodi-git) which is not provided by PKGBUILD
I tweaked the PKGBUILD with the latest commit, builds fine but haven't tested installation. Please provide feedback.
@ast261 - Thanks, looks like it is an internal. Testing a new PKGBUILD now.
new dependency spdlog.
@BlackIke - Yes, r53580.05488ed68e4-2 builds without errors, thanks!
@BlackIke - It should be... the version tagged as 0.2.7 by Nils was the same commit my waylandpp-git package built. I see you bumped the package in [community]... as a double-check I will build against it and report back.
@graysky, is your build issue fixed with waylandpp 0.2.7 ?
OK, it seems waylandpp-0.2.6 is to blame for the wayland build failures (https://github.com/NilsBrause/waylandpp/commit/fef85e50eb39e6c709fb473c17dcd2aa009f0dbe). I will add waylandpp-git to the dep/makedeps for now but note that you have to fix its PKGBUILD. I provided a patch that does this on that AUR page.
@kevku - I will push an update but it is throwing build errors I believe at wayland. Need to explore further but likely cannot for a while. Feedback is welcomed.
EDIT: https://forum.kodi.tv/showthread.php?tid=348374&pid=2892427
I've just disowned the package. My time has come, now it's someone else's turn ;)
It seems that fstrcmp is also a build dependency now (and not only an installation dependency, as was mentioned below), is is possible please to add it as a build dependency as well?
@martyg if you're going to post a patch don't include line breaks. Whenever I try to apply the patch its read as garbage. A for effort though.
copying.txt is no longer present in the source distro (Errors the build)
kodi binary will not load unless fstrcmp installed
kodi binary now requires lirc library to load (No longer optional)
Patch enclosed. (This will build the Leia Alpha 3 tag) https://ptpb.pw/i23Z
new dependency fstrcmp https://github.com/xbmc/xbmc/pull/14221
Thank you for all the information, the package should work fine now.
Can confirm the LICENSE.GPL
issue. The license files changed to markdown in a commit from April:
https://github.com/xbmc/xbmc/commit/40fe25d9c4890e6d64e74b70eecee84a82d04928
Changing LICENSE.GPL
to LICENSE.md
in the PKGBUILD fixed the issue.
Hi, packaging fails to me:
mv: cannot stat '/tmp/yaourt-tmp-danysk/aur-kodi-git/pkg/kodi-git/usr/share/doc/kodi/LICENSE.GPL': No such file or directory ==> ERROR: A failure occurred in package_kodi-git(). Aborting... ==> ERROR: Makepkg was unable to build kodi-git.
Can Anybody else confirm the issue?
As mentioned by @cspack77, lirc also needs to be installed during build.
The enclosed PKGBUILD patch gives me a working Leia Alpha-2 binary with LIRC remote support. This patch also corrects my earlier issue with libcec.
Thank you for maintaining this. I was dying for a Kodi-19 preview.
FYI, the binary will not start unless libcec.so.4 is installed. So I guess libcec needs to be moved to the "depends" list.
This was built in a clean chroot, so no unnecessary junk was lying around when built.
lirc is now a make dependency. https://github.com/xbmc/xbmc/commit/6e156bea5bf3a7fb8967e888238b6a07b967a90b
Since the last ffmpeg update to Version 1:3.4.2-2 kodi is compile without error but start with this error:
ffmpeg[7FFAACA5C900]: Invalid return value 0 for stream protocol 12:11:39.467 T:140714615097600 DEBUG: Previous line repeats 5 times. 12:11:39.467 T:140714615097600 ERROR: Could not find suitable input format: image/png
and segfault.
If i enable the buildin ffmpeg from kodi in the package.conf kodi is working again but is logical bigger and i like to get rid of double packages.
Im the onlyone with this problem?
@sarvex: This is not possible because the dynamic version number is calculated from the amount of commits on Git since the last major release.
It would be really save some bandwidth if the archive tarball is used for sources
source=("https://github.com/xbmc/xbmc/archive/master.tar.gz")
Sure, till the end of the week should be done ;)
Could you modify the PKGBUILD so the resulting packages provide the specific version of Kodi (e.g. provides=("kodi=${pkgver}") )? Also, kodi-dev needs provides=("kodi-dev") please.
@beojan, sorry I'm late. I can't confirm either, it builds without any problems here. Have you tried to build with the manual approach?
This is how my PKGBUILD looks like, haven't seen any important which could change the build's outcome. https://github.com/flak3/reposource/blob/master/unstable/kodi-git/PKGBUILD
I always build my packages in a clean chroot though. I have a working copy in my repo if you need it.
Niklas: Have you edited the PKGBUILD in any way?
Cannot confirm, builds without issues.
Doesn't build:
/home/beojan/.cache/pacaur/kodi-git/src/xbmc/xbmc/dbwrappers/sqlitedataset.cpp:295: error: undefined reference to 'sqlite3_backup_init'
/home/beojan/.cache/pacaur/kodi-git/src/xbmc/xbmc/dbwrappers/sqlitedataset.cpp:299: error: undefined reference to 'sqlite3_backup_step'
/home/beojan/.cache/pacaur/kodi-git/src/xbmc/xbmc/dbwrappers/sqlitedataset.cpp:300: error: undefined reference to 'sqlite3_backup_finish'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/kodi.dir/build.make:486: kodi-x11] Error 1
make[2]: Leaving directory '/home/beojan/.cache/pacaur/kodi-git/src/xbmc'
make[1]: *** [CMakeFiles/Makefile2:1552: CMakeFiles/kodi.dir/all] Error 2
make[1]: Leaving directory '/home/beojan/.cache/pacaur/kodi-git/src/xbmc'
make: *** [Makefile:141: all] Error 2
Thank you very much for your help. Everything installed succesfully. Inputstream also installed without any errors. Problem solved. :)
No you didn't. If you don't install kodi-dev-git when you install kodi-git, it won't be installed. You explicately need to install BOTH at the same time. So just reinstall kodi-git while also installing kodi-git-dev.
A helper like Yaourt would probably take care of this.
so this means that i already had installed kodi-dev-git. But when i type pacman Qqm only kodi-git is listed as installed kodi-dev-git isn't listed. So kodi-dev-git is installed right? But i still can't install inputstream adaptive. Same error.
You must build both kodi-git and kodi-dev-git at once and install both resulting packages. They do not just depend on each other, you can't even build the one packages without the other when using this PKGBUILD. That's why reinstalling kodi-git is necessary.
when i try to install kodi-dev-git pacman always installs kodi-git (reinstalls kodi-git) And kodi-dev-git stays uninstalled.
kodi-dev-git contains the files needed to build some Kodi addons. It is a subpackage of kodi-git.
kodi-git yes. But not kodi-dev-git. I am installing kodi-dev-git now. Arent kodi-git and kodi-dev-git the same?
kodi-git and kodi-dev-git as well? They're dependencies so I think you should have them though.
i installed kodi-platform-git. but unfortunatly the same error occurs.
/home/****/.cache/pacaur/kodi-addon-inputstream-adaptive-git/src/kodi-addon-inputstream-adaptive-git/src/main.h:22:10: schwerwiegender Fehler: kodi/addon-instance/Inputstream.h: Datei oder Verzeichnis nicht gefunden #include <kodi addon-instance="" inputstream.h=""></kodi>
You need kodi-platform-git, a dependency which is apparently not included in the PKGBUILD.
thanks for your help. I did what you advised me to do. but at the end i get following error: /home/****/.cache/pacaur/kodi-addon-inputstream-adaptive-git/src/kodi-addon-inputstream-adaptive-git/src/main.h:22:10: schwerwiegender Fehler: kodi/addon-instance/Inputstream.h: Datei oder Verzeichnis nicht gefunden #include <kodi addon-instance="" inputstream.h=""></kodi>
Translation of the error: schwerwiegender Fehler = fatal error Datei oder Verzeichnis nicht gefunden = file or directory not found
What went wrong?
Just comment that source line and uncomment the one two lines below.
So I should change this line: source=('kodi-addon-inputstream-adaptive-git::git+https://github.com/peak3d/inputstream.adaptive.git#branch=Krypton')
to
source=('kodi-addon-inputstream-adaptive-git::git+https://github.com/peak3d/inputstream.adaptive.git#branch=Leia') ?
@chuck123 Look at the PKGBUILD of the AUR package you linked - you have to modify the source link to build it for Kodi 18.
Why isn't inputsream-adaptive included? On Windows and for example Ubuntu inputsream-adaptive is always included in the latest Kodi 18 builds. How can I add it? The one which is available in the aur is only for Kodi 17+ https://aur.archlinux.org/packages/kodi-addon-inputstream-adaptive-git/. Could soneone help me out here. I need it for addons like DAZN and Eurosport Player. Thanks.
Pinned Comments
graysky commented on 2022-06-11 11:49 (UTC)
@laichiaheng - kodi is bound to a specific version of ffmpeg which is generally older than Arch's package. We avoid incompatibilities by using that specific version (ie internal ffmpeg). Recommend that you build kodi in clean chroot. See: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot
I wrote a script that automates much of that called clean-chroot-manager offered here in the AUR.