codeblcoks使用wxWidgets出现找不到A matching Debug configuration

##codeblcoks使用wxWidgets出现找不到A matching Debug configuration
codeblocks生成wxWidgets工程过程中出现错误提示:A matching Debug configuration cnnot be found in the wxWidgets directory you specified.
问题根源:mingw32-make编译wxWidgets,和codeblocks所使用的mingw32-make不一致。
错误现象
生成codeblocks生成wxWidgets过程中出现错误提示。
在这里插入图片描述
需要重新编译wxWidget。
wxWidget安装在d:\wxWidgets3.0.04,
codeblock编译器的设置如下图:
在这里插入图片描述
重新编译wxWidget,操作如下图:
在这里插入图片描述
操作命令如下:
step1: cd D:\wxWidgets-3.0.4\build\msw , 进入工作目录;
step2: c:\msys64\mingw64\bin\mingw32-make.exe -f makefile.gcc clean, 清理原来的数据。
step3:c:\msys64\mingw64\bin\mingw32-make.exe -f makefile.gcc MONOLITHIC=0 SHARED=1 UNICODE=1 BUILD=debug , 编译Debug版本(完成大概需要30分钟);
step4:c:\msys64\mingw64\bin\mingw32-make.exe -f makefile.gcc MONOLITHIC=0 SHARED=1 UNICODE=1 BUILD=release, 编译Release版本(完成大概需要30分钟)。

重新编译后,wxWidget默认的工程生成和编译就正常了。最根本的原因是我的PC安装了多个版本GCC编译器,还有VS2015环境。

发布了17 篇原创文章 · 获赞 2 · 访问量 1972

猜你喜欢

转载自blog.csdn.net/qq_23313467/article/details/104074885