1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(simple_make.sh): add missing dependencies for Fedora

By installing RPM Fusion repo, which provides required ffmpeg.

Also add missing qt5-qtsvg-devel dependency.

Closes #2998
This commit is contained in:
Zetok Zalbavar 2016-04-29 11:33:57 +01:00
parent 4e0fc4632b
commit 5b51f71ff8
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -14,11 +14,14 @@ elif which pacman; then
elif which dnf; then
sudo dnf group install \
"Development Tools"
# pure Fedora doesn't have what it takes to compile qTox (ffmpeg)
sudo dnf install \
git qt-devel qt-doc qt-creator qt5-qtsvg openal-soft-devel \
libXScrnSaver-devel qrencode-devel opus-devel libvpx-devel \
qt5-qttools-devel glib2-devel gdk-pixbuf2-devel gtk2-devel \
libsodium-devel
http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install \
git qt-devel qt-doc qt-creator qt5-qtsvg qt5-qtsvg-devel \
openal-soft-devel qt5-qttools-devel libXScrnSaver-devel \
qrencode-devel opus-devel libvpx-devel glib2-devel gdk-pixbuf2-devel \
gtk2-devel libsodium-devel ffmpeg-devel
elif which zypper; then
sudo zypper in \
git patterns-openSUSE-devel_basis libqt5-qtbase-common-devel \
@ -26,8 +29,8 @@ elif which zypper; then
libQt5OpenGL-devel libQt5Concurrent-devel libQt5Xml-devel \
libQt5Sql-devel openal-soft-devel qrencode-devel \
libXScrnSaver-devel libQt5Sql5-sqlite libffmpeg-devel \
libsodium-devel libvpx-devel libopus-devel patterns-openSUSE-devel_basis \
sqlcipher-devel
libsodium-devel libvpx-devel libopus-devel \
patterns-openSUSE-devel_basis sqlcipher-devel
else
echo "Unknown package manager, attempting to compile anyways"
fi
@ -38,4 +41,4 @@ if [ -e /etc/redhat-release -o -e /etc/zypp ]; then
else
qmake
fi
make
make -j$(nproc)