Visual Servoing Platform  version 3.0.2 under development (2017-05-25)
Tutorial: Installation from prebuilt packages for OSX with Homebrew

In this tutorial you will learn how to install ViSP Homebrew package on OSX. These steps have been tested with Mac OS X 10.11.5 El Capitan.

Note
Concerning ViSP installation, we provide also other Tutorials.

Install prerequisities

First, go to http://brew.sh to install Homebrew.

Install ViSP with homebrew

To get information on ViSP package:

$ brew update
$ brew info visp

To install ViSP and additional dependencies (cmake, opencv3, libdc1304, libxml2, gsl, zbar, x11), just run:

$ brew update
$ brew install visp

Tips and tricks

How to build from source

To install ViSP with homebrew after building from source you may run:

$ brew install visp --build-from-source

To know which are the additional build options, run:

$ brew options visp
--c++11
Build using C++11 mode
--without-gsl
Build without gsl support
--without-libdc1394
Build without libdc1394 support
--without-libxml2
Build without libxml2 support
--without-opencv3
Build without opencv3 support
--without-x11
Build without x11 support
--without-zbar
Build without zbar support

For example to disable xml support, you may run

$ brew install visp --build-from-source --without-libxml2

/usr/local/include/visp is not writable

If during ViSP installation you get the following error

$ brew install visp
...
==> Pouring visp-3.0.0.el_capitan.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/visp/visp_modules.h
/usr/local/include/visp is not writable.
You can try again using:
brew link visp
...

it means maybe that you install other softwares without brew in /usr/local. A work arround is to change the owner of the corresponding folder like:

$ sudo chown {your-user-name} /usr/local/include

Next tutorial

You are now ready to see the next Tutorial: How to create and build a CMake project that uses ViSP on Unix or Windows that will show you how to use ViSP as a 3rd party to build your own project.