Build on OS X

From VipsWiki

Jump to: navigation, search

gtk-osx

We've been using gtk-osx to make the OS X binaries in the VIPS supported download area.

We have a OS X build system based on jhbuild that automates the whole process. Check the README.

Homebrew

VIPS is on homebrew. Install homebrew and type:

$ brew tap homebrew/science
$ brew install vips

To verify your vips install, try:

$ vips --version
vips-7.32.1-Mon May 20 10:01:38 BST 2013

This is a good way to get libvips on your system, not so great for nip2.

This will give you a very bare-bones vips, missing things like imagemagick loading, openslide support, FFTs, and so on. To get a list of all the optional dependencies, try:

$ brew info vips

For a full-fat version, try:

$ brew install vips --with-cfitsio --with-fftw --with-imagemagick \
    --with-libexif --with-liboil --with-libtiff --with-little-cms \
    --with-openexr --with-openslide --with-pango

If you want to build things outside homebrew which depend on vips, such as ruby-vips, you will need to get your pkg-config working. You need to point pkg-config at the homebrew area, and, additionally, at homebrew's libxml2 area:

In your .profile, add something like:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig

To verify that pkg-config is working correctly with vips, try:

$ pkg-config vips --libs
-L/usr/local/Cellar/vips/7.32.1/lib ... a lot of stuff

Macports

VIPS and nip2 are in Macports, though it's an old version.

Personal tools