JanAlleman
Posts: 2
Joined: Tue Jul 17, 2012 5:28 pm

Re: Instructions for building XBMC for Raspbian

Tue Jul 24, 2012 6:40 pm

jose1711_ wrote:i tried jmg123's xbmc tarball. it runs, however i am getting 'xbmc needs hardware accelerated opengl rendering' window and the console output looks as follows:

Code: Select all

DISPLAY=:0 xbmc-standalone
Error: couldn't find RGB GLX visual or fbconfig
any idea?

thank you, jose
I had this too. I was able to solve it by removing the last five lines from FEH.py.
Don't known if it is updated in the git repository by now though.

jmg123
Posts: 21
Joined: Thu Sep 22, 2011 6:39 pm

Re: Instructions for building XBMC for Raspbian

Tue Jul 24, 2012 7:11 pm

Tavalin wrote: Is this what's been stopping air tunes working properly?
It stopped my compilation this morning, about 10 mins after I left for work :evil: The temporary fix will allow the AirTunesServer.cpp to compile, unfortunately it has set me back 8 hours, so I probably won't be able to try it until tomorrow morning. The xbmc repository git check in comments about 3 days ago suggest it is ok to disable the metadata setting without it affecting the overall plugin though

jmg123
Posts: 21
Joined: Thu Sep 22, 2011 6:39 pm

Re: Instructions for building XBMC for Raspbian

Tue Jul 24, 2012 11:15 pm

Well the build finished, AirPlay and nfs are working, but AirTunes is still giving me grief, time to see if I can get the latest git version of libshairport to compile.

In the meantime here is the updated version of the build steps, just with support for nfs and AirPlay (video)

Code: Select all

#Step 1
# Use the official raspbian image
# Step 2
sudo cp /boot/arm224_start.elf /boot/start.elf
sudo reboot 
# Step 3 is removed

#This is step 4
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential autoconf ccache gawk gperf mesa-utils zip unzip
sudo apt-get install autotools-dev comerr-dev dpkg-dev libalsaplayer-dev \
    libapt-pkg-dev:armhf libasound2-dev:armhf libass-dev:armhf libatk1.0-dev \
    libavahi-client-dev libavahi-common-dev libavcodec-dev libavformat-dev \
    libafpclient0 libafpclient-dev libplist1 libplist-dev libshairport-dev \
    libavutil-dev libbison-dev:armhf libbluray-dev:armhf libboost1.49-dev \
    libbz2-dev:armhf libc-dev-bin libc6-dev:armhf libcaca-dev libcairo2-dev \
    libcdio-dev libclalsadrv-dev libcrypto++-dev libcups2-dev libcurl3-gnutls-dev \
    libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdrm-dev  \
    libelf-dev libenca-dev libept-dev libevent-dev libexpat1-dev libflac-dev:armhf \
    libfontconfig1-dev libfreetype6-dev libfribidi-dev libgconf2-dev \
    libgcrypt11-dev libgdk-pixbuf2.0-dev avahi-daemon\
    libglew-dev:armhf libglewmx-dev:armhf libglib2.0-dev libglu1-mesa-dev \
    libgnome-keyring-dev libgnutls-dev libgpg-error-dev libgtk2.0-dev libhal-dev \
    libhunspell-dev:armhf libice-dev:armhf libicu-dev libidn11-dev libiso9660-dev \
    libjasper-dev libjbig-dev:armhf libjconv-dev libjpeg8-dev:armhf libkrb5-dev \
    libldap2-dev:armhf libltdl-dev:armhf liblzo2-dev libmad0-dev libmicrohttpd-dev \
    libmodplug-dev libmp3lame-dev:armhf libmpeg2-4-dev libmysqlclient-dev \
    libncurses5-dev libnfs-dev libnspr4-dev libnss3-dev libogg-dev:armhf \ 
    libopenal-dev:armhf libp11-kit-dev libpam0g-dev:armhf libpango1.0-dev \
    libpcre++-dev libpcre3-dev libpixman-1-dev libpng12-dev \
    libprotobuf-dev libpthread-stubs0-dev:armhf \
    libpulse-dev:armhf librtmp-dev libsamplerate0-dev:armhf \
    libsdl-image1.2-dev:armhf libsdl1.2-dev libslang2-dev:armhf \
    libsm-dev:armhf libsmbclient-dev:armhf libspeex-dev:armhf \
    libsqlite3-dev libssh-dev libssh2-1-dev libssl-dev libstdc++6-4.6-dev \
    libtagcoll2-dev libtasn1-3-dev libtiff4-dev libtinfo-dev:armhf libtinyxml-dev \
    libts-dev:armhf libudev-dev libv8-dev libva-dev:armhf libvdpau-dev:armhf \
    libvorbis-dev:armhf libvpx-dev:armhf libwebp-dev:armhf libwibble-dev \
    libx11-dev:armhf libx11-xcb-dev libxapian-dev libxau-dev:armhf \
    libxcb-glx0-dev:armhf libxcb-render0-dev:armhf libxcb-shm0-dev:armhf \
    libxcb1-dev:armhf libxcomposite-dev libxcursor-dev:armhf libxdamage-dev \
    libxdmcp-dev:armhf libxext-dev:armhf libxfixes-dev libxft-dev libxi-dev \
    libxinerama-dev:armhf libxml2-dev:armhf libxmu-dev:armhf libxrandr-dev \
    libxrender-dev:armhf libxslt1-dev libxss-dev:armhf libxt-dev:armhf \
    libxtst-dev:armhf libxxf86vm-dev libyajl-dev libzip-dev linux-libc-dev:armhf \
    lzma-dev mesa-common-dev python-dev python2.7-dev x11proto-composite-dev \
    x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev \
    x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev \
    x11proto-record-dev x11proto-render-dev x11proto-scrnsaver-dev \
    x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev \
    zlib1g-dev:armhf
    sudo apt-get clean

