windows实现menuconfig可使用PDCureses库做UI

参考:https://piggerzzm.github.io/2019/07/28/PDCurses/

一、环境:

1、codeblocks; -- 为了下面编译用到 mingw32-make

2、pdcureses;   -- git 仓库地址: https://github.com/wmcbrine/PDCurses.git

二、方法:

1、git取出源码后,进wincon目录,执行如下命令进行编译:

mingw32-make -f Makefile WIDE=Y INFOEX=N

如果mingw32-make找不到,先搜下mingw32-make.exe所在的路径,添加到环境变量;

2、编译后在wincon目录下生成pdcurses.a,复制到codeblocks测试工程目录下

3、codeblocks添加.a,添加pdcurses/demos/tui.c tuidemo.c,编译,运行

三、实现menuconfig

1、根据menuconfig实现原理,结合工程实际情况,实现配置。

四、整个工程资源下载地址

https://download.csdn.net/download/hxl5955/13187807

猜你喜欢

转载自blog.csdn.net/hxl5955/article/details/110054210