-
Notifications
You must be signed in to change notification settings - Fork 211
Compile
Dr. Incognito edited this page Feb 21, 2020
·
1 revision
- Qt >= 5.14
- git
- g++
- make
git clone https://github.com/Dr-Incognito/V2Ray-Desktop.git
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
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