# This replaces step 5 and 6
sudo sh -c "echo /opt/vc/lib/ >> /etc/ld.so.conf.d/0_broadcom.conf"
sudo ldconfig
export C_INCLUDE_PATH=/opt/vc/include:/opt/vc/include/interface/vcos/pthreads
export CPLUS_INCLUDE_PATH=/opt/vc/include:/opt/vc/include/interface/vcos/pthreads
export LDFLAGS="-L/opt/vc/lib"
echo export C_INCLUDE_PATH=$C_INCLUDE_PATH >> ~/.bashrc
echo export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH >> ~/.bashrc
echo export LDFLAGS=\"$LDFLAGS\" >> >> ~/.bashrc

#Step 7
git clone --depth 1 git://github.com/xbmc/xbmc-rbp.git

#Step 8
cd xbmc-rbp/
sed -i 's/USE_BUILDROOT=1/USE_BUILDROOT=0/' tools/rbp/setup-sdk.sh
sed -i 's/TOOLCHAIN=\/usr\/local\/bcm-gcc/TOOLCHAIN=\/usr/' tools/rbp/setup-sdk.sh
sudo sh tools/rbp/setup-sdk.sh
sed -i 's/cd $(SOURCE); $(CONFIGURE)/#cd $(SOURCE); $(CONFIGURE)/' tools/rbp/depends/xbmc/Makefile

#Step 9
make -C tools/rbp/depends/xbmc/

#Step 10
./configure --prefix=/usr --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf \
   --localstatedir=/var/lib --with-platform=raspberry-pi --disable-gl --enable-gles \
   --disable-x11 --disable-sdl --enable-ccache --enable-optimizations \
   --enable-external-libraries --disable-goom --disable-hal --disable-pulse \
   --disable-vaapi --disable-vdpau --disable-xrandr --enable-airplay --disable-airtunes\
   --disable-alsa --enable-avahi --disable-libbluray --disable-dvdcss \
   --disable-debug --disable-joystick --enable-mid --enable-nfs --disable-profiling \
   --disable-projectm --enable-rsxs --enable-rtmp --disable-vaapi \
   --disable-vdadecoder --disable-external-ffmpeg  --disable-optical-drive

#Step 11
sed -i 's/-msse2//' lib/libsquish/Makefile
sed -i 's/-DSQUISH_USE_SSE=2//' lib/libsquish/Makefile

#Step 12
make

#Step 13
sudo make install

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 9:51 am

jmg123 wrote:...here is the updated version of the build steps...

Code: Select all

...
echo export LDFLAGS=\"$LDFLAGS\" >> >> ~/.bashrc
...
@jmg123: it seems that you have a typo in here, the second ">>" shouldn't be there.

User avatar
MoonTEC
Posts: 28
Joined: Sat Aug 20, 2011 8:20 am
Location: Lithuania
Contact: Website

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 11:50 am

