<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<blockquote>
<p><span class="">On 03/02/2017 08:25, Joakim Bygdell wrote:</span></p>
<p>Remove the quotations on line 383 and try again, that fixed it
for me.<br>
-- <br>
</p>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">Jocke</div>
</div>
</blockquote>
<br>
<br>
<p>I think your suggestions were extremely helpful. Thank you very
much. The problem below is due to a totally different reason. It
almost completes the build now, then I get:<br>
</p>
<p>$ bash subsurface/packaging/android/build.sh<br>
~/src/subsurface ~/src<br>
~/src<br>
~/src/qt-android-cmake ~/src<br>
Already up-to-date.<br>
~/src<br>
-- building without marble widget support<br>
-- building without printing support<br>
-- building without usermanual<br>
-- building with libftdi support<br>
-- system name Android<br>
-- Found Qt for Android: /home/willem/src/Qt/5.7/android_armv7<br>
-- Found Android SDK:
/home/willem/src/subsurface/../android-sdk-linux <===<br>
-- Found Android NDK:
/home/willem/src/subsurface/../android-ndk-r13b<br>
-- Found ANT: /usr/bin/ant<br>
-- Configuring done<br>
<br>
............. etc<br>
<br>
Scanning dependencies of target subsurface.apk<br>
[ 89%] Generating run_android_deploy_qt<br>
Directory /home/willem/src/android-sdk-linux/platforms does not
exist<br>
make[2]: *** [run_android_deploy_qt] Error 2<br>
make[1]: *** [CMakeFiles/subsurface.apk.dir/all] Error 2<br>
make: *** [all] Error 2<br>
$ <br>
</p>
<p>There are two problems here.</p>
<p>1) The location of the android sdk. On my machine it resides at <tt>~/Android/Sdk/tools</tt>.
It is not in <tt>~/src</tt>. For this reason I am not sure how to
interpret the message marked with <===, above because it
differs both in the name of the directory as well as its location.
In theory I could generate a symlink just as I did for Qt and
libdivecomputer.</p>
<p>The current organisation on my machine is:<br>
</p>
<p><tt>~/Android/Sdk$ ls -l</tt><tt><br>
</tt><tt>total 28</tt><tt><br>
</tt><tt>drwxrwxr-x 3 willem willem 4096 Feb 3 11:33 build-tools</tt><tt><br>
</tt><tt>drwxrwxr-x 4 willem willem 4096 Feb 3 11:33 extras</tt><tt><br>
</tt><tt>drwxrwxr-x 3 willem willem 4096 Feb 3 11:32 patcher</tt><tt><br>
</tt><tt>drwxrwxr-x 3 willem willem 4096 Feb 3 11:31 platforms</tt><tt><br>
</tt><tt>drwxrwxr-x 5 willem willem 4096 Feb 3 11:33
platform-tools</tt><tt><br>
</tt><tt>drwxrwxr-x 3 willem willem 4096 Feb 3 11:32 sources</tt><tt><br>
</tt><tt>drwxrwxr-x 12 willem willem 4096 Feb 3 11:34 tools</tt><br>
</p>
<p>And here, indeed is probably the missing <tt>platforms</tt>
directory which, in turn, contains the <tt>Android-25</tt>
directory<br>
</p>
<p>I think the script just does not know where to find all the bits
and pieces.</p>
<p>Obviously I have something simple not done right. Any
suggestions?</p>
<p>I am much closer now to building the .apk<br>
</p>
<p>Kind regards,</p>
<p>willem</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>