상세 컨텐츠

본문 제목

[Ubuntu 20.04] Point Cloud Library (PCL) 설치 (1) CMake 설치

Developer

by South Korea life 2022. 4. 19. 14:06

본문

728x90
반응형

Ubuntu 20.04 환경에서 point cloud library(PCL)를 설치해봤습니다. PCL 설치를 위해서 우선 github page를 먼저 방문해봤습니다.
https://github.com/PointCloudLibrary/pcl

GitHub - PointCloudLibrary/pcl: Point Cloud Library (PCL)

Point Cloud Library (PCL). Contribute to PointCloudLibrary/pcl development by creating an account on GitHub.

github.com

 
PCL에 대한 설명과 여러 환경에서 설치를 위한 링크 페이지들이 적혀져있습니다. 여기에서 저는 compiling의 Linux 링크로 이동했습니다.

Point Cloud Library(PCL) description and compiling (source: https://github.com/PointCloudLibrary/pcl)

해당 링크를 들어가보면, 리눅스나 맥 환경에서 PCL을 compiling하는 방법에 대하여 나와있습니다.
https://pcl.readthedocs.io/projects/tutorials/en/latest/compiling_pcl_posix.html

Compiling PCL from source on POSIX compliant systems — Point Cloud Library 0.0 documentation

Though not a dependency per se, don’t forget that you also need the CMake build system, at least version 3.5.0. Additional help on how to use the CMake build system is available here. Please note that the following installation instructions are only vali

pcl.readthedocs.io

PCL compoling on Linux and MAC os (source: https://pcl.readthedocs.io/projects/tutorials/en/latest/compiling_pcl_posix.html)

PCL을 compiling하기 위해서, 우선 CMake build 시스템을 구성해놓으라고 적혀있습니다. 그래서 CMake를 설치하려고 하니, CMake 설치 전에 먼저 설치해야하는 패키지들이 있었습니다.
 
 

CMake 설치 전, 사전 설치 패키지들

  • wget
  • build-essential (make, gcc, gcc-c++ 등과 같은 기본 컴파일러를 포함하는 패키지)
  • openssl
  •  - openssl은 사이트에 접속하여, 파일을 다운로드받은 후 설치합니다.
  •    https://www.openssl.org/source/
# wget package install
sudo apt-get install wget

# build-essential install
sudo apt-get install build-essential

 
openssl 설치 관련

  1. openssl 사이트에 접속하여, 적합한 버전 파일 다운로드
  2. https://www.openssl.org/source/
  3. $ wget https://www.openssl.org/source/openssl-1.1.1n.tar.gz
  4. tar 압축파일 풀기
  5. $ tar xvfz openssl-1.1.1n.tar.gz
  6. 설치
  7. $ cd openssl-1.1.1n/
  8. $ ./config shared
  9. $ make
  10. $ make install

 

CMake 설치

https://cmake.org/download/

Download | CMake

Current development distribution Each night binaries are created as part of the testing process. Other than passing all of the tests in CMake, this version of CMake should not be expected to work in a production environment. It is being produced so that us

cmake.org

 
1. 공식 홈페이지 이동해서, 다운로드 링크 복사

2. wget 사용해서 파일 다운로드

wget https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1.tar.gz

 
3. 다운받은 파일 압축해제

tar -xvf cmake-3.19.6.tar.gz

 
4. CMake 빌드 및 설치

# CMake 폴더 내로 이동
cd cmake-3.19.6

./bootsrap --prefix=/usr

# build
make

# install
sudo make install

 
5. CMake 설치 및 버전 확인

cmake --version
728x90
반응형

관련글 더보기

댓글 영역