From 695f96399119254cc56a3605eea1db07bdec5d1e Mon Sep 17 00:00:00 2001 From: Self Not Found Date: Fri, 3 Nov 2023 23:32:55 +0800 Subject: [PATCH] More general build steps for Linux Tested on Ubuntu 18.04.6 and 23.10.1 --- README.md | 10 ++++++---- doc/README/README_zh_CN.md | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6648f11..e46fe4a 100644 --- a/README.md +++ b/README.md @@ -53,21 +53,23 @@ You can also download them in SourceForge [![Download Proxmark3GUI](https://a.fsdn.com/con/app/sf-download-button)](https://sourceforge.net/projects/proxmark3gui/files/latest/download) ## Build on Linux -``` +```bash cd ~ +# sudo add-apt-repository universe sudo apt-get update -sudo apt-get install git build-essential -sudo apt-get install qt5-default libqt5serialport5-dev +# sudo apt-get install git build-essential +sudo apt-get install qtbase5-dev qt5-qmake libqt5serialport5-dev git clone https://github.com/wh201906/Proxmark3GUI.git --depth=1 cd Proxmark3GUI mkdir build && cd build +export QT_SELECT=qt5 qmake ../src make -j4 && make clean ./Proxmark3GUI ``` ## Build on macOS -``` +```zsh cd ~ brew update brew install qt@5 diff --git a/doc/README/README_zh_CN.md b/doc/README/README_zh_CN.md index b7dd03d..2146151 100644 --- a/doc/README/README_zh_CN.md +++ b/doc/README/README_zh_CN.md @@ -53,21 +53,23 @@ SourceForge平台上也可下载 [![Download Proxmark3GUI](https://a.fsdn.com/con/app/sf-download-button)](https://sourceforge.net/projects/proxmark3gui/files/latest/download) ## 在Linux系统下编译 -``` +```bash cd ~ +# sudo add-apt-repository universe sudo apt-get update -sudo apt-get install git build-essential -sudo apt-get install qt5-default libqt5serialport5-dev +# sudo apt-get install git build-essential +sudo apt-get install qtbase5-dev qt5-qmake libqt5serialport5-dev git clone https://github.com/wh201906/Proxmark3GUI.git --depth=1 cd Proxmark3GUI mkdir build && cd build +export QT_SELECT=qt5 qmake ../src make -j4 && make clean ./Proxmark3GUI ``` ## 在macOS系统下编译 -``` +```zsh cd ~ brew update brew install qt@5