Author: Kang Lin kl222@126.com
Translator: Allan Nordhøy epost@anotheragency.no
Windows 10, version 20H2 (19042.985)
Version: v11.0.0 .
It is recommended to use version v5.0.2 or later.
Prior versions don't have CMake support.
Compiler
Windows SDK: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive
Install the SDK that corresponds to your operating system. (CDB must be installed, and Qt debugging is required.)
[OPTIONAL] Windows Driver Kit: https://docs.microsoft.com/zh-cn/windows-hardware/drivers/download-the-wdk
Qt
CMake: https://www.cmake.org/ Version: 3.27.0
Doxygen: http://www.doxygen.nl/
See: Compile integration
This library is placed in the same directory level as the project by default. If not, you must specify the CMake parameters: -DRabbitCommon_DIR=[RabbitCommon installation path]
git clone https://github.com/KangLin/RabbitCommon.git
Source-code location: https://github.com/microsoft/vcpkg/
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
vcpkg install freerdp
Specify the CMake parameters: -DCMAKE_TOOLCHAIN_FILE=[vcpkg installation path]/scripts/buildsystems/vcpkg.cmake
With vcpk, the FreeRDP service is not a default feature, so you need to specify it manually.
Source-code location: https://github.com/FreeRDP/FreeRDP
Compilation instructions: https://github.com/FreeRDP/FreeRDP/wiki/Compilation
git clone https://github.com/FreeRDP/FreeRDP.git
cd FreeRDP
mkdir build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install -DWITH_SERVER=ON
cmake --build . --config Release --target install
Specify the CMake parameters:
Source-code location: https://github.com/LibVNC/libvncserver
It is recommended to use the patches from: https://github.com/KangLin/libvncserver
cd vcpkg
vcpkg install zlib openssl libjpeg-turbo
git clone https://github.com/KangLin/libvncserver.git
cd libvncserver
mkdir build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install -DCMAKE_TOOLCHAIN_FILE=[vcpkg installation path]/scripts/buildsystems/vcpkg.cmake
cmake --build . --config Release --target install
Specify the CMake parameters: -DLibVNCServer_DIR=[LibVNCServer installation path]/lib/cmake/LibVNCServer
Compile from source code Source-code location: https://github.com/KangLin/RabbitVNC
cd vcpkg
vcpkg install zlib openssl libjpeg-turbo pixman
git clone https://github.com/KangLin/RabbitVNC.git
cd RabbitVNC
mkdir build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install -DCMAKE_TOOLCHAIN_FILE=[vcpkg 安装目录]/scripts/buildsystems/vcpkg.cmake
cmake --build . --config Release --target install
Specify the CMake parameters: -DRabbitVNC_DIR=[RabbitVNC installation path]/lib/cmake/tigervnc
The official program does not support libraries.
See: https://github.com/TigerVNC/tigervnc/issues/1123
The Kanglin fork has support.
Source-code location: https://github.com/KangLin/tigervnc
cd vcpkg
vcpkg install zlib openssl pixman libjpeg-turbo
git clone https://github.com/KangLin/tigervnc.git
cd tigervnc
mkdir build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install -DCMAKE_TOOLCHAIN_FILE=[vcpkg installation path]/scripts/buildsystems/vcpkg.cmake
cmake --build . --config Release --target install
Use vcpkg
Source-code location: https://github.com/microsoft/vcpkg/
cd vcpkg
vcpkg install libdatachannel
Specify the CMake parameters: -DCMAKE_TOOLCHAIN_FILE=[vcpkg installation path]/scripts/buildsystems/vcpkg.cmake
Compile from source code
Source-code location: https://github.com/paullouisageneau/libdatachannel
Compilation instructions: https://github.com/paullouisageneau/libdatachannel/blob/master/BUILDING.md
git clone https://github.com/paullouisageneau/libdatachannel.git
cd libdatachannel
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install
cmake --build . --config Release --target install
Specify the CMake parameters: -Dlibdatachannel_DIR=[libdatachannel installation path]/lib/cmake/LibDataChannel
Source-code location: https://github.com/qxmpp-project/qxmpp
git clone https://github.com/qxmpp-project/qxmpp.git
cd qxmpp
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install -DQt5_DIR=[Qt install path]/lib/cmake/Qt5
cmake --build . --config Release --target install
Specify the CMake parameters: -DQXmpp_DIR=[QXmpp installation path]/lib/cmake/qxmpp
Source-code location: https://github.com/microsoft/vcpkg/
cd vcpkg
vcpkg install libssh
Specify the CMake parameters: -DCMAKE_TOOLCHAIN_FILE=[vcpkg installation path]/scripts/buildsystems/vcpkg.cmake
Source-code location: https://github.com/KangLin/qt-solutions/
~$ git clone https://github.com/KangLin/qt-solutions.git
~$ cd qt-solutions
~/qt-solutions$ mkdir build
~/qt-solutions$ cd build
~/qt-solutions/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install
~/qt-solutions/build$ cmake --build . --config Release --target install
Specify the CMake parameters: -DQtService_DIR=[QtService installation path]/lib/cmake/QtService
Project location: https://github.com/KangLin/RabbitRemoteControl
Download the source code:
git clone https://github.com/KangLin/RabbitRemoteControl.git
The CMake parameters:
If using vcpkg, please set the CMake parameters:
Compile
Compile from the command-line
cd RabbitRemoteControl
mkdir build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install -DBUILD_FREERDP=ON [options libraries] -DCMAKE_TOOLCHAIN_FILE=[vcpkg installation path]/scripts/buildsystems/vcpkg.cmake -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON
cmake --build . --config Release --target install
; Package
cmake --install . --config Release --component Runtime --strip
cmake --install . --config Release --component Application --strip
cmake --install . --config Release --component Plugin --strip
cmake --install . --config Release --component DependLibraries --strip
makensis Install.nsi
Using an IDE (Qt Creator)
Note: If the plugin does not load. It may be that the plugin's dependencies are not installed on the system. You can copy the dependent library into the application's bin directory.
See: Compile integration
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。