fix: remove broken ofxOfelia dependency and add Arch Linux support for OpenFrameworks

This commit is contained in:
Timothy Hofland
2026-03-11 09:17:42 +01:00
parent 1bcfabeb98
commit 6626af6cc8

View File

@ -248,23 +248,28 @@ else
cd "$REAL_HOME" cd "$REAL_HOME"
if [ ! -d "openFrameworks" ]; then if [ ! -d "openFrameworks" ]; then
sudo -u "$REAL_USER" git clone --depth 1 --branch master https://github.com/openframeworks/openFrameworks.git sudo -u "$REAL_USER" git clone --depth 1 --branch master https://github.com/openframeworks/openFrameworks.git
# Only run apt-get if we are on a Debian-based system
if command -v apt-get > /dev/null; then if command -v apt-get > /dev/null; then
echo "Debian-based system detected. Installing dependencies..."
cd openFrameworks/scripts/linux/debian cd openFrameworks/scripts/linux/debian
./install_dependencies.sh -y ./install_dependencies.sh -y
cd ../../../
cd scripts/linux/debian
./install_codecs.sh ./install_codecs.sh
cd ../../../ elif command -v pacman > /dev/null; then
sudo -u "$REAL_USER" make -j1 -C libs/openFrameworksCompiled/project/linux64 echo "Arch-based system detected. Installing dependencies..."
cd openFrameworks/scripts/linux/archlinux
sudo ./install_dependencies.sh --noconfirm
else else
echo "WARNING: Non-Debian system detected. Please install OpenFrameworks dependencies manually." echo "WARNING: Unsupported system detected. Please install OpenFrameworks dependencies manually."
fi fi
cd "$REAL_HOME/openFrameworks"
sudo -u "$REAL_USER" make -j1 -C libs/openFrameworksCompiled/project/linux64
fi fi
cd "$REAL_HOME/openFrameworks/addons" cd "$REAL_HOME/openFrameworks/addons"
[ ! -d "ofxPiMapper" ] && sudo -u "$REAL_USER" git clone https://github.com/kr15h/ofxPiMapper.git if [ ! -d "ofxPiMapper" ]; then
[ ! -d "ofxOfelia" ] && sudo -u "$REAL_USER" git clone https://github.com/vanderlin/ofxOfelia.git sudo -u "$REAL_USER" git clone https://github.com/kr15h/ofxPiMapper.git
fi
# Patch and Build # Patch and Build
cd "$REAL_HOME/openFrameworks/addons/ofxPiMapper" cd "$REAL_HOME/openFrameworks/addons/ofxPiMapper"