Hi -
I am working on compiling kiwix-tools, and therefore kiwix-lib for the
XO-1.5 (fedora 18), in preparation for the trip to Haiti in April.
I am following the instructions here: https://github.com/kiwix/kiwix-tools
and here: https://github.com/kiwix/kiwix-lib
With Jerry, Nathan, and Adam's help, I was able to install all dependencies
for kiwix-lib (icu, zim, pugixml, ctpp2 [had to compile from source],
xapian) and
the environment compilation tools (automake, libtool, pkg-config).
But I am having trouble with *meson*. Meson requires python 3.5+ so we
installed python 3.6 from source (via
https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-cento…
).
Meson (finally) was successfully installed that way, but now am running
into the following error when running "meson . build" as instructed to do
so here:
https://github.com/kiwix/kiwix-lib.
*Error during basic setup: Neither directory contains a build file
meson.build*
Based on searching the web, it seems like this command requires the source
existing thought it seems per here:
https://github.com/kiwix/kiwix-tools/issues/158
that it may not be the preferred route anymore. The solution in that issue
was to run this command:
*sudo -u kiwix /bin/bash -c "cd /opt/kiwix; /usr/lib/kiwix/bin/kiwix-manage
/opt/kiwix/data/library/library.xml add
/media/esata/MEDIA/System/Kiwix/data/content/wikipedia_en_for-schools_2013-01.zim"
*
Would appreciate any guidance on how to proceed. Many thanks.
Avni
On Tue, Mar 6, 2018 at 7:00 PM, Adam Holt <holt(a)unleashkids.org> wrote:
> On Mar 6, 2018 6:26 PM, "Avni Khatri" <avni(a)kidsoncomputers.org> wrote:
>
> Hi all -
>
> As part of the Haiti trip, we are looking for help getting Kiwix
> (kiwis-tools)
>
>
> kiwix-tools (enables fully searchable offline Wikipedia, across
> disconnected lands).
>
> This is necessary to display the new ZIM files (these contain full-text
> search indexes, since about a year ago, consequently the old Kiwix on i686
> no longer works!)
>
> compiled and working on OLPC XO-1.5
> <http://wiki.laptop.org/go/Hardware_specification_1.5>.
>
> We believe this should be straightforward as it *was* running on i686 just
> over a year ago at the end of 2016: https://github.com/kiwix
> /kiwix-build/issues/94
>
> Steps are outlined at the bottom of: https://github.com/kiwix/kiwix-tools and
> we think it's a matter of knowing which compiler flags to use.
>
> Support by Emmanuel & the Kiwix team will be available via IRC channel
> #kiwix at http://webchat.freenode.net for questions. Adam (cc'ed) can
> also provide additional technical details as necessary.
>
> We need this so kids in the two schools we are visiting can view the
> Wikipedia we all love so much offline and has the impact to help any kid
> (or anybody!) using 32-bit Linux PC's.
>
>
> If an actual XO-1.5 laptop (about 3X faster than the original One Laptop
> Per Child laptop, and a more standard i686 architecture) is needed to
> compile kiwix-tools please let us know.
>
> "It should be almost trivial IMO to get the binary for the VIA C7... The
> original ticket dealing with removal of SSE instruction was:
>
> https://sourceforge.net/p/kiwix/bugs/478/
>
> The original fix was in:
> kiwix/kiwix-xulrunner@4e6bd8d
> <https://github.com/kiwix/kiwix-xulrunner/commit/4e6bd8d806eda6b1b4959259dc3…>
>
> I recommend to build straight forward i686 and i585 without the SSE(2)
> instruction set, which means with the GCC option -mno-sse"
> https://github.com/kiwix/kiwix-build/issues/94#issuecomment-347178452
>
> Please let Adam and I know if you can help. Many thanks for considering.
>
> Avni Khatri
> Kids on Computers, Inc.
> http://kidsoncomputers.org/blog
>
>
>
Removing image and attachment so this can be posted to the list. All info
including attachments is also here: https://github.com/
kiwix/kiwix-tools/issues/170
----
On Tue, Mar 27, 2018 at 4:18 AM, Avni Khatri <avni(a)kidsoncomputers.org>
wrote:
> Per Matthieu's instructions, I git cloned the kiwix-lib repo and ran
> "meson kiwix-lib build". See attached screenshot. It made it further now,
> but complains with "Native dependency 'libzim' not found"
>
> This seems very similar to the issue here: kiwix/kiwix-lib#49
> <https://github.com/kiwix/kiwix-lib/issues/49> though I can't figure out
> how this was resolved.
>
> I've also attached the terminal history from the last 2 days.
>
> Any pointers greatly appreciated. Thank you!
> Avni Khatri
> Kids on Computers, Inc.
> http://kidsoncomputers.org/blog
>
>
>
> ---------
> Date: Mon, 26 Mar 2018 10:01:50 +0200
> From: Matthieu Gautier <mgautier(a)kymeria.fr>
> To: offline-l(a)lists.wikimedia.org
> Subject: Re: [Offline-l] Haiti trip - looking for help getting Kiwix
> working on OLPC XO-1.5
> Message-ID: <123d91e3-c12f-883c-466e-94f995d1c107(a)kymeria.fr>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi Avni,
>
> Do you know https://github.com/kiwix/kiwix-build ?
> It is the tool we used to compile all kiwix projects (and so kiwix-tools).
> It download all sources, and compile everything from dependencies to
> kiwix-tools.
>
> Anyway, you can compile kiwix-tools without kiwix-build :
>
> Meson need the sources of kiwix-tools to compile them. You will need to
> clone them with `git clone https://github.com/kiwix/kiwix-lib`
> Once they are cloned, you can use them. The command is `meson
> <path_to_source_directory> <path_to_build_directory>`.
> So if you already are in the source directory and want to build in the
> subdirectory build, the command is `meson . build`
>
> Once the build is configured (meson is the equivalent of ./configure),
> you can compile it with `ninja` (being in the build_directory)
>
> Cheers,
> Matthieu Gautier.
>
> On Mon, Mar 26, 2018 at 3:48 AM, Emmanuel Engelhart <kelson(a)kiwix.org>
> wrote:
>
>> Hi Avni
>>
>> On 26.03.2018 08:05, Avni Khatri wrote:
>>
>> > I am working on compiling kiwix-tools, and therefore kiwix-lib for the
>> > XO-1.5 (fedora 18), in preparation for the trip to Haiti in April.
>> >
>> > I am following the instructions here:
>> > https://github.com/kiwix/kiwix-tools and here:
>> > https://github.com/kiwix/kiwix-lib
>> >
>> > With Jerry, Nathan, and Adam's help, I was able to install all
>> > dependencies for kiwix-lib (icu, zim, pugixml, ctpp2 [had to compile
>> > from source], xapian) and
>> > the environment compilation tools (automake, libtool, pkg-config).
>>
>> Please open a ticket on Kiwix Github organisation for technical
>> questions https://github.com/kiwix/kiwix-tools/issues/new.
>>
>> Please provide the whole console log from the git clone (or tarball
>> unpack) up to the error.
>>
>> Regards
>> Emmanuel
>>
>> --
>> Kiwix - Wikipedia Offline & more
>> * Web: http://www.kiwix.org
>> * Twitter: https://twitter.com/KiwixOffline
>> * more: http://www.kiwix.org/wiki/Communication
>>
>>
>