0 新手入门
zhuzichu edited this page 2023-05-06 09:46:25 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1.如何运行example

1.用QtCreator的小伙伴

  1. 在QtCreator首页点击打开项目选择CMakeList.txt 1682562555852

  2. 打开成功后按Ctrl+R就开始编译项目

  3. 等编译运行,最后效果预览 image

2.用Clion的小伙伴

  1. 在Clion首页点击Open选择CMakeList.txt image

  2. 添加编译工具记得设置环境变量将D:\Qt\6.4.3\msvc2019_64\bin添加到PathRelease和Debug都要设置 image

  3. 等待加载如下图先切换到fluetuiplguin然后点击Edit Configurations image image

4.选择可执行文件example并且添加将D:\Qt\6.4.3\msvc2019_64\bin添加到Path image

5.设置完毕后点击运行 image

6.最后效果预览 image

3.用Cmake命令编译

mkdir build
cd build
cmake -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DCMAKE_PREFIX_PATH=D:\a\FluentUI\Qt\6.4.3\msvc2019_64 -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_BUILD_TYPE=Release -GNinja ..
cmake --build . --target all --config Release --parallel