Skip to content

Instantly share code, notes, and snippets.

@Maigre
Last active January 29, 2019 18:48
Show Gist options
  • Save Maigre/7f263770298af456d447f7b92c4d19c5 to your computer and use it in GitHub Desktop.
Save Maigre/7f263770298af456d447f7b92c4d19c5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# UPDATE RPI
sudo pacman -Syu --noconfirm
sudo pacman -S --needed base-devel --noconfirm
sudo pacman -S git --noconfirm
# COMPILE FLAGS
export MAKEFLAGS=-j4 PLATFORM_ARCH=armv7l PLATFORM_VARIANT=raspberry2
# AUR
cd ~
mkdir aur
cd aur
# RTMIDI
curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/rtmidi.tar.gz
tar -zxvf rtmidi.tar.gz
rm rtmidi.tar.gz
cd rtmidi
sed -i 's/i686/armv7h/g' PKGBUILD
makepkg -si --noconfirm
cd ..
# RTAUDIO 4.1.1
mkdir rtaudio
cd rtaudio
wget http://pkgbuild.com/git/aur-mirror.git/plain/rtaudio/PKGBUILD -O PKGBUILD
sed -i 's/i686/armv7h/g' PKGBUILD
makepkg -si --noconfirm
# CLEAN UP
cd ~
rm -R aur
# OF
cd ~/
curl -O http://openframeworks.cc/versions/v0.9.8/of_v0.9.8_linuxarmv7l_release.tar.gz
tar vxfz of_v0.9.8_linuxarmv7l_release.tar.gz
rm of_v0.9.8_linuxarmv7l_release.tar.gz
mv of_v0.9.8_linuxarmv7l_release openFrameworks
cd ~/openFrameworks/scripts/linux/archlinux
sudo ./install_dependencies.sh
sudo ./install_codecs.sh
cd ~
make Release -C ~/openFrameworks/libs/openFrameworksCompiled/project
export MAKEFLAGS=-j1
# ADDONS
cd ~/openFrameworks/addons/
git clone https://github.com/jvcleave/ofxOMXPlayer.git
git clone https://github.com/satoruhiga/ofxArgParser.git
git clone https://github.com/jkosoy/ofxCrypto.git
# FIX FFMPEG OMXPLAYER
cd ~/openFrameworks/addons/ofxOMXPlayer/libs/linuxarmv7l
rm -R ffmpeg
./download.sh
sudo pacman -S smbclient --noconfirm
make
# HPLAYER
cd ~/openFrameworks/apps/myApps/
git clone https://github.com/Hemisphere-Project/HPlayer.git
cd HPlayer
make
cp -R bin/ ~/HPlayer
cd ~
@eliemichel
Copy link

eliemichel commented Jan 29, 2019

The link line 28 is broken, replace with wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=rtaudio -O PKGBUILD
And https instead of http line 38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment