<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 3 February 2017 at 10:49, Willem Ferguson <span dir="ltr"><<a href="mailto:willemferguson@zoology.up.ac.za" target="_blank">willemferguson@zoology.up.ac.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<blockquote><span class="gmail-">
<p><span>On 03/02/2017 08:25, Joakim Bygdell wrote:</span></p>
</span><span class="gmail-"><p>Remove the quotations on line 383 and try again, that fixed it
for me.<br>
-- <br>
</p>
<div class="gmail-m_-8538515501518636566gmail_signature">
<div dir="ltr">Jocke</div>
</div>
</span></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/<wbr>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<span class="gmail-"><br>
-- system name Android<br>
-- Found Qt for Android: /home/willem/src/Qt/5.7/<wbr>android_armv7<br></span>
-- Found Android SDK:
/home/willem/src/subsurface/..<wbr>/android-sdk-linux <===<span class="gmail-"><br>
-- Found Android NDK:
/home/willem/src/subsurface/..<wbr>/android-ndk-r13b<br>
-- Found ANT: /usr/bin/ant<br>
-- Configuring done<br>
<br></span>
............. etc<br>
<br>
Scanning dependencies of target subsurface.apk<br>
[ 89%] Generating run_android_deploy_qt<br>
Directory /home/willem/src/android-sdk-<wbr>linux/platforms does not
exist<br>
make[2]: *** [run_android_deploy_qt] Error 2<br>
make[1]: *** [CMakeFiles/subsurface.apk.<wbr>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></div></blockquote><div>Yes symlinking makes this easier for you.</div><div>The script expects to find android-sdk-linux and android-ndk-r13b in the root of your working directory together with Qt, libdivecomputer and subsurface.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
<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></div></blockquote><div>make sure tour working src directory contains these folders:</div><div>android-sdk-linux<br></div><div>android-ndk-r13b<br></div><div>subsurface</div><div>libdivecomputer</div><div>Qt</div><div> </div><div>symlinks to other places are ok, the important thing are that they have the same name as listed above.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
<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>
</div>
<br>______________________________<wbr>_________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.<wbr>org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-<wbr>divelog.org/cgi-bin/mailman/<wbr>listinfo/subsurface</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Jocke</div></div>
</div></div>