SHARE
TWEET

Untitled

julnegre Jul 19th, 2012 241 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #/bin/sh
  2. sudo apt-get update
  3. sudo apt-get -y upgrade
  4. sudo apt-get -y install build-essential autoconf ccache gawk gperf mesa-utils zip unzip
  5. sudo apt-get -y install autotools-dev comerr-dev dpkg-dev libalsaplayer-dev \
  6.     libapt-pkg-dev:armhf libasound2-dev:armhf libass-dev:armhf libatk1.0-dev \
  7.     libavahi-client-dev libavahi-common-dev libavcodec-dev libavformat-dev \
  8.     libavutil-dev libbison-dev:armhf libbluray-dev:armhf libboost1.49-dev \
  9.     libbz2-dev:armhf libc-dev-bin libc6-dev:armhf libcaca-dev libcairo2-dev \
  10.     libcdio-dev libclalsadrv-dev libcrypto++-dev libcups2-dev libcurl3-gnutls-dev \
  11.     libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdrm-dev libegl1-mesa-dev \
  12.     libelf-dev libenca-dev libept-dev libevent-dev libexpat1-dev libflac-dev:armhf \
  13.     libfontconfig1-dev libfreetype6-dev libfribidi-dev libgconf2-dev \
  14.     libgcrypt11-dev libgdk-pixbuf2.0-dev libgl1-mesa-dev libgles2-mesa-dev \
  15.     libglew-dev:armhf libglewmx-dev:armhf libglib2.0-dev libglu1-mesa-dev \
  16.     libgnome-keyring-dev libgnutls-dev libgpg-error-dev libgtk2.0-dev libhal-dev \
  17.     libhunspell-dev:armhf libice-dev:armhf libicu-dev libidn11-dev libiso9660-dev \
  18.     libjasper-dev libjbig-dev:armhf libjconv-dev libjpeg8-dev:armhf libkrb5-dev \
  19.     libldap2-dev:armhf libltdl-dev:armhf liblzo2-dev libmad0-dev libmicrohttpd-dev \
  20.     libmodplug-dev libmp3lame-dev:armhf libmpeg2-4-dev libmysqlclient-dev \
  21.     libncurses5-dev libnspr4-dev libnss3-dev libogg-dev:armhf libopenal-dev:armhf \
  22.     libp11-kit-dev libpam0g-dev:armhf libpango1.0-dev libpcre++-dev libpcre3-dev \
  23.     libpixman-1-dev libpng12-dev libprotobuf-dev libpthread-stubs0-dev:armhf \
  24.     libpulse-dev:armhf librtmp-dev libsamplerate0-dev:armhf \
  25.     libsdl-image1.2-dev:armhf libsdl1.2-dev libslang2-dev:armhf \
  26.     libsm-dev:armhf libsmbclient-dev:armhf libspeex-dev:armhf \
  27.     libsqlite3-dev libssh-dev libssh2-1-dev libssl-dev libstdc++6-4.6-dev \
  28.     libtagcoll2-dev libtasn1-3-dev libtiff4-dev libtinfo-dev:armhf libtinyxml-dev \
  29.     libts-dev:armhf libudev-dev libv8-dev libva-dev:armhf libvdpau-dev:armhf \
  30.     libvorbis-dev:armhf libvpx-dev:armhf libwebp-dev:armhf libwibble-dev \
  31.     libx11-dev:armhf libx11-xcb-dev libxapian-dev libxau-dev:armhf \
  32.     libxcb-glx0-dev:armhf libxcb-render0-dev:armhf libxcb-shm0-dev:armhf \
  33.     libxcb1-dev:armhf libxcomposite-dev libxcursor-dev:armhf libxdamage-dev \
  34.     libxdmcp-dev:armhf libxext-dev:armhf libxfixes-dev libxft-dev libxi-dev \
  35.     libxinerama-dev:armhf libxml2-dev:armhf libxmu-dev:armhf libxrandr-dev \
  36.     libxrender-dev:armhf libxslt1-dev libxss-dev:armhf libxt-dev:armhf \
  37.     libxtst-dev:armhf libxxf86vm-dev libyajl-dev libzip-dev linux-libc-dev:armhf \
  38.     lzma-dev mesa-common-dev python-dev python2.7-dev x11proto-composite-dev \
  39.     x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev \
  40.     x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev \
  41.     x11proto-record-dev x11proto-render-dev x11proto-scrnsaver-dev \
  42.     x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev \
  43.     zlib1g-dev:armhf
  44. sudo apt-get clean     
  45. sudo cp -R /opt/vc/include/* /usr/include
  46. sudo cp /opt/vc/include/interface/vcos/pthreads/* /usr/include/interface/vcos
  47. sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/libEGL.so
  48. sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so
  49. sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so.1
  50. sudo ln -fs /opt/vc/lib/libEGL_static.a /usr/lib/libEGL_static.a
  51. sudo ln -fs /opt/vc/lib/libEGL_static.a /usr/lib/arm-linux-gnueabihf/libEGL_static.a
  52. sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/libGLESv2.so
  53. sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so
  54. sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2
  55. sudo ln -fs /opt/vc/lib/libGLESv2_static.a /usr/lib/libGLESv2_static.a
  56. sudo ln -fs /opt/vc/lib/libGLESv2_static.a /usr/lib/arm-linux-gnueabihf/libGLESv2_static.a
  57. sudo ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/libbcm_host.so
  58. sudo ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/arm-linux-gnueabihf/libbcm_host.so
  59. sudo ln -fs /opt/vc/lib/libvchiq_arm.a /usr/lib/libvchiq_arm.a
  60. sudo ln -fs /opt/vc/lib/libvchiq_arm.a /usr/lib/arm-linux-gnueabihf/libvchiq_arm.a
  61. sudo ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/libvchiq_arm.so
  62. sudo ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/arm-linux-gnueabihf/libvchiq_arm.so
  63. sudo ln -fs /opt/vc/lib/libvcos.a /usr/lib/libvcos.a
  64. sudo ln -fs /opt/vc/lib/libvcos.a /usr/lib/arm-linux-gnueabihf/libvcos.a
  65. sudo ln -fs /opt/vc/lib/libvcos.so /usr/lib/libvcos.so
  66. sudo ln -fs /opt/vc/lib/libvcos.so /usr/lib/arm-linux-gnueabihf/libvcos.so
  67. git clone --depth 1 git://github.com/xbmc/xbmc-rbp.git
  68. cd xbmc-rbp/
  69. sed -i 's/USE_BUILDROOT=1/USE_BUILDROOT=0/' tools/rbp/setup-sdk.sh
  70. sed -i 's/TOOLCHAIN=\/usr\/local\/bcm-gcc/TOOLCHAIN=\/usr/' tools/rbp/setup-sdk.sh
  71. sudo sh tools/rbp/setup-sdk.sh
  72. sed -i 's/cd $(SOURCE); $(CONFIGURE)/#cd $(SOURCE); $(CONFIGURE)/' tools/rbp/depends/xbmc/Makefile
  73. make -C tools/rbp/depends/xbmc/
  74. ./configure --prefix=/usr --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf \
  75.     --localstatedir=/var/lib --with-platform=raspberry-pi --disable-gl --enable-gles \
  76.     --disable-x11 --disable-sdl --enable-ccache --enable-optimizations \
  77.     --enable-external-libraries --disable-goom --disable-hal --disable-pulse \
  78.     --disable-vaapi --disable-vdpau --disable-xrandr --disable-airplay \
  79.     --disable-alsa --enable-avahi --disable-libbluray --disable-dvdcss \
  80.     --disable-debug --disable-joystick --enable-mid --disable-nfs --disable-profiling \
  81.     --disable-projectm --enable-rsxs --enable-rtmp --disable-vaapi \
  82.     --disable-vdadecoder --disable-external-ffmpeg  --disable-optical-drive
  83. sed -i 's/-msse2//' lib/libsquish/Makefile
  84. sed -i 's/-DSQUISH_USE_SSE=2//' lib/libsquish/Makefile
  85. make
  86. sudo make install
  87. sudo sed -i 's/\/dev\/mmcblk0p2/#\/dev\/mmcblk0p2/' /etc/fstab
  88. sudo apt-get purge exim4 exim4-base exim4-config exim4-daemon-light
  89. sudo cp /boot/arm128_start.elf /boot/start.elf
  90.  
  91. sudo reboot
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top