Kodi Community Forum
Headless Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Headless Kodi (/showthread.php?tid=212061)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


RE: Headless Kodi - celedhrim - 2015-07-03

Prepare your profile with a normal kodi , and then use this profile with the headless flavour.


RE: Headless Kodi - acandido - 2015-07-04

For those looking to build on master, I forked sparklyballs' docker repo and modified the 5071.patch to apply to the latest kodi 16 master (Line 282 needed modification due to a recent change in GUIDialog.cpp).

Haven't built for docker but the 5071.patch applies to master and I built headless successfully to run on my server with videodb version 94.

https://github.com/acandido/docker-containers/tree/master/headless-kodi-16/src


RE: Headless Kodi - marantz - 2015-07-06

I was more thinking kodi 15, as master was then Smile but nice work


RE: Headless Kodi - acandido - 2015-07-07

(2015-07-06, 15:09)marantz Wrote: I was more thinking kodi 15, as master was then Smile but nice work

Sparklyballs' repo has the patch that will work on 15:

https://github.com/sparklyballs/docker-containers/tree/master/headless-kodi-isengard


RE: Headless Kodi - fma965 - 2015-07-08

(2015-07-07, 05:09)acandido Wrote:
(2015-07-06, 15:09)marantz Wrote: I was more thinking kodi 15, as master was then Smile but nice work

Sparklyballs' repo has the patch that will work on 15:

https://github.com/sparklyballs/docker-containers/tree/master/headless-kodi-isengard

that patch doesn't seem to work, the patch fails on /xbmc/guilib/GUIDialog.cpp

So i replaced code manually but then my build failed...

Am i doing this right? i build helix fine...

