Saturday, June 28, 2014

Building Poppler under OS X

Went to the Popper project page:

http://poppler.freedesktop.org/

First erroneously cloned the Git repository; don't do this.

Then clicked to download the archive: poppler-0.26.2.tar.xz.

This was a pain. You can't handle tar.xz archives using any native commands under OS X.

Had to insall the small xz application:


The link downloads XZ.pkg and installs just by ctrl-clicking the icon and choosing "open" from the context menu.

You can check that the xz command is available with which xz.

Then you're in a position to open the Poppler archive:

   xz -d poppler-0.26.2.tar.xz

The file poppler-0.26.2.tar will result.

You can then double click on poppler-0.26.2.tar or untar from the command line.

The folder poppler-0.26.2 results.

This folder contains a configure file. Which is great because my clone of the Git repository did not contain a configure file.

Change into the poppler-0.26.2 folder.

Then ./configure and in the usual way.

But this fails in a check for FONTCONFIG:

checking for FONTCONFIG... no
configure: error: in `/Users/trevorbaca/Desktop/poppler-0.26.2':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see .
See `config.log' for more details

Which is annoying.

So Poppler hasn't built successfully yet. Documentation left here for later.
















No comments: