<div dir="ltr"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div>I will send you a detailed description on how one could easily build it from scratch (in a different email).</div></div></div></blockquote><div><br></div><div>After some unsuccessful attempts to simplify the process, this is how it seems to be the easiest way for the moment (see also <a href="https://github.com/kovzol/bibref/blob/master/.github/workflows/build.yml#L27-L41">https://github.com/kovzol/bibref/blob/master/.github/workflows/build.yml#L27-L41</a> for a working GitHub action inside an application based on Sword), in a shell under Linux (I used Ubuntu 21.10, but this should be irrelevant):</div><div><br></div><div>git clone <a href="https://github.com/emscripten-core/emsdk.git">https://github.com/emscripten-core/emsdk.git</a><br></div><div>cd emsdk<br>./emsdk install 2.0.22<br>./emsdk activate 2.0.22<br>cd ..</div><div>. emsdk/emsdk_env.sh<br>git clone <a href="https://github.com/kovzol/crosswire-sword-mirror">https://github.com/kovzol/crosswire-sword-mirror</a><br>cd crosswire-sword-mirror<br>mkdir build<br>cd build<br>sudo apt install subversion # This is required, otherwise the cmake step will fail.<br></div><div>emcmake cmake ..<br>emmake make sword_static<br></div><div><br></div><div>An application based on the WASM build of libsword.a can be compiled and linked as shown in <a href="https://github.com/kovzol/bibref/blob/master/Makefile">https://github.com/kovzol/bibref/blob/master/Makefile</a>. The steps are explained in the beginning of this Makefile, including the compilation steps of libsword.a as well.</div><div><br></div><div>I hope this helps. ;-)</div><div><br></div><div>Best, Zoltan </div></div></div>