AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Use kiwix with windows 104/29/2023 ![]() ![]() The simpler is to compile pthread ourselves. The pre-build version of pthread is compiled with MSVC 2010 which is not compatible with 2017 (Or you will have to play with dlls, and you don't want that). Add a pkgconfig file (because meson need it)Ī lot of project use pthread to handle threads.The pre-build version of libzim is multi arch, we can directly use it. build -prefix C:/Users//dependencies -default-library static -buildtype release The pre-build binary provided by zlib project is a 32bits binary. Install it in C:\msys64 (the default) Install Qt Will will need something that look like a unix system on windows.įollow the instruction there ( ) to have a up-to-date installation. You will need to run C:\MSVC\VC\Auxiliary\Build\vcvars64.bat in cmd to have it. VC will be installed, but the cl compilator will not be in the path by default. ![]() However, do not select them directly in "Individual Components" (It will not properly setup) If you are short is disk space, you can unselect everything but (in the right panel): Run the installer and select "Install Visual Studio 2017 Community" (Or equivalent) Add C:\pkg-config-lite\bin to PATH (see annex).Extract the zim to C:\ (it will create the directory pkg-config-lite).Hopelly, there is a lite version without glib dependencie: We will need pkg-config to allow meson to find dependencies. Hopefully, there is a meson installer that embedded python and ninja, lets use it:Īnd install meson in C:\meson Install pkg-config Install the tools Install GitĪnd install git in C:\git. And you will have to copy files from linux to windows, you'd better setup a ssh connection between the two. meson handles MSVC compiler, so nothing special on this (except few bugs)Īs xapian is not yet release, we will need to run maintainer tools, that are available only on Linux, so, keep a linux around. We will use Msys2 as xapian doc recommend it. Anyway, all those tools are GNU tools so, we need a Posix env in Windows. (Guys, you are crazy, you've wrote a wrapper around MSVC to transform options in gcc style to MSVC style. It is not released yet, but we will use it anyway. However xapian folks have start to work on allowing compilation of xapian using MSVC. ICU also provide a MSVC project to allow recompilation. ICU project provide a prebuild lib using VC. However, we are using the C API and porting to the C API will be. Microsoft provide a version in Windows, but only the C API (especially because C has no standard ABI). It is compiled with mingw64, but as it is C, no problem. A prebuild version exist, compiled with VC 2017 So, we need to compile all our C code with MSVC. Kiwix.exe, kiwix1.exe and Wikipedia.exe are the most frequent filenames for this programs installer. The software is categorized as Education Tools. This free software is an intellectual property of Kiwix. QTWebEngine is compilable only with MSVC on Windows and 64bits only. The following version: 0.9 is the most frequently downloaded one by the program users. As C has no standard ABI defined, we need to compile all C code with the same compiler. ![]()
0 Comments
Read More
Leave a Reply. |