Bio-Formats

Main Downloads
C++ Downloads
Licensing

Page Contents

Previous topic

Building C++ bindings in Windows

Next topic

Building C++ bindings in Linux

This Page

Building C++ bindings in Mac OS X

Compile-time dependencies – Mac OS X

To install dependencies on Mac OS X, we advise using Homebrew:

brew install maven cmake boost

Unless otherwise configured, this will install binaries into /usr/local/.

How to build – Mac OS X

The following commands will generate and build the Bio-Formats C++ bindings:

# generate the C++ bindings
cd components/formats-bsd
mvn -DskipTests package dependency:copy-dependencies cppwrap:wrap

# compile the C++ bindings
cd target/cppwrap
mkdir build
cd build
cmake ..
make