@jmg123: is there any reason why not use libboost1.50-dev instead of libboost1.49-dev?
For me xbmc is compiled faster using libboost 1.50

jmg123
Posts: 21
Joined: Thu Sep 22, 2011 6:39 pm

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 12:06 pm

MoonTEC wrote:@jmg123: is there any reason why not use libboost1.50-dev instead of libboost1.49-dev?
For me xbmc is compiled faster using libboost 1.50
No reason, i just hadnt updated libboost

@bigendian
Yup the second >> isnt needed , sorry it was a 1am cut and paste error :(

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 12:29 pm

first of all, thanks for the great efforts to get XBMC running. I have my pi up and running 24/7 and dont want to run XBMC all the time.

Therefore I am looking for an easy and "wife compliant" way to start XBMC. It would be ideal to use rpi-cecd for it and to map an unused key to execute a custom command -> for example launch XBMC.

Unfortunately I don't know if rpi-cecd can be easily modified to achieve that goal.

Any ideas?

ratherDashing
Posts: 39
Joined: Tue Jun 05, 2012 3:00 am

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 12:47 pm

BigEndian wrote:first of all, thanks for the great efforts to get XBMC running. I have my pi up and running 24/7 and dont want to run XBMC all the time.

Therefore I am looking for an easy and "wife compliant" way to start XBMC. It would be ideal to use rpi-cecd for it and to map an unused key to execute a custom command -> for example launch XBMC.

Unfortunately I don't know if rpi-cecd can be easily modified to achieve that goal.

Any ideas?
Make a bat file on your wifes desktop that ssh's into the Pi and runs XBMC?

"HERE, THIS THING, DOUBLE CLICK IT WHEN YOU WANT TO WATCH MOVIES" -Me to my wife

still doesn't always help, I've had to ssh into the pi myself through my phone while on the bus to start it up before. also don't get me started on movies that are separated into multiple files...

marosg
Posts: 25
Joined: Sat Jul 07, 2012 2:41 pm

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 2:54 pm

Should the "small" image fit to 4GB card ? Because it does not fit to mine.

silas
Posts: 28
Joined: Sat Jan 14, 2012 11:02 am

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 3:17 pm

marosg wrote:Should the "small" image fit to 4GB card ? Because it does not fit to mine.
Have you tried the last experimental small image?

If it is that one your using, please paste the error message you get. That would help me to see how big your sd card is, and produce a image at that size :)

And nice to see some airplay work done. I have my phone back from repair now, so at least i can read the thread :D

g_d
Posts: 3
Joined: Wed Jul 25, 2012 5:02 pm

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 5:12 pm

Hi Guys.

Thank for all the great info and help. I am a linux newbie, but I don't think I am doing anything wrong...

Last night I followed the updated build instructions above and finally got my package CCd and ready to install.

after I type:

Code: Select all

sudo make install
I get:

Code: Select all

pi@raspberrypi ~/xbmc-rbp $ sudo make install
Copying XBMC binary to /usr/lib/xbmc/xbmc.bin
You can run XBMC with the command 'xbmc'
Copying support and legal files...
Done!
Copying system files to /usr/share/xbmc
/bin/bash: gtk-update-icon-cache: command not found
pi@raspberrypi ~

I am using the official 2012-07-15-wheezy-raspbian, unchanged, mem. split 224 as in the step-by-step above

Any help is really appreciated as I am trying to get this bloody xbmc running for about 14 days :roll:

User avatar
bob_binz
Posts: 441
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 5:36 pm

g_d wrote:

Code: Select all

pi@raspberrypi ~/xbmc-rbp $ sudo make install
Copying XBMC binary to /usr/lib/xbmc/xbmc.bin
You can run XBMC with the command 'xbmc'
Copying support and legal files...
Done!
Copying system files to /usr/share/xbmc
/bin/bash: gtk-update-icon-cache: command not found
Not sure if this is *the correct* way of fixing it, but gtk-update-icon-cache seems to exist as gtk-update-icon-cache-3.0 so I symlinked it:

Code: Select all

sudo ln -s /usr/bin/gtk-update-icon-cache-3.0 /usr/bin/gtk-update-icon-cache
I have to confess, I'm at work and have no Pi access, so it might be 2.0 not 3.0 (can't remember!)

protonic
Posts: 2
Joined: Mon Jul 23, 2012 10:18 pm
Location: Oslo, Norway

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 7:08 pm

