Skip to content
Dr. Incognito edited this page Feb 21, 2020 · 1 revision

Dependencies

  • Qt >= 5.14
  • git
  • g++
  • make

Get source code

git clone https://github.com/Dr-Incognito/V2Ray-Desktop.git

Initialize Third-party Libraries

cd V2Ray-Desktop

# If you are Chinese users, please use [email protected]
sed -i "s/github.com\/ftylitak/gitee.com\/Dr-Incognito/" .gitmodules

git submodule init
git submodule update --progress

Build Binaries

If you want to use v2ray-core provided by package manager, you need to edit src/constants.h

static const bool V2RAY_USE_LOCAL_INSTALL     = false;
// The path to directory where `v2ray` executable exists.
static const QString V2RAY_SYS_INSTALL_DIR    = "/usr/bin"; 

Otherwise you need to download v2ray-core from GitHub manually. After that, you need to put the folder v2ray-core to the folder where V2Ray Desktop binary exists.

Use the following commands to build V2Ray Desktop:

mkdir -p build && cd build
qmake ../src
make -j$nproc
Clone this wiki locally