<div dir="ltr">For future reference, this was the winning combination to get through a make/install, with the Android NDK for me:<div><div><br></div><div><font face="monospace">./configure --host=arm-linux-androideabi --prefix=`pwd`/install/external/gdal \</font></div><div><font face="monospace"> --with-sqlite3=/path/to/sqlite/xcompilation \</font></div><div><font face="monospace"> --with-jpeg=internal \</font></div><div><font face="monospace"> --without-jpeg12</font></div></div><div><br></div><div>Now I've got sqlite3 symbols defined aplenty:</div><div><br></div><div><div><font face="monospace">$ nm -A install/external/gdal/lib/libgdal.so | ag sqlite3 | wc -l</font></div><div><font face="monospace"> 194</font></div></div><div><font face="monospace"><br></font></div>Thanks again!<div><br></div><div>/René</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 28 Nov 2017 at 14:25 René Hansen <<a href="mailto:renehh@gmail.com">renehh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Jackpot. That was it!<br><br>It's amazing what kind of blindspots you can develop, setting up cross compilations.<div><br><div><div>Now I'm wrestling with build errors related to jpeg and jpeg12, apparently just disabling them with --with-jpeg=no and --without-jpeg12, breaks all kinds of other stuff.</div></div><div><br></div><div>Alas, that is a different battle. Thanks Even!</div></div></div><div dir="ltr"><div><div><br></div><div><br></div><div>/René</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 28 Nov 2017 at 13:28 Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">René,</p></div><div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> As the subject reveals, I'm trying to compile with SQLite support, so I can</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> load libgdal.so as an extension, as per the example on</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> <a href="http://gdal.org/drv_sqlite.html" target="_blank">http://gdal.org/drv_sqlite.html</a>.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> I'm building with the Android NDK and it succeeds, seemingly fine, but when</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> I load the library as an extension:</p>
</div><div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal"><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">[...]</p></div><div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> I've really been scratching my head over this, so what am I doing glaringly</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> wrong?</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
</div><div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal"><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">You don't have to manually define VIRTUAL_OGR_DYNAMIC_EXTENSION_ENABLED. The likely explanation is that configure fails to detect sqlite3. Did you check the output of the configure to see if there's a "SQLite support: yes" line arround the end ?</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">You may need to add</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">--with-sqlite3=/path/to/cross/compiled/sqlite3/installation/prefix</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Even</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div></blockquote></div>