查看完整版本: [-- QBS 构件Qt For Android 项目 --]

QTCN开发网 -> Qt移动平台开发 -> QBS 构件Qt For Android 项目 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

robinsonsir 2018-10-14 12:44

QBS 构件Qt For Android 项目

各位童鞋,有没有人用Qt 最新的构建工具QBS 去构建Qt For Android 的项目?
我用了一下遇到问题,运行的时候报错:

  1. Cannot find the android build step.
    Error while building/deploying project Test3 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.0 for Android armv7))
    When executing step "Deploy to Android device"

不知道是否Qt For Android 项目在qbs项目文件需要特殊的配置,qbs构建编译桌面程序是ok的。


toby520 2018-10-15 09:42
去看看 Qt自带的qbs的帮助文档
下面是注意的地方:
For example, to build applications for Android devices, you would need to set up a profile for the Android toolchain and select it when you build the application. If you name the profile Android, you would then enter the following command:

  qbs build profile:Android

robinsonsir 2018-10-15 20:58
toby520:
去看看 Qt自带的qbs的帮助文档
下面是注意的地方:
For example, to build applications for Android devices, you would need to set up a profile for the Android toolchain and select it when you build the application. If you name the profile Android, you would then enter the following command:
  qbs build profile:Android


恩,我也看到了这里。现在QtCreator 应该有自动创建了Anroid profile

[attachment=19585]


[attachment=19588]


  1. C:\Qt\Qt5.11.0\Tools\QtCreator\bin\qbs.exe build -d D:\MyWork\QtProject\QtForAndroid\build-Test1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_0_for_Android_armv7-Release -f D:\MyWork\QtProject\QtForAndroid\Test1\Test1.qbs --settings-dir C:\Users\Administrator\AppData\Roaming\QtProject\qtcreator --jobs 8 config:qtc_Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_0_for_Android_armv7_Release qbs.defaultBuildVariant:release profile:qtc_Android__99694de3





robinsonsir 2018-10-18 10:11
还是前面的报错问题,不知道有没有解决办法?


查看完整版本: [-- QBS 构件Qt For Android 项目 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled