Kodi Community Forum
Help compiling Kodi for Apple TV - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137)
+---- Thread: Help compiling Kodi for Apple TV (/showthread.php?tid=375369)



Help compiling Kodi for Apple TV - Deihmos - 2023-12-13

I am following this guide to compile kodi but for some reason, I am not getting any addons with the build. I am following this guide that might be outdated. I used the following code to compile the addons but I don't think it works. make -C tools/depends/target/cmakebuildsys CMAKE_EXTRA_ARGUMENTS="-DENABLE_XCODE_ADDONBUILD=ON" 

I then used the code in the macOS build that worked but still no addons when Kodi is compiled. Am I supposed to move the addons folder to another directory? I am using the kodi-build folder. 

https://github.com/xbmc/xbmc/blob/master/docs/README.tvOS.md#5-generate-kodi-build-files


RE: Help compiling Kodi for Apple TV - kambala - 2023-12-13

the make -C command must be issued in the root source directory, are you doing it right?


RE: Help compiling Kodi for Apple TV - Deihmos - 2023-12-13

I followed the wiki exactly as written. I am able to build and install kodi but no addons. I am not sure what I am doing wrong. 

1. git clone https://github.com/xbmc/xbmc kodi
2. cd $HOME/kodi/tools/depends
3. ./bootstrap
4. ./configure --host=aarch64-apple-darwin --with-platform=tvos
5. cd $HOME/kodi/
6. make -j$(getconf _NPROCESSORS_ONLN)
7. make -C tools/depends/target/cmakebuildsys CMAKE_EXTRA_ARGUMENTS="-DENABLE_XCODE_ADDONBUILD=ON"
6. mkdir $HOME/kodi-build
7. make -C tools/depends/target/cmakebuildsys BUILD_DIR=$HOME/kodi-build
8. cd $HOME/kodi-build
9. xcodebuild -config "Debug" -jobs $(getconf _NPROCESSORS_ONLN)


RE: Help compiling Kodi for Apple TV - Fuzzard - 2023-12-13

Did you actually read the link about binary add-ons https://github.com/xbmc/xbmc/blob/master/docs/README.tvOS.md#52-add-binary-addons-to-project

You have to specify something with -DADDONS_TO_BUILD


RE: Help compiling Kodi for Apple TV - Deihmos - 2023-12-13

I read it and I also tried the option to build specific addon such as the following. What does build all add-on automatically mean?

make -C tools/depends/target/cmakebuildsys CMAKE_EXTRA_ARGUMENTS="-DENABLE_XCODE_ADDONBUILD=ON -DADDONS_TO_BUILD='audioencoder.flac pvr.hts'"

Generate Xcode project to build all add-ons automatically:
make -C tools/depends/target/cmakebuildsys CMAKE_EXTRA_ARGUMENTS="-DENABLE_XCODE_ADDONBUILD=ON"


RE: Help compiling Kodi for Apple TV - Fuzzard - 2023-12-13

ENABLE_XCODE_ADDONBUILD=ON just add-ons a target to the generated Xcode project, so you can select to build inside Xcode. Prior to that you had to build add-ons outside of Xcode using make and the binary-addons target prior to building kodi in xcode


RE: Help compiling Kodi for Apple TV - Deihmos - 2023-12-13

I will try this again later when I get home. Is there a command that will build all the addons and include in build? I am trying to see if this will fix the issue I have with not being able to save the settings with the tvheadend addon.


RE: Help compiling Kodi for Apple TV - emveepee - 2023-12-13

I  never got it too work either.  As I posted earlier the easiest way for me was to download the full deb for tvOS, update Kodi.app overwriting with my compiled Kodi binary and not bother building all of them.  Make sure versions match of course.


RE: Help compiling Kodi for Apple TV - Deihmos - 2023-12-13

I have no idea what you mean. I am not familiar with these things so need clear instructions. The plugins work in 19.5 so maybe I will use that instead.


RE: Help compiling Kodi for Apple TV - emveepee - 2023-12-14

Download the .deb file create the Payload.ipa from it according to the instructions.    Using Finder go into  the Payload.ipa -> Kodi.app and there will be a file called Kodi.  Replace it with your compiled Kodi

Alternatively if you PM me I can send you a link to the one I made a few weeks ago.   It is post 20.2 but pvr.hts will have the stutter issue.  If your testing finds that pvr.hts works with my patch I can probably package it up again, I don't run macOS that often, my PC is triple boot.  You can also update my package pvr.hts from Jenkins https://jenkins.kodi.tv/blue/organizations/jenkins/kodi-pvr%2Fpvr.hts/detail/Nexus/149/artifacts similar to how the Kodi app gets updated.


RE: Help compiling Kodi for Apple TV - bn1980 - 2024-01-03

Has anyone been able to compile a recent version of kodi for ATV3 (arm) ?


RE: Help compiling Kodi for Apple TV - sentball - 2024-02-18

any new progress?
atv3 running newer kodi is a great demand. appreciate to helping do this!


RE: Help compiling Kodi for Apple TV - kambala - 2024-02-18

team doesn't support ATV 3 anymore, you're on your own


RE: Help compiling Kodi for Apple TV - sentball - 2024-02-21

have a research that from Jarvis all TARGET_DARWIN_IOS_ATV2 marco was removed Undecided
does it mean can not running on atv3 anymore?
if compare source and make some code support TARGET_DARWIN_IOS_ATV2. will it ok or it is correct?


RE: Help compiling Kodi for Apple TV - kambala - 2024-02-21

(2024-02-21, 08:50)sentball Wrote: have a research that from Jarvis all TARGET_DARWIN_IOS_ATV2 marco was removed Undecided
does it mean can not running on atv3 anymore?
if compare source and make some code support TARGET_DARWIN_IOS_ATV2. will it ok or it is correct?

sorry, I have no idea, and pretty sure that none of the active devs has either. Fork and experiment, if you want it that hard Smile


This forum uses Lukasz Tkacz MyBB addons.