• 3001阅读
  • 3回复

[提问]QBS 构件Qt For Android 项目 [复制链接]

上一主题 下一主题
离线robinsonsir
 

只看楼主 倒序阅读 楼主  发表于: 2018-10-14
各位童鞋,有没有人用Qt 最新的构建工具QBS 去构建Qt For Android 的项目?
我用了一下遇到问题,运行的时候报错:

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

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

离线toby520

只看该作者 1楼 发表于: 2018-10-15
去看看 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
QtQML多多指教开发社区 http://qtclub.heilqt.com
将QtCoding进行到底
关注移动互联网,关注金融
开发跨平台客户端,服务于金融行业
专业定制界面
群号:312125701   373955953(qml控件定做)
离线robinsonsir

只看该作者 2楼 发表于: 2018-10-15
回 toby520 的帖子
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







  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

只看该作者 3楼 发表于: 2018-10-18
还是前面的报错问题,不知道有没有解决办法?
快速回复
限100 字节
 
上一个 下一个