Kelson has submitted this change and it was merged. Change subject: Update build instructions for MacOS X. ......................................................................
Update build instructions for MacOS X. Change-Id: I0190ada3bf02c42ed34cb6d253516a9c662357e1 --- M zimlib/README.md M zimwriterfs/README.md 2 files changed, 31 insertions(+), 2 deletions(-) Approvals: Kelson: Verified; Looks good to me, approved diff --git a/zimlib/README.md b/zimlib/README.md index ce35ed9..9aef82c 100644 --- a/zimlib/README.md +++ b/zimlib/README.md @@ -16,5 +16,24 @@ make ``` +OSX compilation +--------------- +On MacOSX, you'll need to install some packages from +[homebrew](http://brew.sh/): +``` +brew update +brew install xz libmagic +``` +You'll also want to add `/usr/local/include` to your search path, +for example: +``` +./autogen.sh +./configure CFLAGS=-I/usr/local/include CXXFLAGS=-I/usr/local/include +make +``` + +License +------- + The `zimlib` library is released under the GPLv2 license terms. diff --git a/zimwriterfs/README.md b/zimwriterfs/README.md index 8695643..1cbb7dc 100644 --- a/zimwriterfs/README.md +++ b/zimwriterfs/README.md @@ -44,9 +44,19 @@ ``` OSX compilation ----------------- +--------------- +OSX builds are similar to Linux, except we use homebrew. Change to +`../zimlib` and build zimlib as instructed in the README there. Then +return here and: +``` +brew install gumbo-parser +./autogen.sh +./configure CXXFLAGS="-I../zimlib/include -I/usr/local/include" LDFLAGS=-L../zimlib/src/.libs +make +``` -On MaxOSX, a script helps you build zimwriterfs both statically and dynamically. +Alternatively, there is a script included here to help you build both +static and dynamic binaries for `zimwriterfs`. You must have a working and set up Kiwix repository (with dependencies ready). 1. Install libmagic with brew (it's important) -- To view, visit https://gerrit.wikimedia.org/r/295382 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0190ada3bf02c42ed34cb6d253516a9c662357e1 Gerrit-PatchSet: 1 Gerrit-Project: openzim Gerrit-Branch: master Gerrit-Owner: Cscott <canan...@wikimedia.org> Gerrit-Reviewer: Kelson <kel...@kiwix.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits