参考链接:https://blog.csdn.net/lilywri823/article/details/86583269
1.先安装各种依赖
sudo apt-get update
sudo apt-get install git build-essential linux-libc-dev
sudo apt-get install cmake cmake-gui
sudo apt-get install libusb-1.0-0-dev libusb-dev libudev-dev
sudo apt-get install mpi-default-dev openmpi-bin openmpi-common
sudo apt-get install libflann1.8 libflann-dev
sudo apt-get install libeigen3-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libqhull* libgtest-dev
sudo apt-get install freeglut3-dev pkg-config
sudo apt-get install libxmu-dev libxi-dev
sudo apt-get install mono-complete
sudo apt-get install libopenni-dev
sudo apt-get install libopenni2-dev
sudo apt-get install libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-dev libxmuu-dev
sudo apt-get install build-essential libgl1-mesa-dev libglu1-mesa-dev
sudo apt-get install cmake cmake-gui
选择了VTK-7.1.1.tar.gz,下载完成后解压缩到你的文件安装目录。在文件目录下打开cmd窗口,输入cmake-gui打开cmake图形界面:
配置“where is the source code”的路径为vtk-7.1.1所在的目录
在vtk-7.1.1目录新建build文件夹,配置“where to build the binaries”为build文件夹
点击Configure,配置完成后提示configure done
选择“VTK_GROUP_QT”再次点击configure
配置完成后点击generate按钮,会在build文件夹下生成工程文件
make
sudo make install
完成vtk库的安装.
去pcl官方github下载需要的pcl版本放到主目录下
git clone https://github.com/PointCloudLibrary/pcl.git
在文件目录下打开cmd窗口,输入cmake-gui打开cmake图形界面:
配置“where is the source code”的路径为pcl所在的目录
在pcl目录新建build文件夹,配置“where to build the binaries”为build文件夹
点击Configure,配置完成后提示configure done
勾选需要安装的可选项,再次点击configure
配置完成后点击generate按钮,会在build文件夹下生成工程文件
接着
make
sudo make install
至此安装完毕。
In detail:
echo $PATH
and look for anaconda lib directoryPATH=[MODIFIED_PATH]
where [MODIFIED_PATH]
is the result from previous stepecho $PATH
again to see that anaconda directory has been removedNow the process uses system libraries, not the anaconda ones and compilation succeeds.