-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpi: improve startup scripts, cleanup dependencies
- Loading branch information
Showing
6 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash -eux | ||
|
||
# Default script to use to launch ossia on a graphical session under a Pi | ||
DIR=$(realpath "${BASH_SOURCE[0]}") | ||
DIR=$(dirname "$DIR") | ||
|
||
source "$DIR/bin/setup-dependencies.sh" | ||
|
||
export MESA_GLES_VERSION_OVERRIDE=3.2 | ||
export MESA_GLSL_VERSION_OVERRIDE=320 | ||
export LD_LIBRARY_PATH="$DIR/lib" | ||
export QT_QPA_PLATFORM=wayland | ||
|
||
"$DIR/bin/ossia-score" $@ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
if [[ -f /etc/redhat-release ]]; then | ||
# Fedora does not ship this for some obscure reason | ||
if [[ ! -f "$DIR/lib/libbz2.so.1.0" ]]; then | ||
find /usr -name libbz2.so.1 -exec cp {} "$DIR/lib/libbz2.so.1.0" \; || true | ||
fi | ||
|
||
# Fedora has a recent enough libstdc++ | ||
rm "$DIR/lib/libstdc++.so.6" | ||
fi | ||
|
||
if [[ -f /etc/arch-release ]]; then | ||
# Arch has a recent enough libstdc++ | ||
rm "$DIR/lib/libstdc++.so.6" | ||
fi |