Qt现在保持最新的Android NDK版本

Qt is now staying up-to-date with new Android NDK versions

Qt现在保持最新的Android NDK版本

February 20, 2023 by Ville Voutilainen | Comments

2023年2月20日 Ville Voutilainen |评论

This post talks about how we keep up to date with new Android NDK versions and talks a bit about our LLDB support in Qt Creator. For a while now, we have been improving our support for new Android NDK versions, and have also made sure our debugger support in Qt Creator works with recent NDK versions.

这篇文章讲述了我们如何与新的Android NDK版本保持同步,并讲述了我们在Qt Creator中对LLDB的支持。一段时间以来,我们一直在改进对新的Android NDK版本的支持,并确保我们在Qt Creator中的调试器支持与最新的NDK版本兼容。

Staying up to date with NDK versions for Qt (6) builds

更新Qt(6)版本的NDK版本

We have vastly improved our turn-around time for ensuring that recent NDK versions work fine for Qt builds and for builds of Qt applications. This consists of a couple of parts that are nowadays included in our process:

我们已经大大提高了周转时间,以确保最新的NDK版本在Qt构建和Qt应用程序构建中运行良好。这包括目前我们流程中包含的几个部分:

  1. We plan ahead for forthcoming NDK versions and their releases, keeping track of Google's NDK release schedules.

1.我们提前计划即将发布的NDK版本及其发布,跟踪谷歌的NDK发布时间表。

  1. We build-test the beta versions of Android NDKs, and fix compilation bugs early.

2.我们构建测试Android NDK的测试版,并尽早修复编译错误。

  1. Once the build fixes have been done, we roll out new NDK versions into our Continuous Integration system, in order to keep the builds working with the new NDK versions.

3.一旦构建修复完成,我们将新的NDK版本推出到我们的持续集成系统中,以保持构建与新的NDK版本一起工作。

We have been doing this for a while now, and while the process was put in place to be able to track multiple NDK versions per year, Google has now slowed down the NDK release cycle, so that they seem to come out with a new one just once per year. Nevertheless, we execute the tracking process the same way.

我们已经做了一段时间了,虽然这个过程已经到位,可以每年跟踪多个NDK版本,但谷歌现在已经放慢了NDK的发布周期,因此他们似乎每年只发布一次新版本。然而,我们以相同的方式执行跟踪过程。

If Qt 6 or applications for it don't build with a shiny and new NDK, it's a bug, please report it.

如果Qt 6或它的应用程序没有用闪亮的新NDK构建,这是一个bug,请报告它。

We haven't forgotten Qt 5, either

我们也没有忘记Qt 5

Since QTBUG-108662 was fixed, we now support building Qt 5 and applications for it with LLVM-based toolchains in newer NDKs. The bug was about a remaining dependency on ranlib, with the fix the qmake build correctly uses llvm-ar on LLVM toolchains.

由于QTBUG-108662已修复,我们现在支持在更新的NDK中使用基于LLVM的工具链构建Qt 5及其应用程序。这个bug是关于对ranlib的一个剩余依赖,通过修复,qmake构建正确地使用了LLVM工具链上的llvm-ar。

Similarly to Qt 6, if Qt 5 or applications for it don't build with a shiny and new NDK, it's a bug, please report it.

与Qt 6类似,如果Qt 5或它的应用程序没有使用闪亮的新NDK构建,这是一个bug,请报告它。

Debugging with LLDB

用LLDB调试

The recent Qt Creator versions will autodetect LLDB if you select an NDK version that is new enough to no longer ship GDB, and debugging on a device with it will Just Work out of the box.

如果您选择的NDK版本足够新,不再提供GDB,最近的QtCreator版本将自动检测LLDB,并且使用它在设备上进行调试将只需开箱即用。

Android 12 testing

Android 12测试

Finally, we're doing the finishing touches to add Android 12 into our CI among all the other configurations that we check builds and test results for on every commit. There's been some test case tuning necessary for that, but it's now in its final steps, soon ready to be merged.

最后,我们正在做最后的工作,将Android 12添加到CI中,以及我们在每次提交时检查构建和测试结果的所有其他配置中。为此需要进行一些测试用例调优,但现在已经进入最后阶段,很快就可以合并了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值