''''''''''''''''''''''
::

  $ brew install sphinx

Install patched OpenNI and Sensor
'''''''''''''''''''''''''''''''''

Download the patched versions of OpenNI and Sensor: `openni_osx.zip
<http://dev.pointclouds.org/attachments/download/191/openni_osx.zip>`_ and
`ps_engine_osx.zip
<http://dev.pointclouds.org/attachments/download/192/ps_engine_osx.zip>`_.

Extract, build, fix permissions and install OpenNI::

   $ unzip openni_osx.zip -d openni_osx
   $ cd openni_osx/Redist
   $ chmod -R a+r Bin Include Lib
   $ chmod -R a+x Bin Lib
   $ chmod a+x Include/MacOSX Include/Linux-*
   $ sudo ./install.sh

In addition the PrimeSense XML configuration file found within the
patched OpenNI download needs its permissions fixed and to be copied to
the correct location to for the Kinect to work on Mac OS X::

   $ chmod a+r openni_osx/Redist/Samples/Config/SamplesConfig.xml
   $ sudo cp openni_osx/Redist/Samples/Config/SamplesConfig.xml /etc/primesense/

Extract, build, fix permissions and install Sensor::

   $ unzip ps_engine_osx.zip -d ps_engine_osx
   $ cd ps_engine_osx/Redist
   $ chmod -R a+r Bin Lib Config Install
   $ chmod -R a+x Bin Lib
   $ sudo ./install.sh

Compiling PCL
-------------

At this point you should have everything needed installed to build PCL
with almost no additional configuration.

Check out the PCL source from the trunk::

   $ svn co http://svn.pointclouds.org/pcl/trunk pcl
   $ cd pcl

Create the build directories, configure CMake, build and install::

   $ mkdir build
   $ cd build
   $ cmake ..
   $ make
   $ sudo make install

.. note::

   If you are installing PCL 1.2, disable the visualisation module, or
   compilation will fail::

     $ cmake .. -DBUILD_visualization:BOOL=OFF

The customization of the build process is out of the scope of this tutorial and
is covered in greater detail in the :ref:`building_pcl` tutorial.

Compiling the documentation (optional)
--------------------------------------

If you installed the Doxygen and Sphinx dependencies, you can compile
the documentation 