wiki:devel/compilingForMacOSX

Compile OpenSync for Mac OS X

With OpenSync Revision r4488 it is possible to compile it on Mac OS X. This page describes the necessary steps to get a working OpenSync library.

GCC

OpenSync depends on cmake, glib and libxml2. Therefore you have to install these software for Mac OS. First you need gcc to be able to compile the sources. Apple ships a modified version of gcc with their Xcode IDE  Download Xcode. You need a free ADC Member Apple ID to download it.

CMake

The next step is to download a CMake version for Mac OS which is available at  CMake Downloads. CMake is a build tool which is available on many systems and much faster than autotools.

GLib

It is possible to get a glib Mac version on  http://www.gtk-osx.org/ which is shipped together with gtk+.

libxml2

Apple provides already a version of libxml2 together with Xcode but this is a very old one (2.6.16) and OpenSync needs libxml2 >= 2.6.20 (for more information see  OpenSync Devel Mailinglist). An up-to-date version of libxml2 can be found on  http://www.explain.com.au/oss/libxml2xslt.html.

libcheck

Additionally if you want to run the tests you have to download the source of  libcheck and compile and install it via ./configure, make and make install.