Has anyone managed to compile XBMC with joystick support on Raspbian?
I tried myself but it complains about some "SDLjoystick.so" stuff.

tomaz
Posts: 38
Joined: Thu Jul 12, 2012 9:08 am

Re: Instructions for building XBMC for Raspbian

Wed Jul 25, 2012 10:48 pm

I have finally got time to finish writing information how to build .deb for XBMC, I have created new topic.
It is compiled without AirPlay...

You can read it here:
http://www.raspberrypi.org/phpBB3/viewt ... 66&t=12455

Tomaz.

Cod3r
Posts: 4
Joined: Fri Jul 20, 2012 3:31 am

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 12:11 am

i've built XBMC and it was fine no errors. Now when I start it I just get a blank black screen and there is no way for me to get out of it.

I have to control+alt+delete to reboot.. doesn't matter what i do. Anyone had this issue and fixed it?

g_d
Posts: 3
Joined: Wed Jul 25, 2012 5:02 pm

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 12:58 am

bob_binz wrote:
g_d wrote:

Code: Select all

pi@raspberrypi ~/xbmc-rbp $ sudo make install
Copying XBMC binary to /usr/lib/xbmc/xbmc.bin
You can run XBMC with the command 'xbmc'
Copying support and legal files...
Done!
Copying system files to /usr/share/xbmc
/bin/bash: gtk-update-icon-cache: command not found
Not sure if this is *the correct* way of fixing it, but gtk-update-icon-cache seems to exist as gtk-update-icon-cache-3.0 so I symlinked it:

Code: Select all

sudo ln -s /usr/bin/gtk-update-icon-cache-3.0 /usr/bin/gtk-update-icon-cache
I have to confess, I'm at work and have no Pi access, so it might be 2.0 not 3.0 (can't remember!)
Thanks! This did the trick!!

g_d
Posts: 3
Joined: Wed Jul 25, 2012 5:02 pm

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 1:02 am

Cod3r wrote:i've built XBMC and it was fine no errors. Now when I start it I just get a blank black screen and there is no way for me to get out of it.

I have to control+alt+delete to reboot.. doesn't matter what i do. Anyone had this issue and fixed it?
Same here.

So far my experience:

Wheezy with the above tutorial --> XBMC black screen
Raspbian Pisces - > XBMC works until rpi-update (or apt-get update/upgrade) performed, than -->black screen
openELEC -> works out of the box, headache with setting up network and wifi

satzzz
Posts: 1
Joined: Thu Jul 26, 2012 9:39 am

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 9:43 am

Hi Tomaz,
Is there any chance you or anyne else could ressed your image. The reason being is that I loaded it on a very slow gard and now have a much improved speedier card to try it on however I went and deleted it from my system.

Thanks

Satzzz
tomaz wrote:Hi Silas, DGreenMan and others,

thanks for not killing me, yet :)

Here is what I have done to your image (I wanted to use my 4Gb card :)
- write your image to 8Gb SD card
- use virtual machine with gparted bootable cd, resize partition to - 100Mb.
- read 8Gb SD card to file
- split this big file at size 3965190144
- write new file to 4Gb card, jupi :)

I have created Torrent (see attachment) for someone with problems to write image on 4Gb card.
raspbian-xbmc.silas.Jul.17.2012-4Gb-card.7z.torrent
Now more people can use this image, with 4Gb Cards (or little less:)
In this image at the end now it is 66,5Mb unallocated space. Checked with gparted. It means you can safely delete 66,5Mb at the end of the .img, if image is still to big to fit on your 4Gb SD card.

Or you can use this for swap partition (with gparted I saw there is no swap partition) or use this space to enlarge your primary partition.

And now some more interesting stuff about what I have seen on this .img:

In config.txt I have seen, nothing to worry, just to let you know:
arm_freq=880

First time just after starting XBMC after one minute stopped responding (freezes).
Next reboot, after starting XBMC nothing happened just blue background. If I pressed enter it showed me prompt. Next reboot unknow error on blue background again enter showed me prompt ... So lot of problems, unusable for me.

It was crashing till I commented/deleted arm_freq=880 line. Maybe my 0.7A charger is not enough or I should also overclock something else, who knows...

I didn't recapture my 4Gb card, so if anyone have this problems, they can try to delete arm_freq line.
For me it is enough speed (it is armhf:), I think I don't need overclocking.

