玉兔远程控制 v0.0.26
|
作者:康林 kl222.nosp@m.@126.nosp@m..com
Windows 10 版本 20H2 (19042.985)
版本:v11.0.0 。建议使用 v5.0.2 及以后版本,以前版本对 CMake 支持不够。
参见:编译集成
此库默认放在与本项目同级目录下,如果没有在同级目录下,则必须指定 CMake 参数: -DRabbitCommon_DIR=[RabbitCommon 安装目录]
git clone https://github.com/KangLin/RabbitCommon.git
git clone https://github.com/microsoft/vcpkg.git cd vcpkg bootstrap-vcpkg.bat vcpkg install freerdp
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
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 安装目录]/scripts/buildsystems/vcpkg.cmake cmake --build . --config Release --target install
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
官方只是个应用程序,不支持库。详见:https://github.com/TigerVNC/tigervnc/issues/1123
所以本人在官方基础上做了修改。源码位置: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 安装目录]/scripts/buildsystems/vcpkg.cmake cmake --build . --config Release --target install
cd vcpkg vcpkg install libdatachannel
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
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 安装目录]/lib/cmake/Qt5 cmake --build . --config Release --target install
cd vcpkg vcpkg install libssh
~$ 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
git clone https://github.com/KangLin/RabbitRemoteControl.git
cd RabbitRemoteControl mkdir build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD%/install -DBUILD_FREERDP=ON [可选依赖库] -DCMAKE_TOOLCHAIN_FILE=[vcpkg 安装目录]/scripts/buildsystems/vcpkg.cmake -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON cmake --build . --config Release --target ; 打包 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 ;打包
注意: 如果插件没有加载。则可能是插件的依赖库没有安装到系统。你可以把依赖库复制插件的目录中。