Compiling from source


Though not a dependency per se, don’t forget that you also need the CMake build system, at least version 2.8.3. Additional help on how to use the CMake build system is available on our tutorials page.

Please note that the following installation instructions are only valid for POSIX systems (e.g., Linux, MacOS) with an already installed make/gnu toolchain. For instructions on how to download and compile PCL in Windows (which uses a slightly different process), please visit our tutorials page.

Stable

For systems for which we do not offer precompiled binaries, you need to compile Point Cloud Library (PCL) from source. Here are the steps that you need to take:

  1. Go to Github and download the version number of your choice.
  2. Uncompress the tar-bzip archive, e.g. (replace 1.6.0 with the correct version number):
    tar xvfj PCL-1.6.0-Source.tar.bz2
    
  3. Change the directory to the PCL-1.6.0-Source (replace 1.6.0 with the correct version number) directory, and create a build directory in there:
    cd PCL-1.6.0-Source && mkdir build && cd build
  4. Run the CMake build system using the default options:
    cmake ..
    Or change them:
    ccmake ..
    Please note that cmake might default to a debug build. If you want to compile a release build of PCL with enhanced compiler optimizations, you can change the build target to "Release" with "-DCMAKE_BUILD_TYPE=Release".
    cmake -DCMAKE_BUILD_TYPE=Release .. 
  5. Finally compile everything:
    make
    And install the result:
    make install
    or alternatively, if you did not change the CMAKE_INSTALL_PREFIX variable which declares where PCL should be installed, do:
    sudo make install
Here's everything again, in case you want to copy & paste it:
cd PCL-1.6.0 && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. 
make
sudo make install
Again, for a detailed tutorial on how to compile and install PCL and its dependencies in Microsoft Windows, please visit our tutorials page. Additional information for developers is available at the Github PCL Wiki.

Experimental

If you are eager to try out a certain feature of PCL that is currently under development (or you plan on developing and contributing to PCL), we recommend you try checking out our source repository, as shown below. If you're just interested in browsing our source code, you can do so by visiting https://github.com/PointCloudLibrary/pcl.

git clone https://github.com/PointCloudLibrary/pcl pcl-trunk
Please note that above steps (3-5) are almost identical for compiling the experimental PCL trunk code:
cd pcl-trunk && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. 
make
sudo make install

Dependencies

Because PCL is split into a list of code libraries, the list of dependencies differs based on what you need to compile. The difference between mandatory and optional dependencies, is that a mandatory dependency is required in order for that particular PCL library to compile and function, while an optional dependency disables certain functionality within a PCL library but compiles the rest of the library that does not require the dependency.

pcl_* denotes all PCL libraries, meaning that the particular dependency is a strict requirement for the usage of anything in PCL.

Mandatory

The following code libraries are required for the compilation and usage of the PCL libraries shown below:


Boost ≥ 1.46

pcl_*

MANDATORY


Eigen ≥ 3.0

pcl_*

MANDATORY


FLANN ≥ 1.7.1

pcl_*

MANDATORY


VTK ≥ 5.6

pcl_visualization

MANDATORY

Optional

The following code libraries enable certain additional features for the PCL libraries shown below, and are thus optional:


QHull ≥ 2011.1

pcl_surface

OPTIONAL


openni-dev ≥ 1.3

pcl_io

OPTIONAL


CUDA ≥ 4.0

pcl_*

OPTIONAL

Troubleshooting

In certain situations, the instructions above might fail, either due to custom versions of certain library dependencies installed, or different operating systems than the ones we usually develop on, etc. This section here contains links to discussions held in our community regarding such cases. Please read it before posting new questions on the mailing list, and also use the search features provided by our forums - there's no point in starting a new thread if an older one that discusses the same issue already exists.

MacOS X

atrovent nasal comprar peut on acheter zyrtec sans ordonnance avis vente viagra internet cheating spouse mobile tracker where is viagra made in ireland catch a cheating spouse app for iphone comprar cialis en madrid cheap adobe creative suite 5 master collection liquid viagra australia viagra delivered to australia price of adobe photoshop cs5 extended viagra available in australia can i buy lamisil over the counter best viagra online australia buy azithromycin zithromax online