Build and Install PROJ on a new Ubuntu 22.04 LTS system

Build and Install PROJ on a new Ubuntu 22.04 LTS system

February 18, 2024
Linux, Map Projections

These are the steps I needed to install PROJ on a brand new installation of Ubuntu 22.04 LTS

Install tools #

  1. Get Git
sudo apt install git

To get GitHub access I just copied the .ssh folder from another machine.

  1. Get GCC compiler and related tools
sudo apt install build-essential
  1. Get CMAKE
sudo apt get cmake
  1. Get SQLITE
sudo apt install sqlite3

Get the software #

  1. Get PROJ software
git clone git@github.com:OSGeo/PROJ.git
  1. Get SQLITE3 headers and link library
sudo apt install libsqlite3-dev
  1. Get TIFF library
sudo apt install libtiff-dev
  1. Get CURL library
sudo apt install libcurl4-openssl-dev

Build PROJ #

cd PROJ/
cmake -S . -B build
cmake --build build
sudo cmake --build build --target install