参考window下如何搭建基于MinGw的wxWidgets开发环境中的“软件包安装”章节,在本地搭建好开发环境。
这里我们还添加了了一个系统环境变量:WXWIN=D:\wxWidgets_3.1.5

源代码下载

我们只需要从wxwidgets源码中克隆”samples/“和”build/msw”两个文件夹下的文件即可,具体操作如下:

sparsecheckout.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# !/usr/bin/bash

# 引入配置文件
# source config.sh

# 配置远程仓库地址
remote_repository='https://github.com/wxWidgets/wxWidgets.git'
# 配置需要检出的目录或文件,用空格分隔。注:“=”两边不能有空格
sparse_checkout_directory='samples build/msw'
# 配置检出到本地的目录
local_root='wxWidgets_samples'
# 初始化本地仓库目录
git init --initial-branch=main ${local_root}
# 切换到刚刚初始化的目录
cd ${local_root}
# 设置仓库为松散检出模式与`git config core.sparseCheckout true`同效
git sparse-checkout init
# 先设置不检出任何文件
git sparse-checkout set ""
# 设置要检出的目录和文件与`echo samples >> .git/info/sparse-checkout`同效
for item in ${sparse_checkout_directory}; do
git sparse-checkout add ${item}
done
# 检查散检出设置
git sparse-checkout list
# 添加远程仓库地址
git remote add origin ${remote_repository}
# 检查远程仓库地址
git remote get-url --all origin
# 从远程仓库拉取我们需要的文件和目录
git pull --depth=1 origin master:main

如何编译需要的sample

https://wilenwu.github.io/

!!! error Hexo-admonition 插件使用示例
这是基于 hexo-admonition 插件渲染的一条提示信息。类型为 note,并设置了自定义标题。

提示内容开头留 4 个空格,可以有多行,最后用空行结束此标记。

This is Tab 1.

This is Tab 2.

This is Tab 3.