|
玉兔远程控制 0.1.0-bate11
|
Author: Eduardo Mozart de Oliveira eduar.nosp@m.domo.nosp@m.zart1.nosp@m.82@g.nosp@m.mail..nosp@m.com
Version: v19.0.0 (ARM64) It is recommended to use version v5.0.2 or later.
Prior versions don't have CMake support.
~$ xcode-select --install
# Install Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
On macOS, the default getopt is the BSD version and does not support long options. GNU getopt needs to be installed.
# Install GNU getopt brew install gnu-getopt # Use GNU getopt (current session) temporarily export PATH="/usr/local/opt/gnu-getopt/bin:$PATH" # Permanent use (add to shell configuration) echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.zshrc echo 'alias getopt="/usr/local/opt/gnu-getopt/bin/getopt"' >> ~/.zshrc source ~/.zshrc # Verify installation getopt --version
~$ brew install automake fakeroot libtool pkg-config
~$ brew install ninja
~$ brew install git
Version: Greater than 3.31.5
~$ brew install cmake
~$ git clone https://github.com/microsoft/vcpkg.git ~$ cd vcpkg ~/vcpkg$ ./bootstrap-vcpkg.sh ~/vcpkg$ ./vcpkg integrate install
Qt (official release) Current version: Qt 6.10.3
~$ brew install qt
Set environment variable or cmake parameters:
eval "$(/opt/homebrew/bin/brew shellenv)" export QT_ROOT=$HOMEBREW_PREFIX/Cellar/qt/6.9.2 # When Qt6 export Qt6_ROOT=$QT_ROOT # When Qt5 export Qt5_ROOT=$QT_ROOT # Or # When Qt6 export Qt6_DIR=$QT_ROOT/lib/cmake/Qt6 # When Qt5 export Qt5_DIR=$QT_ROOT/lib/cmake/Qt5
# Qt6 cmake -DQT_ROOT=/opt/homebrew/Cellar/qt/6.9.2 -DQt6_DIR=/opt/homebrew/Cellar/qt/6.9.2/lib/cmake/Qt6 ...... # Qt5 cmake -DQT_ROOT=/opt/homebrew/Cellar/qt/6.9.2 -DQt5_DIR=/opt/homebrew/Cellar/qt/6.9.2/lib/cmake/Qt5 ......
# Set the Qt version of your current environment export QT_SELECT="qt6" export QTTOOLDIR="$QT_ROOT/bin" export QTLIBDIR="$HOMEBREW_PREFIX/lib"
Prior versions don't have CMake support.
~$ brew install –cask qt-creator
~$ brew install doxygen
~$ git clone https://github.com/KangLin/RabbitRemoteControl.git ~$ git clone https://github.com/KangLin/RabbitCommon.git
~$ git clone https://github.com/KangLin/RabbitRemoteControl.git # Set environment variable ~$ export RabbitCommon_ROOT=[RabbitCommon install root] ~$ cd RabbitRemoteControl # Or set CMake parameters ~/RabbitRemoteControl$ cmake -DRabbitCommon_ROOT=[RabbitCommon installation path] ......
~$ brew install freerdp
Use vcpkg
~$ git clone https://github.com/microsoft/vcpkg.git ~$ cd vcpkg ~/vcpkg$ ./vcpkg install freerdp
~$ git clone https://github.com/FreeRDP/FreeRDP.git
~$ cd FreeRDP
~/FreeRDP$ mkdir build
~/FreeRDP/build$ cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=`pwd`/install -DWITH_SERVER=ON
~/FreeRDP/build$ cmake --build . --config Release --target install
~$ brew install libvncserver
-DLibVNCServer_DIR=[LibVNCServer installation path]/lib/cmake/LibVNCServer
~$ brew install pixman ~$ git clone https://github.com/KangLin/RabbitVNC.git ~$ cd RabbitVNC ~/RabbitVNC$ mkdir build ~/RabbitVNC$ cd build ~/RabbitVNC$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ~/RabbitVNC$ cmake --build . --config Release --target install
-DRabbitVNC_DIR=[RabbitVNC installation path]/lib/cmake/RabbitVNC
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
~$ brew install pixman ~$ git clone https://github.com/KangLin/tigervnc.git ~$ cd tigervnc ~/tigervnc$ mkdir build ~/tigervnc$ cd build ~/tigervnc/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/install ~/tigervnc/build$ cmake --build .. --config Release --target install
-Dtigervnc_DIR=[TigerVNC installation path]/lib/cmake/tigervnc
Use vcpkg
~$ git clone https://github.com/microsoft/vcpkg.git ~$ cd vcpkg ~/vcpkg$ ./vcpkg install libdatachannel
~$ git clone https://github.com/paullouisageneau/libdatachannel.git ~$ cd libdatachannel ~/libdatachannel$ git submodule update --init --recursive ~/libdatachannel$ mkdir build ~/libdatachannel$ cd build ~/libdatachannel/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/install ~/libdatachannel/build$ cmake --build . --config Release --target install
-DLibDataChannel_DIR=[libdatachannel installation path]/lib/cmake/LibDataChannel
~$ brew install qxmpp
~$ git clone https://github.com/qxmpp-project/qxmpp.git ~$ cd qxmpp ~/qxmpp$ mkdir build ~/qxmpp$ cd build ~/qxmpp/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/install -DQt5_DIR=[Qt install path]/lib/cmake/Qt5 ~/qxmpp/build$ cmake --build . --config Release --target install
-DQXmpp_DIR=[libdatachannel installation path]/lib/cmake/qxmpp
~$ git clone https://github.com/lxqt/lxqt-build-tools.git ~$ cd lxqt-build-tools ~/lxqt-build-tools$ mkdir build ~/lxqt-build-tools$ cd build ~/lxqt-build-tools/build$ cmake .. ~/lxqt-build-tools/build$ make ~/lxqt-build-tools/build$ make install ~$ brew install vulkan-headers ~$ git clone https://github.com/lxqt/qtermwidget.git ~$ cd qtermwidget ~/qtermwidget$ mkdir build ~/qtermwidget$ cd build ~/qtermwidget/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/install ~/qtermwidget/build$ cmake --build . --config Release --target install
-Dqtermwidget6_DIR=[qtermwidget installation path]/lib/cmake/qtermwidget5
~$ brew install libssh
Use vcpkg
~$ git clone https://github.com/microsoft/vcpkg.git ~$ cd vcpkg ~/vcpkg$ ./vcpkg install libssh
-Dlibssh_DIR=[libssh installation path]/lib/cmake/libssh
~$ git clone https://github.com/KangLin/qt-solutions.git ~$ cd qt-solutions/qtservice ~/qt-solutions/qtservice$ mkdir build ~/qt-solutions/qtservice$ cd build ~/qt-solutions/qtservice/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/install ~/qt-solutions/qtservice/build$ cmake --build . --config Release --target install
-DQtService_DIR=[QtService installation path]/lib/cmake/QtService
~$ git clone https://github.com/seladb/PcapPlusPlus.git
Use vcpkg
~$ git clone https://github.com/microsoft/vcpkg.git ~$ cd vcpkg ~/vcpkg$ ./vcpkg install pcapplusplus
-DPcapPlusPlus_DIR=[PcapPlusPlus install path]/lib/cmake/pcapplusplus
It is dependent on PcapPlusPlus
~$ brew install libpcap
~$ brew install cmark
-Dcmark_DIR=[PcapPlusPlus install path]/lib/cmake/cmark
~$ git clone https://github.com/KangLin/RabbitRemoteControl.git
Compile from the command line
~$ cd RabbitRemoteControl
~/RabbitRemoteControl$ mkdir build
~/RabbitRemoteControl/build$ cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=`pwd`/install [...]
~/RabbitRemoteControl/build$ cmake --build . \
--config Release --target install
~$ cd RabbitRemoteControl
~/RabbitRemoteControl$ mkdir build
~/RabbitRemoteControl/build$ cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=`pwd`/install \
-DCMAKE_TOOLCHAIN_FILE=[vcpkg installation path]/scripts/buildsystems/vcpkg.cmake \
[options libraries]
~/RabbitRemoteControl/build$ cmake --build . \
--config Release --target install
~$ cd RabbitRemoteControl ~/RabbitRemoteControl$ cd build/install/bin ~/RabbitRemoteControl$ ./RabbitRemoteControl.sh # Or ~/RabbitRemoteControl$ ./RabbitRemoteControlApp
Note: If the plugin does not load. The plugin's dependencies may not be installed on the system. You can add the path of the dependency libraries to the environment variable LD_LIBRARY_PATH and/or DYLD_FRAMEWORK_PATH. You can also add the path of the dependency libraries to the /etc/ld.so.conf file, and then run ldconfig to add the dependency libraries to the system.
CMake uses the parameter -DENABLE_UPDATE_TRANSLATIONS=ON to automatically generate resource files and update the resource files. After updating, you can directly modify the .ts files.