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