install pcl1.7.2

it must be the pcl1.7.2, i test the pcl1.7.1 can not pass the bellow steps
 
tar xvfj pcl-pcl-1.7.2.tar.gz

Change the directory to the pcl-pcl-1.7.2 (replace 1.7.2 with the correct version number) directory, and create a build directory in there:

cd pcl-pcl-1.7.2 && mkdir build && cd build

Run the CMake build system using the default options:

cmake ..

Or change them (uses cmake-curses-gui):

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 ..

Finally compile everything (see compiler_optimizations):

make -j2

And install the result:

make -j2 install

ps: if it turns up as error description  "Maybe need administrative privileges", you need add sudo and run the above command! as follow:

Or alternatively, if you did not change the variable which declares where PCL should be installed, do:

sudo make -j2 install

Here’s everything again, in case you want to copy & paste it:

cd pcl-pcl-1.7.2 && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j2
sudo make -j2 install

原文地址:https://www.cnblogs.com/siahekai/p/11000793.html