如何在Windows上用MinGW-W64编译NAppGUI?求可行方案
使用MinGW-W64编译NAppGUI的问题求助
背景
- 已完成NAppGUI源码下载,官方仅提供CMake+Visual Studio的编译教程,无MinGW相关说明
- 不熟悉CMake,尝试用cmake-gui生成MinGW Makefile时出现错误
错误排查过程
第一个错误
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
- 解决:将MinGW-w64路径添加到%path%环境变量后,该错误消失
第二个错误
CMake Error at ...../nappgui_src-main/prj/CMakeCompilers.txt:109 (message): Unknown compiler
- 原因:确认项目目前无官方MinGW支持,无法通过CMake实现MinGW编译
求助
若有成功使用MinGW编译NAppGUI的用户,恳请分享可行的替代方案
内容的提问来源于stack exchange,提问作者VGH
相关产品推荐
相关产品推荐

