Cross-compiling Subsurface-mobile from Linux to Android
Dirk Hohndel
dirk at hohndel.org
Wed Jun 22 07:14:51 PDT 2016
> On Jun 22, 2016, at 4:30 AM, Willem Ferguson <willemferguson at zoology.up.ac.za> wrote:
>
>
>
> On 20/06/2016 21:52, Axel Richter wrote:
>> Am 20.06.2016 um 21:14 schrieb Willem Ferguson:
>>>
>>> I am downloading build components to cross-compile to Android (i.e. generating an .apk file). I installed Android-ndk, Android-sdk (NOT Android-Studio) and the JDK (version 1.8). None of these components required any compilation or building to be functional. Below a few remarks on the Android components.
>>>
>>> In order to start developing applications, you must install the Platform-tools
>>> and at least one version of the Android platform, using the SDK Manager.
>>
>> Dear Willem,
>>
>> yes, you will need such tools, especially for
>>
>> 1) yes, you will need all the libraries twice - one for the (host) linux and one for the (arm7 in your case?) processor.
>>
>> 2) For this you will need the image, too. Downloable via the SDK manager. If you get the android SDK, you will have an image to run into ADB.
>>
>> Private suggestion: download eclipse - with the android part, I'm sure there is one. So you have all in one package.
>>
>> Axel.
> Simple questions from an ignorant person.
>
> I am not sure how to install Qt for use on Android. For Subsurface-mobile to run on Android, where should Qt be installed?
>
> Destination platform:
> My intuition suggests to me that Qt-Android would need to be installed on native Android, but does this come across as part of the Subsurface application? I have never installed Qt on my Android device, yet I run Subsurface-mobile. Looks like the version for Android is Qt V5.7
>
> Source platform:
> What Qt version is required on the source (development) machine? I cannot see that Qt for Android would be required on the Linux source machine, unless this is somehow included as part of Subsurface-mobile? My Qt environment on Linux is 5.5.1
Willem, you install everything on your Linux box, not on Android.
Look at https://help.ubuntu.com/community/AndroidSDK <https://help.ubuntu.com/community/AndroidSDK> to get an idea how this works
You'll need the SDK https://developer.android.com/studio/index.html#downloads <https://developer.android.com/studio/index.html#downloads> (don't get the IDE, just the SDK at the bottom)
You'll need the NDK https://developer.android.com/ndk/downloads/index.html <https://developer.android.com/ndk/downloads/index.html>
And then here you can get Qt with the bits for Android http://www.qt.io/download-open-source/#section-2 <http://www.qt.io/download-open-source/#section-2>
/D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160622/af6b2904/attachment.html>
More information about the subsurface
mailing list