如何使用QT 5.2去除释放输出调试模式下在Android [英] How to remove the debug mode in release output on android with QT 5.2
问题描述
我在寻找如何生产与QT Android的文件没有主动调试模式下,我用QT 5.2的Android。
输出文件名为QtApp-debug.apk。
我不设置项目或删除在释放模式调试模式。
任何想法?
谢谢。
[回应]解决依存关系QtApp ...
[依赖性]库的依赖关系:
[依赖性]没有图书馆
[依赖性]
[依赖性] ------------------
[回应] ----------
[回应]与调试生成库...
[subant]无子建,反覆
-DO调试:
[的zipalign]运行压缩对准最后的apk ...
[回应]调试套餐: E:\\Projects\\qtprojects\\build-CalcNd-Android_pour_armeabi_v7a_GCC_4_8_Qt_5_2_1-Release\\android-build\\bin\\QtApp-debug.apk
在Qt Creator的去项目并选择运行选项。
展开部署配置部分,并单击Create在登录Package部分创建密钥库。
打开符号包复选框,并一定要选择证书别名。
建立你的包,它应该有-release.apk后缀。
注:该标志包复选框为OFF每次打开Qt Creator的时间。所以,一定要进去再勾选签署,当你重新打开或-debug.apk将神秘返回包!
I'm looking for how to produce a file for android with qt without active debug mode, I used qt 5.2 for android. The output file is named QtApp-debug.apk. I do not set the project or to remove the debug mode in release mode. any idea? Thank. extract from the output of compilation:
[echo] Resolving Dependencies for QtApp...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: E:\Projects\qtprojects\build-CalcNd-Android_pour_armeabi_v7a_GCC_4_8_Qt_5_2_1-Release\android-build\bin\QtApp-debug.apk
In Qt Creator go to Projects and select the Run option.
Expand the Deploy Configurations section and click Create in the Sign Package section to create a Keystore.
Turn on the "Sign package" checkbox and be sure to select the Certificate alias.
Build your package and it should have the -release.apk suffix.
NOTE: The sign package checkbox is OFF every time you open Qt Creator. So, be sure to go in and re-check the box to sign the package when you re-open or the -debug.apk will mysteriously return!
这篇关于如何使用QT 5.2去除释放输出调试模式下在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!