[Qbs] Android multiarch

Christian Gagneraud chgans at gmail.com
Thu May 14 14:23:40 CEST 2020


On Fri, 15 May 2020 at 00:20, Raphael Cotty <raphael.cotty at gmail.com> wrote:
>
> Hi,
> Can you enable androiddeployqt debug: Qt.android_support.verboseAndroidDeployQt
> And provide the output file?

00:21:53: Running steps for project Neon Factory Tools...
copying Qt resource templates [TestApp]
running androiddeployqt [TestApp]
/home/chgans/Programs/QtCommercial/5.14.2/android/bin/androiddeployqt
--output /home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/Debug_Android__54f9cea5714846ce/TestApp.93c1d015/deployqt_out
--input /home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/Debug_Android__54f9cea5714846ce/TestApp.93c1d015/androiddeployqt.json
--aux-mode --deployment bundled --android-platform android-28
--verbose
Cannot find application binary TestApp.
Process failed with exit code 2.
The following products could not be built for configuration
Debug_Android__54f9cea5714846ce:
TestApp
Error while building/deploying project Neon Factory Tools (kit:
Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for
Android))
When executing step "Qbs Build"
00:21:53: Elapsed time: 00:00.

And json:
{
"description": "This file was generated by qbs to be read by
androiddeployqt and should not be modified by hand.",
"qt": "/home/chgans/Programs/QtCommercial/5.14.2/android",
"sdk": "/home/chgans/Android/Sdk",
"sdkBuildToolsRevision": "28.0.3",
"ndk": "/home/chgans/Android/Sdk/ndk-bundle",
"toolchain-prefix": "llvm",
"tool-prefix": "llvm",
"useLLVM": true,
"ndk-host": "linux-x86_64",
"architectures":
{"x86_64":"x86_64-linux-android","arm64-v8a":"aarch64-linux-android"},
"qml-root-path": "/home/chgans/Projects/neon-testapp/sources/TestApp",
"stdcpp-path": "/home/chgans/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/",
"application-binary": "TestApp"
}

Thanks,
Chris
> Thanks
> Raph
>
> Le jeu. 14 mai 2020 à 14:12, Christian Gagneraud <chgans at gmail.com> a écrit :
>>
>> On Thu, 14 May 2020 at 23:34, Christian Gagneraud <chgans at gmail.com> wrote:
>> >
>> > Hi there,
>> >
>> > As an experiment, i've just tried Qt-5.14, and this has enabled
>> > multi-arch on Android.
>> > I can select the list of architecture i want to support with qbs.architectures.
>> > This works for libraries, but my application is disabled:
>> > Error while handling 'TestApp'
>> > Product 'TestApp' had errors and was disabled.
>>
>> I've tracked the problem down into one library, I have an export item
>> that seems to be problematic.
>> For now i added an explicit dependency in the app, and removed the export.
>> Looks weird...
>>
>> But now androiddeployqt fails with:
>> Cannot find application binary TestApp
>> Don't know why it's not one of the libTestApp.so, ...
>>
>> Chris
>> _______________________________________________
>> Qbs mailing list
>> Qbs at qt-project.org
>> https://lists.qt-project.org/listinfo/qbs


More information about the Qbs mailing list