Sir_Bashalot
Posts: 9
Joined: Fri Feb 02, 2018 11:09 pm

Kiwix ON RPI

Fri Feb 16, 2018 2:02 pm

Hey there,

A friend of mine and myself are currently trying to build a pocket-sized Wikipedia viewer using Kiwix. The issue is, we are unable to figure out who to install it on the PI. The Linux versions don't work, and we've tried compiling it from source (https://github.com/kiwix/kiwix-build), but to no avail. Any ideas on how to get this helpful software one the Pi (RPI 0 W)?

Thanks a ton,
Sir Bashalot

User avatar
topguy
Posts: 4427
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Kiwix ON RPI

Fri Feb 16, 2018 2:15 pm

If you had described where (and how) the build failed you might have gotten some hints.

If you also put "kiwix" in the search box on the forum you will also find a few thread where it has been discussed before, but they are rather old.

Sir_Bashalot
Posts: 9
Joined: Fri Feb 02, 2018 11:09 pm

Re: Kiwix ON RPI

Fri Feb 16, 2018 2:18 pm

Hey,
Thanks for your reply. The issue with the build was not the download, the issue was I was not able to run the application on my pi once it was downloaded (it just wasn't compatible). Thanks.

User avatar
topguy
Posts: 4427
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Kiwix ON RPI

Fri Feb 16, 2018 2:25 pm

The issue with the build was not the download, the issue was I was not able to run the application on my pi once it was downloaded (it just wasn't compatible).
You mean "once it was built" ? You download the source.. then you build the program.. and then run it.

User avatar
RaTTuS
Posts: 9899
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Kiwix ON RPI

Fri Feb 16, 2018 2:25 pm

arget platform
By default, kiwix-build.py will build everything for the current (native) platform using dynamic linkage (hence the native_dyn of the BUILD_native_dyn directory).

But you can select another target platform using the option target-platform. For now, there is ten different supported platforms :

native_dyn
native_static
win32_dyn
win32_static
android_arm
android_arm64
android_mips
android_mips64
android_x86
android_x86_64
do you see what may be the problem here
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Sir_Bashalot
Posts: 9
Joined: Fri Feb 02, 2018 11:09 pm

Re: Kiwix ON RPI

Fri Feb 16, 2018 2:29 pm

Hey,
None of those seem to be the build for a Raspberry Pi, my issue isn't getting a build, it's getting a build compatible with a RPI.

User avatar
topguy
Posts: 4427
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Kiwix ON RPI

Sat Feb 17, 2018 11:52 pm

If you dont specify a platform it should build for the native platform, you have yet to tell us why you think such a build is not compatible with the Pi.
What is the exact error message you get ?

Sir_Bashalot
Posts: 9
Joined: Fri Feb 02, 2018 11:09 pm

Re: Kiwix ON RPI

Sun Feb 18, 2018 6:47 pm

Really, what I am looking for is a walk through of how to get this on the Pi.

The error I am encountering when I try to compile the software is: configure: error: cannot run /bin/bash ./config.sub

User avatar
RaTTuS
Posts: 9899
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Kiwix ON RPI

Mon Feb 19, 2018 8:48 am

follow the instructions

Code: Select all

sudo apt-get install python3-pip virtualenv re2c #added re2c myself
virtualenv -p python3 ./ # Create virtualenv
source bin/activate      # Activate the virtualenv
pip3 install meson       # Install Meson
hash -r                  # Refresh bash paths

git clone git://github.com/ninja-build/ninja.git
cd ninja
git checkout release
./configure.py --bootstrap
mkdir ../bin
cp ninja ../bin
cd ..

./kiwix-build.py -h
works
then

Code: Select all

./kiwix-build.py
I get errors eventually when building libzim

Code: Select all

 error while loading shared libraries: libicudata.so.58:
I dunno what that is and dont have the time to search but this is the sort of thing you need to say when something does not work ...
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Media centres”

Who is online

Users browsing this forum: No registered users and 4 guests