<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 3, 2017, at 1:49 AM, Willem Ferguson <<a href="mailto:willemferguson@zoology.up.ac.za" class="">willemferguson@zoology.up.ac.za</a>> wrote:</div><div class=""><div bgcolor="#FFFFFF" text="#000000" class=""><p class="">Scanning dependencies of target subsurface.apk<br class="">
      [ 89%] Generating run_android_deploy_qt<br class="">
      Directory /home/willem/src/android-sdk-linux/platforms does not
      exist<br class="">
      make[2]: *** [run_android_deploy_qt] Error 2<br class="">
      make[1]: *** [CMakeFiles/subsurface.apk.dir/all] Error 2<br class="">
      make: *** [all] Error 2<br class="">
      $ <br class="">
    </p><p class="">There are two problems here.</p><p class="">1) The location of the android sdk. On my machine it resides at <tt class="">~/Android/Sdk/tools</tt>.
      It is not in <tt class="">~/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 class="">The current organisation on my machine is:<br class="">
    </p><p class=""><tt class="">~/Android/Sdk$ ls -l</tt><tt class=""><br class="">
      </tt><tt class="">total 28</tt><tt class=""><br class="">
      </tt><tt class="">drwxrwxr-x  3 willem willem 4096 Feb  3 11:33 build-tools</tt><tt class=""><br class="">
      </tt><tt class="">drwxrwxr-x  4 willem willem 4096 Feb  3 11:33 extras</tt><tt class=""><br class="">
      </tt><tt class="">drwxrwxr-x  3 willem willem 4096 Feb  3 11:32 patcher</tt><tt class=""><br class="">
      </tt><tt class="">drwxrwxr-x  3 willem willem 4096 Feb  3 11:31 platforms</tt><tt class=""><br class="">
      </tt><tt class="">drwxrwxr-x  5 willem willem 4096 Feb  3 11:33
        platform-tools</tt><tt class=""><br class="">
      </tt><tt class="">drwxrwxr-x  3 willem willem 4096 Feb  3 11:32 sources</tt><tt class=""><br class="">
      </tt><tt class="">drwxrwxr-x 12 willem willem 4096 Feb  3 11:34 tools</tt><br class="">
    </p><p class="">And here, indeed is probably the missing <tt class="">platforms</tt>
      directory which, in turn, contains the <tt class="">Android-25</tt>
      directory<br class="">
    </p><p class="">I think the script just does not know where to find all the bits
      and pieces.</p><p class="">Obviously I have something simple not done right. Any
      suggestions?</p><p class="">I am much closer now to building the .apk<br class="">
    </p></div></div></blockquote>So did you run the scripts/android-build.sh that I wrote pretty much specifically for you to help you through all these things?</div><div><br class=""></div><div>I should have realized yesterday that you didn't because THAT one downloads and installs libdivecomputer and does the autoreconf.</div><div>And it installs the platforms and everything.</div><div><br class=""></div><div>I ran this script on a freshly installed Ubuntu VM and it gets all the paths right, gets all the components you need and results in a working apk</div><div><br class=""></div><div>/D</div><br class=""></body></html>