Last active
April 6, 2020 18:43
-
-
Save ggodreau/9039959aef6abfc92f37089d73bab38e to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# Installer for toxcore and qtox for ubuntu | |
sudo apt-get install \ | |
build-essential \ | |
cmake \ | |
libavcodec-dev \ | |
libavdevice-dev \ | |
libavfilter-dev \ | |
libavutil-dev \ | |
libexif-dev \ | |
libgdk-pixbuf2.0-dev \ | |
libglib2.0-dev \ | |
libgtk2.0-dev \ | |
libkdeui5 \ | |
libopenal-dev \ | |
libopus-dev \ | |
libqrencode-dev \ | |
libqt5opengl5-dev \ | |
libqt5svg5-dev \ | |
libsodium-dev \ | |
libsqlcipher-dev \ | |
libswresample-dev \ | |
libswscale-dev \ | |
libvpx-dev \ | |
libxss-dev \ | |
qrencode \ | |
qt5-default \ | |
qttools5-dev-tools \ | |
qttools5-dev | |
git clone https://github.com/toktok/c-toxcore.git toxcore | |
cd toxcore | |
git checkout v0.2.11 | |
cmake . -DBOOTSTRAP_DAEMON=OFF | |
make -j$(nproc) | |
sudo make install | |
# we don't know what whether user runs 64 or 32 bits, and on some distros | |
# (Fedora, openSUSE) lib/ doesn't link to lib64/, so add both | |
echo '/usr/local/lib64/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf | |
echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf | |
sudo ldconfig | |
# install qTox | |
cd .. | |
git clone https://github.com/qTox/qTox.git | |
cd qTox | |
cmake . | |
make -j$(nproc) | |
./qtox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment