Last active
January 29, 2019 18:48
-
-
Save Maigre/7f263770298af456d447f7b92c4d19c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ~ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ofhttp
line 38.