Build on OS X
We have a OS X build system based on jhbuild that automates the whole process. Check the README.
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:
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
VIPS and nip2 are in Macports, though it's an old version.