标题:QBS 构件Qt For Android 项目
作者:robinsonsir
日期:2018-10-14 12:44
内容:
各位童鞋,有没有人用Qt 最新的构建工具QBS 去构建Qt For Android 的项目?
我用了一下遇到问题,运行的时候报错:
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的。
#1 [toby520 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
#2 回 toby520 的帖子 [robinsonsir 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
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
#3 [robinsonsir 10-18 10:11]
还是前面的报错问题,不知道有没有解决办法?