Now it is working constantly for cca 2 hours without problems, playing from PS3 media server (just for test, not best choice to use PS3 media server, but it was already on my computer) over network with no problem.

Sound is working with HDMI and analog. Default it was set to analog.

Thanks you all for good work :)

Regards,
Tomaz.

tomaz
Posts: 38
Joined: Thu Jul 12, 2012 9:08 am

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 1:04 pm

Hi satzzz,
I could after few hours. I'm not at home right now :)

Did you try installing .deb package I prepared yesterday?

Tomaz.
satzzz wrote:Hi Tomaz,
Is there any chance you or anyne else could ressed your image. The reason being is that I loaded it on a very slow gard and now have a much improved speedier card to try it on however I went and deleted it from my system.

Thanks

Satzzz

jpitcairn
Posts: 1
Joined: Thu Jul 26, 2012 1:16 pm

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 1:22 pm

Hey guys first time poster.

Been a few years since i've used linux and I never really used apt for packagement management when i did so i guess i'm new to this.

Having some trouble when running the command to install the dependencies. I've tried copying and pasting the code a few posts up and It wont work. This is the command and the output i'm getting.

Code: Select all

pi@raspberrypi ~ $ sudo apt-get install autotools-dev comerr-dev dpkg-dev libalsaplayer-dev \
>     libapt-pkg-dev:armhf libasound2-dev:armhf libass-dev:armhf libatk1.0-dev \
>     libavahi-client-dev libavahi-common-dev libavcodec-dev libavformat-dev \
>     libafpclient0 libafpclient-dev libplist1 libplist-dev libshairport-dev \
>     libavutil-dev libbison-dev:armhf libbluray-dev:armhf libboost1.49-dev \
>     libbz2-dev:armhf libc-dev-bin libc6-dev:armhf libcaca-dev libcairo2-dev \
>     libcdio-dev libclalsadrv-dev libcrypto++-dev libcups2-dev libcurl3-gnutls-dev \
>     libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdrm-dev  \
>     libelf-dev libenca-dev libept-dev libevent-dev libexpat1-dev libflac-dev:armhf \
>     libfontconfig1-dev libfreetype6-dev libfribidi-dev libgconf2-dev \
>     libgcrypt11-dev libgdk-pixbuf2.0-dev avahi-daemon\
>     libglew-dev:armhf libglewmx-dev:armhf libglib2.0-dev libglu1-mesa-dev \
>     libgnome-keyring-dev libgnutls-dev libgpg-error-dev libgtk2.0-dev libhal-dev \
>     libhunspell-dev:armhf libice-dev:armhf libicu-dev libidn11-dev libiso9660-dev \
>     libjasper-dev libjbig-dev:armhf libjconv-dev libjpeg8-dev:armhf libkrb5-dev \
>     libldap2-dev:armhf libltdl-dev:armhf liblzo2-dev libmad0-dev libmicrohttpd-dev \
>     libmodplug-dev libmp3lame-dev:armhf libmpeg2-4-dev libmysqlclient-dev \
>     libncurses5-dev libnfs-dev libnspr4-dev libnss3-dev libogg-dev:armhf \ 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libcurl4-gnutls-dev' instead of 'libcurl3-gnutls-dev'
E: Unable to locate package  
pi@raspberrypi ~ $     libopenal-dev:armhf libp11-kit-dev libpam0g-dev:armhf libpango1.0-dev \
>     libpcre++-dev libpcre3-dev libpixman-1-dev libpng12-dev \
>     libprotobuf-dev libpthread-stubs0-dev:armhf \
>     libpulse-dev:armhf librtmp-dev libsamplerate0-dev:armhf \
>     libsdl-image1.2-dev:armhf libsdl1.2-dev libslang2-dev:armhf \
>     libsm-dev:armhf libsmbclient-dev:armhf libspeex-dev:armhf \
>     libsqlite3-dev libssh-dev libssh2-1-dev libssl-dev libstdc++6-4.6-dev \
>     libtagcoll2-dev libtasn1-3-dev libtiff4-dev libtinfo-dev:armhf libtinyxml-dev \
>     libts-dev:armhf libudev-dev libv8-dev libva-dev:armhf libvdpau-dev:armhf \
>     libvorbis-dev:armhf libvpx-dev:armhf libwebp-dev:armhf libwibble-dev \
>     libx11-dev:armhf libx11-xcb-dev libxapian-dev libxau-dev:armhf \
>     libxcb-glx0-dev:armhf libxcb-render0-dev:armhf libxcb-shm0-dev:armhf \
>     libxcb1-dev:armhf libxcomposite-dev libxcursor-dev:armhf libxdamage-dev \
>     libxdmcp-dev:armhf libxext-dev:armhf libxfixes-dev libxft-dev libxi-dev \
>     libxinerama-dev:armhf libxml2-dev:armhf libxmu-dev:armhf libxrandr-dev \
>     libxrender-dev:armhf libxslt1-dev libxss-dev:armhf libxt-dev:armhf \
>     libxtst-dev:armhf libxxf86vm-dev libyajl-dev libzip-dev linux-libc-dev:armhf \
>     lzma-dev mesa-common-dev python-dev python2.7-dev x11proto-composite-dev \
>     x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev \
>     x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev \
>     x11proto-record-dev x11proto-render-dev x11proto-scrnsaver-dev \
>     x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev \
>     zlib1g-dev:armhf
-bash: libopenal-dev:armhf: command not found
Any ideas how to fix it or am I doing something stupid?

