測試了好多個版本,各種編譯不通過,主要在cmake報錯時解決不掉。
現在記錄一下1.8.1的安裝流程。
設定環境變數 ,之後一定要重啟
pcl_root
c:\program files\pcl 1.8.1
path
;%pcl_root%\bin
;%openni2_redist64% (或%openni2_redist%)
cmake主要參考
最基本的 cmakelists.txt for pcl
cmake_minimum_required( version 2.8 )
# create project
project( solution )
add_executable( project main.cpp )
set_property( directory property vs_startup_project "project" )
# find packages
find_package( pcl 1.8 required )
if( pcl_found )
# additional include directories
# [c/c++]>[general]>[additional include directories]
include_directories( $ )
# preprocessor definitions
# [c/c++]>[preprocessor]>[preprocessor definitions]
add_definitions( $ )
#add_definitions( -dpcl_no_precompile )
# additional library directories
# [linker]>[general]>[additional library directories]
link_directories( $ )
# additional dependencies
# [linker]>[input]>[additional dependencies]
target_link_libraries( project $ )
endif()
cmake編譯時主要會報找不到路徑的錯,手動更正和檢查環境變數 pcl環境搭建(最新)
命令安裝 sudo add apt repository ppa v launchpad jochen sprickerhof de pcl sudo apt get update sudo apt get install libpcl dev 16版本以上用這條 sudo apt get inst...
LAMP環境搭建 php環境搭建
yum groupinstall development tools y yum groupinstall desktop platform development y yum install cmake pcre devel ncurses devel openssl devel libcurl ...
環境搭建 二 Python環境搭建
工欲善其事,必先利其器 要想玩轉python,我們首先需要搭建一套可使用且方便的環境。對於初學者,笨飯糰建議使用 anaconda anaconda 簡介anaconda是python的乙個科學計算發行版,內建了數百個python經常會使用的庫,包括做機器學習或資料探勘的庫。anaconda提供了乙...