Skip to content

Compiling Mapnik 3.0.11 for Ubuntu 16.04

Andrew Newman edited this page Jun 21, 2017 · 2 revisions

C compiler:

  • sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  • sudo apt-get update -y
  • sudo apt-get install -y gcc-6 g++-6 clang-3.8
  • export CXX="clang++-3.8" && export CC="clang-3.8"

C Libraries:

  • sudo apt-get install -y python zlib1g-dev clang make pkg-config curl zip
  • sudo apt-get install -y libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev libboost-system-dev libboost-thread-dev
  • sudo apt-get install -y libicu-dev libxml2 libxml2-dev libfreetype6 libfreetype6-dev libjpeg-dev libltdl7 libltdl-dev libpng-dev libproj-dev libgeotiff-dev libtiff-dev
  • sudo apt-get install -y libcairo2 libcairo2-dev python-cairo python-cairo-dev ttf-unifont ttf-dejavu ttf-dejavu-core ttf-dejavu-extra libgdal1-dev python-gdal
  • sudo apt-get install -y scons

Lib Harfbuzz

Mapnik

Based on:

Clone this wiki locally