博客
关于我
Qt Debug版本改Release
阅读量:234 次
发布时间:2019-03-01

本文共 444 字,大约阅读时间需要 1 分钟。

从 Debug 版本切换到 Release 版本,是优化项目构建过程中的关键步骤。以下是实现这一转换的具体方法:

  • 界面修改

    在工程设置界面中,找到 "Build Step" 部分,点击右键进入编辑模式。在 "qmake build configuration" 中,选择 "Release" 模式作为构建目标。

  • Shell 修改

    在执行 qmake 时,添加参数 "−CONFIG+=Release"。这一步骤确保构建工具以 Release 模式进行配置。

  • 工具链修改

    为了确保构建输出符合 Release 版本的要求,可以使用特定的工具链进行编译。例如,如果已有 Debug 版本名为 test 的应用程序,可以使用 "arm-linux-gnueabihf-strip" 命令来处理 test,移除所有调试信息,从而与 Release 版本一致。

  • 通过以上方法,可以有效地将 Debug 版本的调试信息隐藏起来,同时生成更小的 Release 版本文件。这种方式在交付产品时尤为实用。

    转载地址:http://lwrt.baihongyu.com/

    你可能感兴趣的文章
    Orcale表被锁
    查看>>
    org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned
    查看>>
    org.apache.poi.hssf.util.Region
    查看>>
    org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
    查看>>
    org.hibernate.HibernateException: Unable to get the default Bean Validation factory
    查看>>
    org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
    查看>>
    org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
    查看>>
    org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
    查看>>
    org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded
    查看>>
    org.tinygroup.serviceprocessor-服务处理器
    查看>>
    org/eclipse/jetty/server/Connector : Unsupported major.minor version 52.0
    查看>>
    org/hibernate/validator/internal/engine
    查看>>
    SQL-36 创建一个actor_name表,将actor表中的所有first_name以及last_name导入改表。
    查看>>
    ORM sqlachemy学习
    查看>>
    Ormlite数据库
    查看>>
    orm总结
    查看>>
    os.path.join、dirname、splitext、split、makedirs、getcwd、listdir、sep等的用法
    查看>>
    os.system 在 Python 中不起作用
    查看>>
    OSCACHE介绍
    查看>>
    SQL--合计函数(Aggregate functions):avg,count,first,last,max,min,sum
    查看>>