首页 > 其他分享 >2024年4月22日最新版用13.2.0版的mingw64编译3.2.4版的wxwidgets

2024年4月22日最新版用13.2.0版的mingw64编译3.2.4版的wxwidgets

时间:2024-04-22 21:12:15浏览次数:18  
标签:gcc enable wxwidgets 22 -- mingw32 BUILD UNICODE 最新版

相关文件下载链接:

13.2.0版的MinGW64
3.2.4版的wxwidgets

相关环境变量设置:右键单击“我的电脑”->属性->高级系统设置->环境变量->系统变量->Path->编辑->新建,输入解压后的mingw64中的bin路径。例如:

D:\devolopment\mingw64\bin\

测试成功安装与否,在上述环境变更设置好后,重新进入终端中,执行GCC命令:

gcc -v
Using built-in specs.
COLLECT_GCC=D:\devolopment\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=D:/devolopment/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
OFFLOAD_TARGET_NAMES=nvptx-none
Target: x86_64-w64-mingw32
Configured with: ../configure --prefix=/R/winlibs64ucrt_stage/inst_gcc-13.2.0/share/gcc --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-offload-targets=nvptx-none --with-pkgversion='MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r7' --with-tune=generic --enable-checking=release --enable-threads=posix --disable-sjlj-exceptions --disable-libunwind-exceptions --disable-serial-configure --disable-bootstrap --enable-host-shared --enable-plugin --disable-default-ssp --disable-rpath --disable-libstdcxx-debug --disable-version-specific-runtime-libs --with-stabs --disable-symvers --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-gold --disable-nls --disable-stage1-checking --disable-win32-registry --disable-multilib --enable-ld --enable-libquadmath --enable-libada --enable-libssp --enable-libstdcxx --enable-lto --enable-fully-dynamic-string --enable-libgomp --enable-graphite --enable-mingw-wildcard --enable-libstdcxx-time --enable-libstdcxx-pch --with-mpc=/d/Prog/winlibs64ucrt_stage/custombuilt --with-mpfr=/d/Prog/winlibs64ucrt_stage/custombuilt --with-gmp=/d/Prog/winlibs64ucrt_stage/custombuilt --with-isl=/d/Prog/winlibs64ucrt_stage/custombuilt --disable-libstdcxx-backtrace --enable-install-libiberty --enable-__cxa_atexit --without-included-gettext --with-diagnostics-color=auto --enable-clocale=generic --with-libiconv --with-system-zlib --with-build-sysroot=/R/winlibs64ucrt_stage/gcc-13.2.0/build_mingw/mingw-w64 CFLAGS='-I/d/Prog/winlibs64ucrt_stage/custombuilt/include/libdl-win32   -march=nocona -msahf -mtune=generic -O2' CXXFLAGS='-Wno-int-conversion  -march=nocona -msahf -mtune=generic -O2' LDFLAGS='-pthread -Wl,--no-insert-timestamp -Wl,--dynamicbase -Wl,--high-entropy-va -Wl,--nxcompat -Wl,--tsaware' LD=/d/Prog/winlibs64ucrt_stage/custombuilt/share/binutils/bin/ld.exe
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r7)

1.主要编译参数如下表:

变量   含义   值   含义
BUILD 控制编译wxWidgets是debug版本或release版本,debug版本时,库名带后缀d. debug  生成debug库,后缀有d
release  生成release库
SHARED 控制编译wxWidgets成DLL或是static, DLL时,多个wxWidgets工程可共用相同的DLL,工程发布时,必须包含该DLL文件 0 生成static静态链接库文件
1 生成dll链接文件
MONOLITHIC 控制编译成1个独立的DLL库,还是多个DLL库 0 生成分离的多文件库
1 将所有库编译成一个单独库文件
UNICODE 控制编译出的wxWidgets是否支持unicode,若使用汉字,必须支持unicode 0 不支持uncode编码
1 支持uncode编码

2.编制编译批处理文件

mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release 
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release 
mingw32-make -f makefile.gcc SHARED=0 UNICODE=0 BUILD=release 
mingw32-make -f makefile.gcc SHARED=1 UNICODE=0 BUILD=release 
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=debug 
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=debug 
mingw32-make -f makefile.gcc SHARED=0 UNICODE=0 BUILD=debug 
mingw32-make -f makefile.gcc SHARED=1 UNICODE=0 BUILD=debug 

