当前位置: 首页 > article >正文

Qt5.15.2 Webassembly源码裁剪编译

第一步: 
    .\configure -debug-and-release -opensource -prefix "D:\qt-everywhere-src\compFile" -platform win32-g++ -nomake examples
第二步:
    mingw32-make -j4
第三步:
    mingw32-make install
 

编译core与gui模块:
    C:\Qt\5.15.2\yuanma\qt-everywhere-src-5.15.2\qtbase\src\gui
    C:\Qt\5.15.2\yuanma\qt-everywhere-src-5.15.2\qtbase\src\corelib

裁剪Qt源码库
    1. 源码库下.gitmodules文件定义了Qt所包含的子模块;
        qt.pro遍历该文件获取要编译的模块;
        再根据依赖排序sort_depends,将需要编译的库,按顺序放入SUBDIRS;

    2. 进入到qtbase/src目录下, SUBDIRS定义了包含的模块;删除不需要的模块;
       src.pro 定义了subdirs,此处删除编译不过; TEMPLATE = subdirs

       sync.profile定义 
       qtbase.pro   SUBDIRS += qmake/qmake-aux.pro doc
       makefile 为啥还包含test example 

成功命令:
第一步成功命令:
    54.1M
    .\configure -prefix D:\test\qweq\comp -no-warnings-are-errors -xplatform wasm-emscripten -platform win32-g++  -nomake examples -opensource -confirm-license -no-directfb -no-angle -no-harfbuzz -no-libpng -no-freetype -no-dbus -no-widgets
    mingw32-make -j16
    mingw32-make install
    mingw32-make clean
第二部:尝试删除qttest 关闭network

    .\configure -prefix D:\test\qweq\comp -no-warnings-are-errors -xplatform wasm-emscripten -platform win32-g++ -nomake examples -nomake tests -opensource -confirm-license -no-directfb -no-angle -no-harfbuzz -no-libpng -no-freetype -no-dbus -no-widgets 

    -nomake tests 无效
    testlib ok
    src_openglextensions ok
    angle ok
    zlib ok
    qtConfig(xml): SUBDIRS += src_xml
    network   49.4M


http://www.kler.cn/a/37256.html

相关文章:

  • 分布式应用之zookeeper集群+消息队列Kafka
  • mmc记录
  • 并发和并行的区别
  • NLog写日志到数据库
  • 网络安全面试题
  • 【探索 Kubernetes|作业管理篇 系列 16】离线业务 Job、CronJob
  • 【NLP】BERT和原理揭示
  • 女孩与花田-InsCode Stable Diffusion 美图活动一期
  • 驾驶证——科目一技巧(三)
  • 文心一言 VS 讯飞星火 VS chatgpt (57)-- 算法导论6.4 1题
  • Es直方图聚合--date_histogram
  • 树莓派4B安装系统 + 花生壳 + docker + portainer管理工具
  • 接口测试 [分享] 自动化测试与持续集成方案--Jmeter 测试接口及性能
  • layui选项卡演示
  • 保障AI时代的图像安全:揭示解决虚假图片危机的三种策略
  • 使用腾讯云轻量应用服务器搭建网站教程
  • QGIS将OSM道路数据可视化
  • Antd的Select组件二次封装
  • STM32 10个工程篇:1.IAP远程升级(五)
  • 【计算机网络】第三章 数据链路层(虚拟机与局域网)