From 801c5d65742007e7dd6b0f2235cfc4081bc13ac1 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 17 Jan 2017 10:38:40 -0800 Subject: [PATCH] Add instructions for upgrading g++ on Linux --- README.md | 11 +++++++++++ man/tippecanoe.1 | 15 ++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c3222df..0c5197e 100644 --- a/README.md +++ b/README.md @@ -279,6 +279,17 @@ and perhaps make install +Tippecanoe now requires features from the 2014 C++ standard. If your compiler is older than +that, you will need to install a newer one. On MacOS, updating to the lastest XCode should +get you a new enough version of `clang++`. On Linux, you should be able to upgrade `g++` with + +``` +sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test +sudo apt-get update -y +sudo apt-get install -y g++-5 +export CXX=g++-5 +``` + Examples ------ diff --git a/man/tippecanoe.1 b/man/tippecanoe.1 index bfbda4e..774617f 100644 --- a/man/tippecanoe.1 +++ b/man/tippecanoe.1 @@ -315,7 +315,7 @@ Linux: .PP .RS .nf -sudo apt\-get install libsqlite3\-dev zlib1g\-dev +sudo apt\-get install build\-essential libsqlite3\-dev zlib1g\-dev .fi .RE .PP @@ -334,6 +334,19 @@ and perhaps make install .fi .RE +.PP +Tippecanoe now requires features from the 2014 C++ standard. If your compiler is older than +that, you will need to install a newer one. On MacOS, updating to the lastest XCode should +get you a new enough version of \fB\fCclang++\fR\&. On Linux, you should be able to upgrade \fB\fCg++\fR with +.PP +.RS +.nf +sudo add\-apt\-repository \-y ppa:ubuntu\-toolchain\-r/test +sudo apt\-get update \-y +sudo apt\-get install \-y g++\-5 +export CXX=g++\-5 +.fi +.RE .SH Examples .PP Check out some examples of maps made with tippecanoe \[la]MADE_WITH.md\[ra]