网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
02月02日漏签0天
codeblocks吧 关注:18,901贴子:46,638
  • 看贴

  • 图片

  • 吧主推荐

  • 游戏

  • 6回复贴,共1页
<<返回codeblocks吧
>0< 加载中...

Compile wxWidgets in Unicode mode

  • 只看楼主
  • 收藏

  • 回复
  • 石水2
  • 华丽飘过
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
Compile wxWidgets in Unicode mode
After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets:set path=c:\mingw\bin;c:\mingw\mingw32\bin
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else.
You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed.
If you are using a recent version of MinGW you may find that the object files are too large and that the linker runs out of memory. To fix this problem you need to edit config.gcc so that inline functions are not exported, by modifying the CFLAGS and CXXFLAGS lines to: CFLAGS ?= -fno-keep-inline-dllexport
CXXFLAGS ?= -fno-keep-inline-dllexport
remark: If you want to use wxWidgets not only for building Code::Blocks, but also for writing wxWidgets programs, and if you want to use the debugger in those programs, you have to compile a debug build of wxWidgets as well. Use the same commands as for the release build, but replace "release" by "debug".
Optional:
To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.


  • 石水2
  • 华丽飘过
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
注意:
环境变量的设置应为:set path=c:\mingw\bin;c:\mingw\mingw32\bin;%PATH%
相对于原先的多了个“%PATH%”
这是Windows平台编译gcc版本的wxWidgets库的方法
(原文链接百度sb不给贴出来,我就不自找麻烦了)


2026-02-02 12:28:54
广告
不感兴趣
开通SVIP免广告
  • 石水2
  • 华丽飘过
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
makefile.gcc在下面这个目录里
C:\wxWidgets-2.9.5\build\msw


  • 石水2
  • 华丽飘过
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
如果想要编译VC或VS的版本库的话,那就更方便了,在这个目录里有惊喜。


  • leexye
  • 鸭梨山大
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

最近忙于换工作,来的少了


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 6回复贴,共1页
<<返回codeblocks吧
分享到:
©2026 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示