Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions linux/oracle_get_prereqs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash
#
# Install prerequisite packages for SonoBus build on Fedora

GITREPO="https://github.com/sonosaurus/sonobus"

PREREQS="opus \
opus-devel \
jack-audio-connection-kit \
jack-audio-connection-kit-devel \
alsa-lib-devel \
libX11-devel \
libXext-devel \
libXinerama-devel \
libXrandr-devel \
libXcursor-devel \
freetype-devel \
libcurl-devel \
cmake
"

echo ""
echo "Installing prerequisites - " $(date)
echo ""

sudo dnf update
sudo dnf -y groupinstall "Development Tools"
sudo dnf -y install git $PREREQS --allowerasing


function ver { printf "%03d%03d%03d%03d" $(echo "$1" | tr '.' ' '); }

cmakever=$(cmake --version | head -1 | cut -d" " -f3)

if [ $(ver $cmakever) -lt $(ver 3.16) ] ; then
echo "Your CMake is too old! You need version 3.16 or higher. Try to get a newer version, or compile CMake from source."
exit 1
fi