본문 바로가기

C & C++

[C++] proj 9.5.0 installation

Download

sudo apt update
sudo apt install -y build-essential cmake wget curl libtiff-dev libcurl4-gnutls-dev sqlite3

Build

wget https://download.osgeo.org/proj/proj-9.5.0.tar.gz
tar -xvf proj-9.5.0.tar.gz
cd proj-9.5.0
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
make -j$(nproc)
sudo make install

Check

proj
# Rel. 9.5.0, September 15th, 2024
usage: proj [-bdeEfiIlmorsStTvVwW [args]] [+opt[=arg] ...] [file ...]