itsonlyme
Posts: 131
Joined: Sun Feb 12, 2012 12:43 pm

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 2:22 pm

Tomaz.

Just installed your .deb package

First impressions - looks good probably the one I'll stay with.

Well done


Malcolm

ralzakark1
Posts: 2
Joined: Thu Jul 26, 2012 3:55 pm

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 4:04 pm

bob_binz wrote:
g_d wrote:

Code: Select all

pi@raspberrypi ~/xbmc-rbp $ sudo make install
Copying XBMC binary to /usr/lib/xbmc/xbmc.bin
You can run XBMC with the command 'xbmc'
Copying support and legal files...
Done!
Copying system files to /usr/share/xbmc
/bin/bash: gtk-update-icon-cache: command not found
Not sure if this is *the correct* way of fixing it, but gtk-update-icon-cache seems to exist as gtk-update-icon-cache-3.0 so I symlinked it:

Code: Select all

sudo ln -s /usr/bin/gtk-update-icon-cache-3.0 /usr/bin/gtk-update-icon-cache
I see that this suggested fix has worked for g_d the original poster, but I've got exactly the same problem. When I run your extra line I get an error:

Code: Select all

ln: failed to create symbolic link ' /usr/bin/gtk-update-icon-cache': No such file or directory
Can anyone suggest a next step? I'm pretty new to the command line and frankly have understood maybe 10% of jmg123's Step1-13 instructions, so I haven't a clue on resolving this issue...

ralzakark1
Posts: 2
Joined: Thu Jul 26, 2012 3:55 pm

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 4:27 pm

Please ignore my last post, PEBKAC (problem exists between keyboard and chair). I managed to put a 'user' instead of 'usr' in directory path; now seems to be working fine. Sorry!

tomaz
Posts: 38
Joined: Thu Jul 12, 2012 9:08 am

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 6:58 pm

Hi itsonlyme,
thanks :)

jmg123: Figure out that when looking for dependencies of binary with: "ldd /usr/lib/xbmc/xbmc.bin" is not enough, so I have found that XBMC also needs "upower" (sudo apt-get install upower) for shutdown to work properly. You should add this to your compiling list.

Tomaz.
itsonlyme wrote:Tomaz.

Just installed your .deb package

First impressions - looks good probably the one I'll stay with.

Well done


Malcolm

User avatar
MoonTEC
Posts: 28
Joined: Sat Aug 20, 2011 8:20 am
Location: Lithuania
Contact: Website

Re: Instructions for building XBMC for Raspbian

Thu Jul 26, 2012 7:05 pm

For testing made 3 in 1. Used the instructions from Raspbian home page for building XBMC and Quake.
Purged X, some dev tools, docs. Image should fit on 1GB SD card.
Compressed with 7zip 193MB, compressed with zip 253MB
user root, password raspbian
Depending on where You want output sound, run audio_hdmi.sh or audio_analog.sh
Quake starts typing quake3.sh, XBMC starts typing xbmc.sh
nginx and php5-fpm not loaded on boot, to test owncloud run rcconf, enable nginx and php5-fpm and reboot,
or start manualy

Code: Select all

/etc/init.d/php5-fpm start 
/etc/init.d/nginx start
Then check with browser Your RPi address. On start page there should be links to phpinfo and owncloud.

Return to “Raspberry Pi OS”