Have android SDK & NDK on the buildd

Asked by bastif

Hello,

I wanted to build qt-android which requires Google Android SDK & also NDK.
NDK is not shipped as debian package
and the SDK package contains an old and stripped down version that cannot be used to build qt-android.

The qt-android-6.4 source package depends on the google-android-*-installer packages, but since there is no Internet access on the build servers, it can't install them.

Would there be a way to have both Android's SDK & NDK as published by Google on the build servers (buildd) so that I can build qt-android?

Build logs can be found here:
https://launchpad.net/~bastif/+archive/ubuntu/qt-android/+build/25406813

Error is (as expected since there is no internet access):
```
make: Entering directory '/var/cache/google-android-ndk-r23c-installer'
cd /var/cache/google-android-ndk-r23c-installer && \
 su nobody -s /bin/sh -c "wget --continue https://dl.google.com/android/repository/android-ndk-r23c-linux.zip -O android-ndk-r23c-linux.zip.tmp && mv android-ndk-r23c-linux.zip.tmp android-ndk-r23c-linux.zip"
--2022-12-17 18:11:18-- https://dl.google.com/android/repository/android-ndk-r23c-linux.zip
Resolving dl.google.com (dl.google.com)... failed: Name or service not known.
wget: unable to resolve host address ‘dl.google.com’
make: *** [Makefile:53: /var/cache/google-android-ndk-r23c-installer/android-ndk-r23c-linux.zip] Error 4
```

Regards

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

The only way to do this is for somebody to package it so that you can add it to your Build-Depends. We don't preinstall anything in the buildd environment - it all ultimately comes from .debs.

Revision history for this message
bastif (bastif) said (last edit ):
#2

I guess this paragraph of the SDK License doesn't permit to package it. Do you have another understanding?

3.4 You may not use the SDK for any purpose not expressly permitted by the License Agreement. Except to the extent required by applicable third party licenses, you may not copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of the SDK or any part of the SDK.

Source: https://developer.android.com/studio/terms

Revision history for this message
Colin Watson (cjwatson) said :
#3

In that case it sounds like you may be out of luck for building this on Launchpad, I'm afraid, but I'm not a lawyer.

Revision history for this message
bastif (bastif) said :
#4

ok, thanks for answering.

Can you help with this problem?

Provide an answer of your own, or ask bastif for more information if necessary.

To post a message you must log in.