Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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

This comment has been minimized.

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
You can’t perform that action at this time.