<div dir="ltr"><div>Now I have a working GitHub Actions script to compile SWORD via MSYS2/MINGW64 and compile also bibref-qt with the freshly built SWORD library: <a href="https://github.com/kovzol/bibref/blob/b0ed253b69764204b5d63a233b23c96320229871/.github/workflows/build.yml#L61-L124">https://github.com/kovzol/bibref/blob/b0ed253b69764204b5d63a233b23c96320229871/.github/workflows/build.yml#L61-L124</a></div><div><br></div><div>These are the required packages:</div><div> base-devel<br> mingw-w64-x86_64-gcc<br> mingw-w64-x86_64-make<br> mingw-w64-x86_64-cmake<br> mingw-w64-x86_64-pkgconf<br> mingw-w64-x86_64-clang<br> mingw-w64-x86_64-zlib<br></div><div>Here is the needed patch to prepare SWORD 1.9.0 for the build:</div><div><a href="https://github.com/kovzol/bibref/blob/master/sword-patch-mingw64.diff">https://github.com/kovzol/bibref/blob/master/sword-patch-mingw64.diff</a><br></div><div><br></div><div>Then, SWORD must be configured (via cmake) to use prefix /mingw64.</div><div>It is not necessary to use make via -G "MinGW Makefiles", it is also possible to use Ninja.</div><div>In this case, of course, the package mingw-w64-x86_64-ninja is needed.</div><div><br></div><div>Blessings, Zoltan</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Kovács Zoltán <<a href="mailto:kovzol@gmail.com">kovzol@gmail.com</a>> ezt írta (időpont: 2024. márc. 11., H, 9:38):<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 dir="ltr">Dear List,<div>during the last two months I have been porting my terminal based Bible study tool "bibref" to have a graphical user interface (see <a href="https://matek.hu/zoltan/blog-20240311.php" target="_blank">https://matek.hu/zoltan/blog-20240311.php</a> for my blog entry).</div><div>Creating the Linux version was more straightforward than the Windows version. For Windows, I used the MSYS2/MINGW64 environment. I think this method has not yet been documented, so I would like to contribute my experience on that soon. Basically, I had to use clang++ for compilation (instead of g++) and there were some minor changes required (see <a href="https://github.com/kovzol/bibref/tree/master/qt#building-on-windows" target="_blank">https://github.com/kovzol/bibref/tree/master/qt#building-on-windows</a>).</div><div>I also made some minor changes on bibref's CMakeLists.txt (<a href="https://github.com/kovzol/bibref/commit/57c8d91728f1b648bd9ca3a92564b1125dad7ad4#diff-24b25a558b767a649faa13cbbc3b61401351b459ea8925b7b96bd93f109c1443" target="_blank">https://github.com/kovzol/bibref/commit/57c8d91728f1b648bd9ca3a92564b1125dad7ad4#diff-24b25a558b767a649faa13cbbc3b61401351b459ea8925b7b96bd93f109c1443</a>), it seems that SWORD was linked statically against bibref-qt.exe (and also icu, lzma, bzip2 and zlib hat to be linked statically).</div><div><div><br></div><div>Blessings, Zoltán</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p class="MsoNormal"><b><span lang="EN-GB">Dr. Zoltán</span></b><b><span lang="EN-GB"> Kovács, MSc</span></b><b><u></u><u></u></b></p><p class="MsoNormal">Institut Ausbildung<u></u><u></u></p><p class="MsoNormal"><span style="font-size:10pt"><u></u> <u></u></span></p><p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial"><i><span style="color:rgb(31,56,100)">Private Pädagogische Hochschule der Diözese Linz<br></span></i><i><span lang="EN-GB" style="color:rgb(31,56,100)">Private University of Education, Diocese Linz<br></span></i><i><span lang="EN-GB" style="color:rgb(31,56,100)">Salesianumweg 3, 4020 Linz</span></i><i><span lang="EN-GB" style="color:rgb(31,56,100)"><br></span></i><i><span lang="EN-GB" style="color:rgb(31,56,100)">Mail: <a href="mailto:zoltan.kovacs@ph-linz.at" style="color:rgb(17,85,204)" target="_blank">zoltan.kovacs@ph-linz.at</a></span></i></p><p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial"><i><span lang="EN-GB" style="color:rgb(31,56,100)">Web: <span style="color:rgb(5,99,193)"><span style="color:rgb(31,56,100)"><a href="http://www.ph-linz.at/" style="color:rgb(17,85,204)" target="_blank">www.ph-linz.at</a></span></span></span></i></p><p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial"><i><span lang="EN-GB" style="font-size:10pt;color:rgb(31,56,100)"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4ySnQRP95XP0A0xt_Z0RkQN3YSC5Mv-rs1TThP-9_pDF3VjXgIghIYGH3oGqYcH1yYS9D-ovvY"><br></span></i></p></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p class="MsoNormal"><b><span lang="EN-GB">Dr. Zoltán</span></b><b><span lang="EN-GB"> Kovács, MSc</span></b><b><u></u><u></u></b></p><p class="MsoNormal">Institut Ausbildung<u></u><u></u></p><p class="MsoNormal"><span style="font-size:10pt"><u></u> <u></u></span></p><p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial"><i><span style="color:rgb(31,56,100)">Private Pädagogische Hochschule der Diözese Linz<br></span></i><i><span lang="EN-GB" style="color:rgb(31,56,100)">Private University of Education, Diocese Linz<br></span></i><i><span lang="EN-GB" style="color:rgb(31,56,100)">Salesianumweg 3, 4020 Linz</span></i><i><span lang="EN-GB" style="color:rgb(31,56,100)"><br></span></i><i><span lang="EN-GB" style="color:rgb(31,56,100)">Mail: <a href="mailto:zoltan.kovacs@ph-linz.at" style="color:rgb(17,85,204)" target="_blank">zoltan.kovacs@ph-linz.at</a></span></i></p><p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial"><i><span lang="EN-GB" style="color:rgb(31,56,100)">Web: <span style="color:rgb(5,99,193)"><span style="color:rgb(31,56,100)"><a href="http://www.ph-linz.at/" style="color:rgb(17,85,204)" target="_blank">www.ph-linz.at</a></span></span></span></i></p><p class="MsoNormal" style="background-image:initial;background-position:initial;background-repeat:initial"><i><span lang="EN-GB" style="font-size:10pt;color:rgb(31,56,100)"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4ySnQRP95XP0A0xt_Z0RkQN3YSC5Mv-rs1TThP-9_pDF3VjXgIghIYGH3oGqYcH1yYS9D-ovvY"><br></span></i></p></div></div></div></div></div>