From 061aaf606721dc1fadbfcf92224c691eabb5a22f Mon Sep 17 00:00:00 2001 From: taotieren Date: Tue, 7 Feb 2023 12:31:51 +0000 Subject: [PATCH] =?UTF-8?q?!33=20=E6=9B=B4=E6=96=B0=20README=20=20?= =?UTF-8?q?=E4=B8=AD=20=20Arch=20Linux=20=E8=AF=B4=E6=98=8E=20*=20update?= =?UTF-8?q?=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++++++++----- README_EN.md | 13 ++++++++----- src/plugin/helloworld/helloworld.pro | 2 +- src/plugin/test/test.pro | 2 +- 4 files changed, 18 insertions(+), 12 deletions(-) mode change 100755 => 100644 README.md diff --git a/README.md b/README.md old mode 100755 new mode 100644 index 47c02e0..8fc4aa3 --- a/README.md +++ b/README.md @@ -41,11 +41,14 @@ NDD已初步推出插件编写功能,希望广大的CPP/QT开发者加入我 - ArchLinux -1. 安装编译环境 `sudo pacman -S gcc cmake make ` -1. 安装qt工具和库 `sudo pacman -S qt5-tools qt5-base qt5-xmlpatterns ` -1. 配置 `cmake -B build -DCMAKE_BUILD_TYPE=Release` -1. 编译 `cd build && make -j` -1. 打包:使用aur +1. 安装编译环境 `sudo pacman -S gcc cmake make ninja` +1. 安装 qt 工具和库 `sudo pacman -S qt5-tools qt5-base qt5-xmlpatterns` +1. 配置 `cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -W no-dev` +1. 编译 `ninja -C build && ninja -C build install` +1. 打包: 使用 [AUR/notepad---git](https://aur.archlinux.org/packages/notepad---git) `yay -S notepad---git` +1. 安装: + - 预编译包添加 [ArchLinuxCN/notepad---git](https://github.com/archlinuxcn/repo) 镜像 `yay -S archlinuxcn/notepad---git` + - 预编译包 [Debuginfod/notepad---git-debug](https://wiki.archlinux.org/title/Debuginfod) 包 `yay -S archlinuxcn/notepad---git-debug` - openSUSE Tumbleweed diff --git a/README_EN.md b/README_EN.md index b9d4b24..537d025 100644 --- a/README_EN.md +++ b/README_EN.md @@ -34,11 +34,14 @@ Creating a free text editor requires support from users like you. If you'd like - ArchLinux -1. Install compilation environment `sudo pacman -S gcc cmake make ` +1. Install compilation environment `sudo pacman -S gcc cmake make ninja` 1. Install qt tools and libraries `sudo pacman -S qt5-tools qt5-base qt5-xmlpatterns ` -1. Configure `cmake -B build -DCMAKE_BUILD_TYPE=Release` -1. Compile `cd build && make -j` -1. Package: use aur +1. Configure `cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -W no-dev` +1. Compile `ninja -C build && ninja -C build install` +1. Package: use [AUR/notepad---git](https://aur.archlinux.org/packages/notepad---git) `yay -S notepad---git` +1. Installation: + - Pre-compiled package add [ArchLinuxCN/notepad---git](https://github.com/archlinuxcn/repo) mirror `yay -S archlinuxcn/notepad---git` + - Pre-compiled package [Debuginfod/notepad---git-debug](https://wiki.archlinux.org/title/Debuginfod) package `yay -S archlinuxcn/notepad---git-debug` **Qt Project Compilation Instructions:** @@ -63,4 +66,4 @@ yay -S notepad---git ![Input description picture](png/3.png) -![Input description picture](png/7.png) \ No newline at end of file +![Input description picture](png/7.png) diff --git a/src/plugin/helloworld/helloworld.pro b/src/plugin/helloworld/helloworld.pro index 0e791d2..ec08b04 100755 --- a/src/plugin/helloworld/helloworld.pro +++ b/src/plugin/helloworld/helloworld.pro @@ -1,7 +1,7 @@ TEMPLATE = lib LANGUAGE = C++ -CONFIG += qt warn_on Debug +CONFIG += qt warn_on QT += core gui widgets HEADERS += *.h diff --git a/src/plugin/test/test.pro b/src/plugin/test/test.pro index 4a8ea94..9a9492b 100755 --- a/src/plugin/test/test.pro +++ b/src/plugin/test/test.pro @@ -1,7 +1,7 @@ TEMPLATE = lib LANGUAGE = C++ -CONFIG += qt warn_on Debug +CONFIG += qt warn_on QT += core gui widgets HEADERS += *.h