compile pcl 1.8.1 from source code on ubuntu 16.04

1. clone pcl 1.8.1

git clonehttps://github.com/PointCloudLibrary/pcl.git


2. install eigen


sudo apt-get install libeigen3-dev


3. compile flann1.9.1 from github


https://github.com/mariusmuja/flann


4. install boost


sudo apt-get install libboost-all-dev


5. compile vtk-8.0.1


down sourcecode from its official website

then compile


6. install openni and openni2


7. other prerequisites libraries please seehttps://larrylisky.com/2016/11/03/point-cloud-library-on-ubuntu-16-04-lts/


8. the configuration of cmake-gui looks like:


note: I need kinfu part,so I tick BUILD_GPU option. BTW,my GPU doesn't support 2.0 ARCH,so in GUDA group,delete 2.0 2.1(2.0)


The C compiler identification is GNU 5.4.0

The CXX compiler identification is GNU 5.4.0

Check for working C compiler: /usr/bin/cc

Check for working C compiler: /usr/bin/cc -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Detecting C compile features

Detecting C compile features - done

Check for working CXX compiler: /usr/bin/c++

Check for working CXX compiler: /usr/bin/c++ -- works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

Detecting CXX compile features

Detecting CXX compile features - done

Using cpu native flags for SSE optimization: -march=native

-- GCC > 4.3 found,enabling -Wabi

Found OpenMP

Eigen found (include: /usr/include/eigen3,version: 3.2.92)

FLANN found (include: /usr/local/include,lib: optimized;/usr/local/lib/libflann_cpp.so;debug;/usr/local/lib/libflann_cpp.so)

OpenNI found (include: /usr/include/ni,lib: /usr/lib/libOpenNI.so)

OpenNI 2 found (include: /home/seamanj/OpenNI2/Packaging/Final/OpenNI-Linux-x64-2.2/Include,lib: /home/seamanj/OpenNI2/Packaging/Final/OpenNI-Linux-x64-2.2/Redist/libOpenNI2.so,redist: /home/seamanj/OpenNI2/Packaging/Final/OpenNI-Linux-x64-2.2/Redist)

Checking for module 'metslib'

No package 'metslib' found

QHULL found (include: /usr/local/include,lib: optimized;/usr/local/lib/libqhull_p.so;debug;/usr/local/lib/libqhull_p.so)

Found CUDA Toolkit v9.0

CUDA NVCC target flags: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_53,code=sm_53;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61

VTK_MAJOR_VERSION 8,rendering backend: OpenGL2

VTK found (include: /usr/local/include/vtk-8.0,lib: vtkCommonExecutionModel;vtkCommonCore;vtksys;vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkjpeg;vtkDICOMParser;vtkInteractionImage;vtkImagingColor;vtkImagingcore;vtkInteractionStyle;vtkFiltersExtraction;vtkFilterscore;vtkFiltersGeneral;vtkCommoncomputationalGeometry;vtkFilteRSStatistics;vtkImagingFourier;vtkalglib;vtkFilteRSSources;vtkRenderingcore;vtkCommonColor;vtkFiltersGeometry;vtkInteractionWidgets;vtkFiltersHybrid;vtkImagingSources;vtkFiltersModeling;vtkImagingGeneral;vtkImagingHybrid;vtkIOImage;vtkMetaio;vtkzlib;vtkpng;vtktiff;vtkRenderingAnnotation;vtkRenderingFreeType;vtkfreetype;vtkRenderingVolume;vtkIOXML;vtkIOCore;vtklz4;vtkIOXMLParser;vtkexpat;vtkIOParallelXML;vtkParallelCore;vtkIOLegacy;vtkFilteRSSMP;vtkjsoncpp;vtkIOExportOpenGL2;vtkIOExport;vtkRenderingContext2D;vtkRenderingGL2PSOpenGL2;vtkRenderingOpenGL2;vtkglew;vtkgl2ps;vtklibharu;vtkFiltersFlowPaths;vtkIOVideo;vtkIOMINC;vtkNetCDF;vtkhdf5_hl;vtkhdf5;vtkexoIIc;vtkRenderingImage;vtkIONetCDF;vtknetcdfcpp;vtkIOsql;vtksqlite;vtkFiltersAMR;vtkImagingStatistics;vtkDomainsChemistryOpenGL2;vtkDomainsChemistry;vtkRenderingContextOpenGL2;vtkChartscore;vtkinfovisCore;vtkIOExodus;vtkIOLSDyna;vtkFiltersProgrammable;vtkIOPLY;vtkIOEnSight;vtkIOMovie;vtkoggtheora;vtkIOTecplottable;vtkRenderingLabel;vtkFiltersverdict;verdict;vtkIOAMR;vtkFiltersTopology;vtkIOImport;vtkIOGeometry;vtkViewsContext2D;vtkViewscore;vtkRenderingVolumeOpenGL2;vtkImagingMath;vtkImagingMorphological;vtkFiltersImaging;vtkFilteRSSelection;vtkFiltersTexture;vtkproj4;vtklibxml2;vtkFiltersHyperTree;vtkIOinfovis;vtkViewsinfovis;vtkinfovisLayout;vtkRenderingLOD;vtkFiltersPoints;vtkFiltersGeneric;vtkIOParallel;vtkFiltersParallel;vtkGeoviscore;vtkImagingStencil;vtkFiltersParallelImaging

Could NOT find PCAP (missing: PCAP_LIBRARIES PCAP_INCLUDE_Dirs)

Boost version: 1.58.0

Found the following Boost libraries:

system

filesystem

thread

date_time

iostreams

chrono

atomic

regex

DOXYGEN_FOUND

HTML_HELP_COMPILER

Found CPack generators: DEB

The following subsystems will be built:

common

octree

kdtree

search

sample_consensus

filters

io

2d

features

registration

ml

recognition

keypoints

tracking

geometry

visualization

outofcore

stereo

gpu_containers

gpu_utils

gpu_octree

gpu_kinfu_large_scale

gpu_features

gpu_kinfu

gpu_segmentation

segmentation

surface

tools

people

The following subsystems will not be built:

gpu_tracking: disabled by default.

gpu_surface: disabled by default.

gpu_people: disabled by default.

simulation: disabled by default.

examples: Code examples are disabled by default.

global_tests: No reason

apps: No reason

Configuring done

Generating done


9. make -j${nproc}




done!

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...