[Qbs] Issues building for Android

Ola Røer Thorsen ola at silentwings.no
Mon Oct 12 16:20:44 CEST 2020


man. 12. okt. 2020 kl. 15:49 skrev Christian Kandeler <
christian.kandeler at qt.io>:

> On Mon, 12 Oct 2020 15:07:14 +0200
> Ola Røer Thorsen <ola at silentwings.no> wrote:
>
> > The process '<HOME>/Android/Sdk/build-tools/aidl' could not be started:
> > execve: No such file or directory.
>
> Looks like Android.sdk.buildToolsVersion is empty. Please verify. However,
> I think this should have resulted in an error message from the respective
> Probe. Are you sure your project loaded without warnings? What if you set
> "Force Probes" in the build settings?
>

Thanks Christian. How do I best verify that the buildToolsVersion is empty?
The "dummy property console print trick?"

Re-starting from scratch, I get this message in the "General Messages" log
in Qt Creator:

---
Performing API discovery ...
Checking for license updates ...
Checking for updated license succeeded (4 licenses fetched)
[qbs] Build graph does not yet exist for configuration
'Debug_Android__fee4c0a9d0119005'. Starting from scratch.
[qbs] Setting up Qt at '/home/olathorsen/Qt/5.15.1/android/bin/qmake'...
[qbs] Qt with multiple abi detected: 'armeabi-v7a,arm64-v8a,x86,x86_64'
[qbs] Configuring abi 'armeabi-v7a'...
[qbs] Configuring abi 'arm64-v8a'...
[qbs] Configuring abi 'x86'...
[qbs] Configuring abi 'x86_64'...
[qbs] Qt was set up successfully.
Compiler feature detection failure!
The command
"/home/olathorsen/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
-x c++ -E -dM -target arm-linux-androideabi -target '' -fPIC -std=c++14 -"
terminated with exit code 1.
error: unknown target triple 'unknown', please use -triple or -arch
---

Again that looks like the sdk version is not set properly.. How do I set it
manually? I guess it normally should be set automatically when the
QtCreator kits are generated.

Best regards,
Ola








>
> Christian
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20201012/b7239495/attachment.html>


More information about the Qbs mailing list