This repository has been archived by the owner on Dec 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 647
Compiling
Symeon Huang edited this page May 21, 2016
·
19 revisions
- Qt >= 5.2 (
qt5-qtbase-devel
andqt5-qttools
in Fedora,qtbase5-dev
andqt5-qmake
in Debian/Ubuntu) - Botan >= 1.10 (
botan-devel
in Fedora,libbotan1.10-dev
in Debian/Ubuntu) - A C++ Compiler that supports C++11 features (i.e. GCC >= 4.7)
- Download and extract the latest source code tarball from release (DON'T use
master
branch code in production environment beacause it's always under development) - Run
qmake
to generateMakefile
. By default, theINSTALL_PREFIX
is/usr
, andBOTAN_VER
is"1.10"
. If you want to install it to different location, or use a different version of Botan library, i.e. install to/usr/local
and use Botan 1.11, then you need to run commandqmake INSTALL_PREFIX=/usr/local BOTAN_VER="1.11"
. If your distribution (i.e. Fedora) requires library installed into/usr/lib64
on 64-bit system instead of/usr/lib
, you have to add an extra argumentDEFINES+="LIB64"
toqmake
command. - At last, compile and install it:
make
sudo make install
The above procedures will compile and install both libQtShadowsocks
and shadowsocks-libQtShadowsocks
. If you're a packager, you might need to split it into two or three packages depending on your distribution's guidelines.
- XCode & Command Line Tools
- Homebrew
Install Qt and other dependencies if you don't have them installed.
brew update
brew install qt5 botan
# link qmake
ln -s /usr/local/opt/qt5/bin/qmake /usr/local/bin/qmake
qmake INSTALL_PREFIX=/usr/local
make all
make install