• qt打包发布


    需要用到qt自带工具windeployqt.exe

    安装
    以qt 5.8.0为例
    安装qt-opensource-windows-x86-mingw530-5.8.0.exe即可

    构建Release版本
    Release

    使用qt提供的dos窗口
    dos

    或者:添加环境变量 C:QtQt5.8.05.8mingw53_32in

    找到.exe
    将hello.exe放在一个单独的文件夹下

    > cd F:QTworkuild-hello-Desktop_Qt_5_8_0_MinGW_32bit-Releasepack
    > windeployqt hello.exe
    F:QTworkuild-hello-Desktop_Qt_5_8_0_MinGW_32bit-Releasepackhello.exe 32 bit, release executable
    Adding Qt5Svg for qsvgicon.dll
    Skipping plugin qtvirtualkeyboardplugin.dll due to disabled dependencies.
    Direct dependencies: Qt5Core Qt5Widgets
    All dependencies   : Qt5Core Qt5Gui Qt5Widgets
    To be deployed     : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
    Warning: Cannot find GCC installation directory. g++.exe must be in the path.
    Updating Qt5Core.dll.
    Updating Qt5Gui.dll.
    Updating Qt5Svg.dll.
    Updating Qt5Widgets.dll.
    Updating libGLESV2.dll.
    Updating libEGL.dll.
    Updating D3Dcompiler_43.dll.
    Updating opengl32sw.dll.
    Patching Qt5Core.dll...
    Creating directory F:/QT/work/build-hello-Desktop_Qt_5_8_0_MinGW_32bit-Release/pack/iconengines.
    Updating qsvgicon.dll.
    Creating directory F:/QT/work/build-hello-Desktop_Qt_5_8_0_MinGW_32bit-Release/pack/imageformats.
    Updating qgif.dll.
    Updating qicns.dll.
    Updating qico.dll.
    Updating qjpeg.dll.
    Updating qsvg.dll.
    Updating qtga.dll.
    Updating qtiff.dll.
    Updating qwbmp.dll.

    依赖关系自动解决

  • 相关阅读:
    nyoj58 最少步数
    oj2787 算24
    一位ACMer过来人的心得
    hdu递推公式水题
    nyoj20 吝啬的国度
    hdu1421 搬寝室
    全排列生成算法:next_permutation
    hdu2544 最短路
    poj1691 Painting A Board
    hdu1274 展开字符串
  • 原文地址:https://www.cnblogs.com/zhangxuechao/p/11709645.html
Copyright © 2020-2023  润新知