3.清理编译的垃圾文件

mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release clean
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release clean
mingw32-make -f makefile.gcc SHARED=0 UNICODE=0 BUILD=release clean
mingw32-make -f makefile.gcc SHARED=1 UNICODE=0 BUILD=release clean
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=debug clean
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=debug clean
mingw32-make -f makefile.gcc SHARED=0 UNICODE=0 BUILD=debug clean
mingw32-make -f makefile.gcc SHARED=1 UNICODE=0 BUILD=debug clean

 

标签:gcc,enable,wxwidgets,22,--,mingw32,BUILD,UNICODE,最新版
From: https://www.cnblogs.com/merrynuts/p/18151550

相关文章

  • 20240422打卡
    第九周第一天第二天第三天第四天第五天第六天第七天所花时间9h代码量(行)727博客量(篇)1知识点了解完成了地铁查询系统的App......
  • 22.Postgresql的checkpoint功能
    PostgreSQL中的checkpoint是数据库管理系统(DBMS)中的一项重要机制,用于确保数据的一致性、可恢复性和性能管理。以下是关于PostgreSQLcheckpoint的详细解释:checkpoint的定义与作用定义:Checkpoint是一个在WAL(Write-AheadLog)序列中的点,此时所有数据文件已更新,反映了到该点为止......
  • 2024激活Typora,最新版本的1.8.10.0可用
     原文https://blog.csdn.net/m0_58416529/article/details/136098186目前最新版本1.8.10.0也是可以实现激活的注:免修改注册表、不用修改时间,更不需要破解补丁01、下载&安装Typora从官网下载最新版本的Typora,并安装02、激活Typora找到Typora安装目录,依次找到这个文件r......
  • 云原生周刊:Kubernetes v1.30 发布 | 2024.4.22
    开源项目推荐pv-migratepv-migrate是一个CLI工具/kubectl插件,可轻松将一个Kubernetes的内容迁移PersistentVolumeClaim到另一个Kubernetes。ClaudieClaudie是一个云原生的Kubernetes管理平台,具备跨多个云提供商和本地数据中心的多云和混合云集群管理能力。它通过......
  • 2024-04-22 微信小程序开发之ios输入框光标指向不正确
    业务场景:微信小程序开发中,页面有一个固定在底部(实测只要是设置了固定的输入框都会这样,如果可以改变布局,不固定定位则可避免此问题)的输入框,点击输入框输入文字,操作流程完成。但是!在神奇的ios系统中却不行,就是点击输入框,你是无法触发到输入框的,说白了点不到,安卓就没有这毛病。原......
  • OpenEuler22.03 SP3离线安装Docker
    下载Docker离线安装包下载地址:https://download.docker.com/linux/static/stable/下面以安装docker-23.0.5.tgz为例。安装Docker解压docker-23.0.5.tgz[root@mccp~]#tar-zxvfdocker-23.0.5.tgzdocker/docker/docker-proxydocker/containerd-shim-runc-v2docker/ctrdocker......
  • 4 22微信小程序商品浏览
     需要四个接口:     ......
  • 软工计算一 20240422
    1.python中的iter()函数迭代子Python中的iter()函数是内置函数,它负责创建一个迭代器。这个函数接受两个参数:第一个参数是准备转换为迭代器的对象。第二个参数是一个可选的sentinel对象,它用于迭代器中的next()方法,当迭代器到达sentinel值时会停止迭代。基本用法......
  • Windows Server 2022 OVF, updated Apr 2024 (sysin) - VMware 虚拟机模板
    WindowsServer2022OVF,updatedApr2024(sysin)-VMware虚拟机模板2024年4月版本更新,现在自动运行sysprep,支持ESXiHostClient部署请访问原文链接:WindowsServer2022OVF,updatedApr2024(sysin)-VMware虚拟机模板,查看最新版。原创作品,转载请保留出处。作......
  • Windows Server 2022 中文版、英文版下载 (updated Apr 2024)
    WindowsServer2022中文版、英文版下载(updatedApr2024)WindowsServer2022正式版,x64请访问原文链接:WindowsServer2022中文版、英文版下载(updatedApr2024),查看最新版。原创作品,转载请保留出处。作者主页:sysin.org此次发布更新了什么?答:版本号,当然还有…2021.09......