# HG changeset patch # User ali # Date 1379788262 -3600 # Node ID 2c71b6dc8b268fed690341206f2e64f78d0d51da # Parent 3f655b1b0d939001c757cdb2f080c6d489f108e9# Parent 3170a7cd7858620e0aaeedb81f06de969eb48d30 Fix bug #5: Cannot install on a Mac diff -r 3f655b1b0d93 -r 2c71b6dc8b26 README --- a/README Sat Sep 21 18:28:40 2013 +0100 +++ b/README Sat Sep 21 19:31:02 2013 +0100 @@ -55,11 +55,31 @@ Mac --- -The least intrusive means to build on a Mac is to use Homebrew: +You will need the command line tools for any of the procedures described +below. If you don't already have them, install Xcode (it's a free download). + +The least intrusive means to build on a Mac is to use Homebrew. However, +Homebrew is not compatible with Fink so if you have previously used Fink +then you need an alternative solution, such as MacPorts (see below). + +It may also be possible to use Fink itself. + +Mac using Homebrew +------------------ http://mxcl.github.com/homebrew/ -Install Homebrew according to its instructions. +Install Homebrew according to its instructions. If you already had Homebrew +before, make sure it's all up to date and “raring to brew.” For that, you +want to run: + +$ brew update + +and + +$ brew doctor + +from your terminal. If you are building bookloupe for your own use, you can use dynamic linking like this: @@ -107,4 +127,19 @@ when it is asked to prefer static libraries to dynamic ones.) Removing the dynamic libraries first will solve this problem. -It may also be possible to use fink or macports. +Mac using MacPorts +------------------ + +Install MacPorts from http://www.macports.org/. + +Install pkgconfig (required to build glib) and then glib itself: + +$ sudo port install pkgconfig +$ sudo port install glib2 + +Then install bookloupe as normal, telling configure where to find glib's +package configuration file: + +$ ./configure PKG_CONFIG_PATH=/opt/local/lib/pkgconfig +$ make +$ make install