-
Notifications
You must be signed in to change notification settings - Fork 3
Compiling Mapnik 3.0.11 for Ubuntu 16.04
Andrew Newman edited this page Jun 21, 2017
·
2 revisions
- 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"
- 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
- wget http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.34.tar.bz2
- tar xjf harfbuzz-0.9.34.tar.bz2
- cd harfbuzz-0.9.34
- ./configure && make && sudo make install
- sudo ldconfig
- git clone https://github.com/mapnik/mapnik.git
- cd mapnik/
- git checkout tags/v3.0.11
- git submodule update --init
- scons configure
- scons
- sudo scons install
Based on: