Skip to content
Snippets Groups Projects

Setup Raspberry Pi with Bullet, RakNet, raspi2png and FreeType

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Zandor Smith

    Commands for installation of RakNet provided by Bert Heesakkers (https://github.com/BertHeesakkers) (NHTV).

    Run script below by running: wget -O - http://git.zsinfo.nl/snippets/7/raw | bash

    Edited
    setup.sh 1.34 KiB
    #!/bin/bash
    
    # Bullet installation:
    # See http://www.scratchpadgames.net/forums/showthread.php?tid=24
    sudo apt-get install libbullet-dev -y
    echo Bullet installed.
    
    # RakNet installation:
    # Commands below provided by Bert Heesakkers (NHTV) and modified by Zandor Smith.
    sudo apt-get install cmake -y
    
    git clone https://github.com/facebookarchive/RakNet.git /home/pi/RakNet
    cd /home/pi/RakNet
    cmake .
    make
    make install
    
    echo Removing old RakNet installation if it exists.
    sudo rm -rf /usr/local/include/raknet
    
    echo Moving RakNet to the correct directory.
    sudo mv Lib/LibStatic/libRakNetLibStatic.a /usr/local/lib
    sudo mv include/raknet /usr/local/include/
    
    echo Cleaning up...
    rm -rf /home/pi/RakNet
    
    echo RakNet installed.
    
    # raspi2png installation:
    sudo apt-get install libpng12-dev -y
    git clone https://github.com/AndrewFromMelbourne/raspi2png.git /home/pi/raspi2png
    cd /home/pi/raspi2png
    make
    echo raspi2png available in /home/pi/raspi2png
    
    # Install FreeType
    echo Installing freetype...
    sudo apt-get install libfreetype6 libfreetype6-dev -y
    
    #git clone git://git.sv.nongnu.org/freetype/freetype2.git /home/pi/freetype2
    #cd /home/pi/freetype2
    cd /home/pi
    wget https://download.savannah.gnu.org/releases/freetype/freetype-2.6.3.tar.gz
    tar -xvzf freetype-2.6.3.tar.gz
    cd freetype-2.6.3
    make
    sudo make install
    echo FreeType installed
    
    echo Done! Script made by Zandor Smith
    • Updated to remove old RakNet installation if it already exists.

    • Added FreeType installation.

    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment