README-raspberrypi.txt
changeset 7808 627f256b0e56
parent 7806 03e6aaea8347
child 7809 fd53b2b2a205
equal deleted inserted replaced
7807:73da2747c268 7808:627f256b0e56
    67 
    67 
    68     export CC="/opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc --sysroot=$SYSROOT -I$SYSROOT/opt/vc/include -I$SYSROOT/usr/include -I$SYSROOT/opt/vc/include/interface/vcos/pthreads -I$SYSROOT/opt/vc/include/interface/vmcs_host/linux"
    68     export CC="/opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc --sysroot=$SYSROOT -I$SYSROOT/opt/vc/include -I$SYSROOT/usr/include -I$SYSROOT/opt/vc/include/interface/vcos/pthreads -I$SYSROOT/opt/vc/include/interface/vmcs_host/linux"
    69     cd <SDL SOURCE>
    69     cd <SDL SOURCE>
    70     mkdir -p build;cd build
    70     mkdir -p build;cd build
    71     ../configure --with-sysroot=$SYSROOT --host=arm-raspberry-linux-gnueabihf --prefix=$PWD/rpi-sdl2-installed --disable-pulseaudio --disable-esd
    71     ../configure --with-sysroot=$SYSROOT --host=arm-raspberry-linux-gnueabihf --prefix=$PWD/rpi-sdl2-installed --disable-pulseaudio --disable-esd
       
    72     make
       
    73     make install
    72 
    74 
       
    75 To be able to deploy this to /usr/local in the Raspbian system you need to fix up a few paths:
       
    76     
       
    77     perl -w -pi -e "s#$PWD/rpi-sdl2-installed#/usr/local#g;" ./rpi-sdl2-installed/lib/libSDL2.la ./rpi-sdl2-installed/lib/pkgconfig/sdl2.pc ./rpi-sdl2-installed/bin/sdl2-config
       
    78     
    73 ================================================================================
    79 ================================================================================
    74  Apps don't work or poor video/audio performance
    80  Apps don't work or poor video/audio performance
    75 ================================================================================
    81 ================================================================================
    76 
    82 
    77 If you get sound problems, buffer underruns, etc, run "sudo rpi-update" to 
    83 If you get sound problems, buffer underruns, etc, run "sudo rpi-update" to