Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Compiling

Symeon Huang edited this page May 21, 2016 · 19 revisions

Dependencies

  • Qt >= 5.2 (qt5-qtbase-devel and qt5-qttools in Fedora, qtbase5-dev and qt5-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)

Building

Building on GNU/Linux

  1. 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)
  2. Run qmake to generate Makefile. By default, the INSTALL_PREFIX is /usr, and BOTAN_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 command qmake 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 argument DEFINES+="LIB64" to qmake command.
  3. 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.

Building on Mac OS X

Requirements

Setup Environment

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

libQtShadowsocks Installation

qmake INSTALL_PREFIX=/usr/local
make all
make install
Clone this wiki locally