vnote/zh_cn/docs/开发者/01 - 开发入门/如何构建VNote_Windows详细版.md
2022-07-03 20:24:54 +08:00

1.9 KiB
Raw Blame History

如何构建VNote_Windows详细版

本文是对 构建VNote 文章中的 Windows 系统中构建 VNote 详细图文描述。

需要安装 3 个工具,Visual Studio 2015或更新版本、GitQt 5.15

安装 Visual Studio

下载 Visual Studio

https://visualstudio.microsoft.com/zh-hans/vs/

安装 Visual Studio Community 2022必选组件为

使用 C++ 的桌面开发 通用 Windows 平台开发

::: alert-danger 切勿修改 Visual Studio 的安装路径,否则影响后面的 Qt Kit配置 :::

安装 Git

下载 Git For Windows

https://git-scm.com/download/win

或者采用 winget 安装

winget install --id Git.Git -e --source winget

安装 Qt

下载在线安装器

# qt-unified-windows-x64-online.exe 中科大镜像
https://mirrors.ustc.edu.cn/qtproject/archive/online_installers/4.4/qt-unified-windows-x64-4.4.1-online.exe

启动安装器

# qt 镜像使用指南: https://mirrors.tuna.tsinghua.edu.cn/help/qt/
.\qt-unified-windows-x64-4.4.1-online.exe --mirror https://mirrors.tuna.tsinghua.edu.cn/qt

尽量选择 5.15 的最高版本, 组件根据个人需求选择

Qt环境检查确保 Qt Kits 配置无误

构建并运行

下载源码

git clone https://github.com/vnotex/vnote.git vnote.git
cd vnote.git
git submodule update --init --recursive

打开项目

打开Qt Creator点击Open Project按钮选择源码根目录下的 vnote.pro文件 选择为项目使用的 Qt Kit 然后就可以开始构建VNote了