git clone https://github.com/xbmc/xbmc.git -b Isengard --depth=1 kodi
cd kodi
git apply --check 5071.patch
manually fix problem as mentioned above, remove that bit from the patch file
git apply 5071.patch
./bootstrap
./configure --prefix=/opt/kodi-server-isengard
make
Code:
make[1]: Leaving directory `/root/isengard/lib/libdvd'
CPP     xbmc/cores/dvdplayer/DVDAudio.o
CPP     xbmc/cores/dvdplayer/DVDClock.o
CPP     xbmc/cores/dvdplayer/DVDDemuxSPU.o
CPP     xbmc/cores/dvdplayer/DVDFileInfo.o
CPP     xbmc/cores/dvdplayer/DVDMessage.o
CPP     xbmc/cores/dvdplayer/DVDMessageQueue.o
CPP     xbmc/cores/dvdplayer/DVDOverlayContainer.o
CPP     xbmc/cores/dvdplayer/DVDOverlayRenderer.o
CPP     xbmc/cores/dvdplayer/DVDPlayer.o
In file included from DVDPlayer.cpp:22:0:
DVDPlayer.h:157:23: sorry, unimplemented: non-static data member initialisers
DVDPlayer.h:157:23: error: ISO C++ forbids in-class initialisation of non-const static member ‘type’
DVDPlayer.h:158:29: sorry, unimplemented: non-static data member initialisers
DVDPlayer.h:158:29: error: ISO C++ forbids in-class initialisation of non-const static member ‘type_index’
DVDPlayer.h:163:46: sorry, unimplemented: non-static data member initialisers
DVDPlayer.h:163:46: error: ISO C++ forbids in-class initialisation of non-const static member ‘flags’
DVDPlayer.h:164:25: sorry, unimplemented: non-static data member initialisers
DVDPlayer.h:164:25: error: ISO C++ forbids in-class initialisation of non-const static member ‘source’
DVDPlayer.h:165:21: sorry, unimplemented: non-static data member initialisers
DVDPlayer.h:165:21: error: ISO C++ forbids in-class initialisation of non-const static member ‘id’
DVDPlayer.h:167:27: sorry, unimplemented: non-static data member initialisers
DVDPlayer.h:167:27: error: ISO C++ forbids in-class initialisation of non-const static member ‘channels’
/root/isengard/xbmc/guilib/GraphicContext.h:296:1: warning: ‘g_graphicsContext’ defined but not used [-Wunused-variable]
make[1]: *** [DVDPlayer.o] Error 1
make: *** [xbmc/cores/dvdplayer/DVDPlayer.a] Error 2


UPDATE: trying "git reset --hard 9ff25f8" now, which commit should it be on? with this one i dont get conflicts when patching.

UPDATE2: same error


RE: Headless Kodi - fritsch - 2015-07-09

Use a C++11 compiler ... your issue is not related to the patch ... you cannot even build normal master.


RE: Headless Kodi - wsnipex - 2015-07-09

yep, same reason ubuntu precise PPA builds are broken, gcc is too old. You need at least gcc 4.7, better 4.8


RE: Headless Kodi - fma965 - 2015-07-09

(2015-07-09, 09:29)wsnipex Wrote: yep, same reason ubuntu precise PPA builds are broken, gcc is too old. You need at least gcc 4.7, better 4.8

OK Thanks, I will try it with new version of gcc, i foolishly assumed that since i could build helix i could build isengard (seems not, which makes sense) also it was late so thats my excuse Big Grin

I'm sure it will work once it's updated.

Thanks again.

Update : Forgot i have remote access, trying it now, seems to be working so far, thanks so much and i'm sure that was a silly mistake but thats how people learn Smile


RE: Headless Kodi - fma965 - 2015-07-09

Ok so i tried it again...

git clone...
git reset --hard 9ff25f8
git apply....
./bootstrap
./configure --prefix=/opt/kodi-server
make -j2
make install
/opt/kodi-server/lib/kodi/kodi.bin --headless -p


Unable to find path to Kodi data files!


RE: Headless Kodi - wsnipex - 2015-07-09

git clean -xfd, then try again


RE: Headless Kodi - xxxnelly - 2015-07-09

can you provide an updated patch for 5071.patch.

cheers


RE: Headless Kodi - fma965 - 2015-07-09

(2015-07-09, 19:40)wsnipex Wrote: git clean -xfd, then try again

thanks that worked! all up and running on kodi isengard RC1


RE: Headless Kodi - fma965 - 2015-07-09

(2015-07-09, 20:21)xxxnelly Wrote: can you provide an updated patch for 5071.patch.

cheers

just revert to the commit for rc1 - "git reset --hard 9ff25f8" or manually patch the files, or create a new patch yourself, it's mostly the same just a few changes in 1 file.


RE: Headless Kodi - fma965 - 2015-07-12

I believe this is a working patch for RC2 atleast it worked for me...

https://gist.github.com/Fma965/b01099fd866c133cb257#file-rc2patch-patch

Code:
git clone https://github.com/xbmc/xbmc.git -b Isengard --depth=1 kodi
cd kodi
git reset --hard 0aa930b (just to make sure is same commit)
wget https://gist.githubusercontent.com/Fma965/b01099fd866c133cb257/raw/4ad14b38fa79d5eb5341533dad6567c985275c3b/RC2Patch.patch
Code:
git apply --check RC2Patch.patch
git apply RC2Patch.patch
./bootstrap
./configure --prefix=/opt/kodi-server
make -j2
make install



RE: Headless Kodi - IncMrG - 2015-07-16

Hi to all,

first i have to say, i'm a really noob in compiling programs Sad
but i have to ask you: has anyone really running Kodi (Isengard) Headless running Huh

I tried all your hints without success No

With Helix the server is running with web-server, so i can see my media, but i can not stream them to my phone (Yatse as client)
When i try to stream a mp3 the server crashes.

With Isengard i get the web-server not started.

So, i wish to run Isengard (Headless) on my Ubuntu Server (15.04 / 64 Bit) to update the MySQL-Server and stream my media to my mobile device (Android)
Is it possible to give me a Noob-Ready step by step or better already compiled zip/deb?

Thanks a lot for your help and comprehension Blush

IncMrG