作者:康林(kl222@126.com)
ubuntu
serialportassistant_0.5.26_amd64.deb
sudo apt install ./serialportassistant_0.5.26_amd64.deb
# 如果你是老的 Linux 发行系统。你需要用下列命令替换:
# sudo dpkg -i serialportassistant_0.5.26_amd64.deb
# sudo apt-get install -f # Install dependencies
Windows
SerialPortAssistant_v0.5.26_win64_msvc2019_64_qt6.6.3_Setup.exe
Andoird
如果你用得满意,可以对本人进行捐赠
RabbitCommon: https://github.com/KangLin/RabbitCommon
RabbitCommon 下载到与本项目同级目录中。如果不在同级目录,则需要指定环境变量: RabbitCommon_DIR
git clone https://github.com/KangLin/RabbitCommon.git
下载源码
git clone https://github.com/KangLin/SerialPortAssistant.git
下载 RabbitCommon
git clone https://github.com/KangLin/RabbitCommon.git
RabbitCommon_DIR
指定其位置。在同一目录中下载源码与依赖
git clone https://github.com/KangLin/RabbitCommon.git
git clone https://github.com/KangLin/SerialPortAssistant.git
在项目根目录下建立 build 目录
cd SerialPortAssistant
mkdir build
cd build
# cmake 配置
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`pwd`/install [-DRabbitCommon_DIR=...]
# 编译
cmake --build . --config Release --target install
cd install # 程序安装在 install/bin 目录下
此脚本是 linux 下生成 deb 包的。使用前,请确保安装了下面程序
sudo apt-get install debhelper fakeroot build-essential cmake
用系统自带的 QT
qt6
sudo apt-get install \
qt6-tools-dev qt6-tools-dev-tools qt6-base-dev qt6-base-dev-tools \
qt6-l10n-tools qt6-translations-l10n qt6-scxml-dev \
qt6-webengine-dev qt6-webengine-dev-tools libqt6serialport6-dev
详见: ubuntu.yml
qt5
sudo apt-get install qttools5-dev qttools5-dev-tools \
qtbase5-dev qtbase5-dev-tools qttranslations5-l10n \
libqt5scxml5-dev libqt5svg5-dev libqt5serialport5-dev \
qtwebengine5-dev qtwebengine5-dev-tools qtwebengine5-private-dev