rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Thu Jul 23, 2015 11:02 pm

Thanks for the guide.

I have issue with the second to last step to give gpu more ram

grep -q '^gpu_mem=' /boot/config.txt && sudo sed -i '/^gpu_mem=/c gpu_mem=128' /boot/config.txt || sudo echo 'gpu_mem=128' >> /boot/config.txt

I got Bash: /boot/config.txt: permission denied.

Seems to be an user privilege issue to me but I am too new to ubuntu. Anyone please help with the command. Thanks.

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Fri Jul 24, 2015 6:21 am

You have to use sudo (edit it as root).
And 128 MB is not enough to run 1080p HD video because the interface also needs some GPU RAM. Minimum value should be 160 MB.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Fri Jul 24, 2015 2:59 pm

hm... TV remote is note working. check System -> Settings -> System -> Input Devices -> Peripherals is grey out.

How do I enable it? I followed the direction which should enable CEC.

Thanks.

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Fri Jul 24, 2015 4:29 pm

Current kodi (15) versions requires libcec3, which in turn needs libplatform1. Did you compile and install both?
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Fri Jul 24, 2015 5:32 pm

gkreidl wrote:Current kodi (15) versions requires libcec3, which in turn needs libplatform1. Did you compile and install both?
Yes, I did. I believe this part are libplatform and libcec3
git://github.com/Pulse-Eight/libcec.git

##build libplatform
cd libcec/src/platform
mkdir build
cd build
cmake ..
make
sudo make install
cd

##build libcec
cd libcec
mkdir build
cd build
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
make -j4
sudo make install
cd

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Fri Jul 24, 2015 5:52 pm

you may have conflicts with older versions of libcec and cec-client; especially as you are not using the same default paths (usr/local instead of /usr).

Uninstall everything related to CEC first (use synaptic to find it).

I used
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=1 ..

(uninstall your version first)
After installation I had to add symbolic links:
sudo ln -s /usr/bin/cecc-client-3.0.0 /usr/bin/cecc-client
sudo ln -s /usr/bin/cec-client-3.0.0 /usr/bin/cec-client
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Fri Jul 24, 2015 6:05 pm

That is strange. I wipe my micro SD clean and reinstall Rasbian then built the Kodi into Rasbian. There should not be any older version of libcec or CEC-client in my system.

Is there any command I should can do to see CEC is enabled? or simply add the add symbolic links below as you suggested?
gkreidl wrote:you may have conflicts with older versions of libcec and cec-client; especially as you are not using the same default paths (usr/local instead of /usr).

Uninstall everything related to CEC first (use synaptic to find it).

I used
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=1 ..

(uninstall your version first)
After installation I had to add symbolic links:
sudo ln -s /usr/bin/cecc-client-3.0.0 /usr/bin/cecc-client
sudo ln -s /usr/bin/cec-client-3.0.0 /usr/bin/cec-client

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Fri Jul 24, 2015 7:06 pm

Yes, try to run
cec-client
or
cec-client-3.0.0
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Fri Jul 24, 2015 11:34 pm

Excellent guide. Got everything up (except couple things below) and running and it seems to be more stable and smooth than using Michael Gorven's repo method.

I could get the command to give gpu more ram to run.

And the TV remote didn't work like I got it to work using Michael Gorven's repo. Using the commands in the posts above, I could not get it to work either. Likely i am way too new to Ubuntu commands.

If anyone let me know how to fix the couple issues above. Would be greatly appreciated.

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Sat Jul 25, 2015 8:03 am

rubiks wrote: And the TV remote didn't work like I got it to work using Michael Gorven's repo. Using the commands in the posts above, I could not get it to work either. Likely i am way too new to Ubuntu commands.

If anyone let me know how to fix the couple issues above. Would be greatly appreciated.
Are you running Ubuntu?
what does happen of you call the cec-client directly?
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Sun Jul 26, 2015 1:30 am

gkreidl wrote:
rubiks wrote: And the TV remote didn't work like I got it to work using Michael Gorven's repo. Using the commands in the posts above, I could not get it to work either. Likely i am way too new to Ubuntu commands.

If anyone let me know how to fix the couple issues above. Would be greatly appreciated.
Are you running Ubuntu?
what does happen of you call the cec-client directly?
I got the following when run cec-client. My bad. I have rasbian installed not Ubuntu.

No device type given. Using 'recording device' libcec3.so.3.0: cannot open shared object file: no such file or directory. Cannot load libcec.so

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Sun Jul 26, 2015 3:10 am

Try building it again with

Code: Select all

cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=1 ..
make
sudo -E bash -c 'make install'
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Sun Jul 26, 2015 3:34 am

gkreidl wrote:Try building it again with

Code: Select all

cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=1 ..
make
sudo -E bash -c 'make install'
got the following error when running command.

CMake Error: The source directory "/home" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target 'install'. Stop.

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Sun Jul 26, 2015 3:53 am

Did you create a "build" directory inside the libcec directory?
if not,

Code: Select all

mkdir build
cd build
then run the commands.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Sun Jul 26, 2015 4:13 pm

gkreidl wrote:Did you create a "build" directory inside the libcec directory?
if not,

Code: Select all

