<div dir="auto">Ah that’s right — it precompiled SQLite with emscripten first too, and fed that to the configuration before rerunning with emcmake.</div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Nov 10, 2025 at 7:13 PM Even Rouault via PROJ <<a href="mailto:proj@lists.osgeo.org">proj@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi Javier,<br>
<br>
the "key" is to have a sqlite3 executable for the host architecture <br>
(that you can point to with the EXE_SQLITE3 CMake variable), and the <br>
libsqlite3 library for the target one.<br>
<br>
For example the GDAL CI has an Android setup at <br>
<a href="https://github.com/OSGeo/gdal/blob/master/.github/workflows/android_cmake/start.sh#L45" rel="noreferrer" target="_blank">https://github.com/OSGeo/gdal/blob/master/.github/workflows/android_cmake/start.sh#L45</a> <br>
(note that is likely not the most canonical way of setting up an Android <br>
cross compilation, but at least it works...)<br>
<br>
Even<br>
<br>
Le 11/11/2025 à 00:58, Javier Jimenez Shaw via PROJ a écrit :<br>
> Hi<br>
><br>
> I am trying to compile PROJ in emscripten (inside an ubuntu docker image).<br>
> How do I produce proj.db?<br>
> Any recommended compile options or steps?<br>
><br>
> I thought there were some workflows cross-compiling (that was the <br>
> reason to have the "hash" of the sql code, to not run the check when <br>
> cross compiling), but I do not find any example in the github actions.<br>
><br>
> Thanks.<br>
><br>
> _______________________________________________<br>
> PROJ mailing list<br>
> <a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a><br>
<br>
-- <br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
My software is free, but my time generally not.<br>
<br>
_______________________________________________<br>
PROJ mailing list<br>
<a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a><br>
</blockquote></div></div>