mkdir build
cd build
then run the commands.
Thanks a lot. Got the TV remote working after rebuilt the libcec directory one more. Can you please help me with one more issue?

I could not get the following to run to give gpu more ram. So using another helper's advice, I will edit the conig text file. I plan to do the following and can you let me know if my commands are correct?

Sudo nano /boot/config.txt

#Then add this to the file and save

gpu_mem=128
Last edited by rubiks on Sun Jul 26, 2015 4:26 pm, edited 1 time in total.

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Sun Jul 26, 2015 4:24 pm

Without '#'
And give it at least 160 MB (or even 256). You may run into problems playing full HD video otherwise.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Sun Jul 26, 2015 4:28 pm

gkreidl wrote:Without '#'
And give it at least 160 MB (or even 256). You may run into problems playing full HD video otherwise.
Thanks a lot!!

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Re: Building Kodi on Pi 2

Mon Jul 27, 2015 12:03 am

I am trying to create desktop executable icon to run the "startkodi" in terminal, but I get a text file with "startkodi" inside on my desktop. Would anyone able to help me and let me know what I did wrong below?

1. cd /home/pi/Desktop/
2. nano kodi
3. #type up the command in the text file.
startkodi
4. #control X to save the file.
5. sudo chmod +x kodi

RainBlack
Posts: 2
Joined: Mon Aug 10, 2015 2:30 pm

Re: Building Kodi on Pi 2

Mon Aug 10, 2015 5:53 pm

Two features people might be interested in...

NFS
* add libnfs-dev to the package install
* add --enable-nfs to the configure parameters

AirPlay
* add libplist-dev libshairplay-dev avahi-daemon libavahi-client-dev libavahi-common-dev to the package install
* remove --disable-avahi from the configure parameters
* add --enable-avhi --enable-airplay --enable-airtunes to the configure parameters
NOTE: I still can't get AirPlay working, but it does compile. I suspect there's some avahi configuration I need to work on.
I got Air Play working. I build Kodi 15.1-rc1 with --enable-avahi --enable-airplay --enable-airtunes

but avahi-daemon is disabled when a local.domain is detected.
to solve it,
sudo nano /etc/default/avahi-daemon
and change the line:
AVAHI_DAEMON_DETECT_LOCAL=1
to
AVAHI_DAEMON_DETECT_LOCAL=0
then restart the Avahi-daemon with
sudo service avahi-daemon restart
Problem solved.

credits to http://www.jackenhack.com/raspberry-pi- ... in-solved/

Sandman01
Posts: 12
Joined: Sat Jun 20, 2015 9:17 pm

Re: Building Kodi on Pi 2

Thu Aug 13, 2015 7:33 am

Hi did anyone trie to compile the latest master branch since a few days?

dependencies were changes

so libparted-dev is needed

./configure also fails because of:
libcrossguid or crossguid

I thougt that it was included in uuid-dev but it still fails to configure.

searching the web did not find a solution.
I found a github project for crossguid but this only compiles a test binary that is not what is needed for kodi
The rest is a git repository with a PKGBUILD that I did not know how to handle.

regards
Mario

Sandman01
Posts: 12
Joined: Sat Jun 20, 2015 9:17 pm

Re: Building Kodi on Pi 2

Fri Aug 14, 2015 8:29 am

I think this could be the required one. (included in the xbmc github repository itselfe)

will test later
xbmc/tools/depends/target/crossguid/

Sandman01
Posts: 12
Joined: Sat Jun 20, 2015 9:17 pm

Re: Building Kodi on Pi 2

Fri Aug 14, 2015 1:44 pm

Yes that did the trick for me.

simple like tablib compile and install cossguid before kodi 16.0

# build and install crossguid
cd ~/xbmc/tools/depends/target/crossguid/
sudo make PREFIX=/usr/local -j4
sudo make install

best regards
Mario

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Fri Aug 14, 2015 1:52 pm

Sandman01 wrote:Yes that did the trick for me.

simple like tablib compile and install cossguid before kodi 16.0

# build and install crossguid
cd ~/xbmc/tools/depends/target/crossguid/
sudo make PREFIX=/usr/local -j4
sudo make install

best regards
Mario
It's better to use the prefix "/usr" to stay compatible with Raspbian. Otherwise you might get different versions installed in different places later on.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

reyncla
Posts: 1
Joined: Thu Aug 20, 2015 7:04 pm

Re: Building Kodi on Pi 2

Thu Aug 20, 2015 7:22 pm

I'm trying to compile the version 15.1 release on debian Jessie Rpi2 using:

git clone -b Isengard git://github.com/xbmc/xbmc.git

But when I reach the step of:
make -j3

I came out the following message:

make: *** [xbmc/cores/omxplayer/omxplayer.a] Error 2

I have previously installed omxplayer from :

http://omxplayer.sconde.net/

But always it shows me that error. What should I do to correct this problem ?

I appreciate the guidance they can provide.

gkreidl
Posts: 6304
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Building Kodi on Pi 2

Fri Aug 21, 2015 12:36 am

Installing omxplayer won't help. Kodi has its own omxplayer version built in and it obviously throws the error when trying to compile it.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Raspberry Pi OS”