linux系统下mapnik地图渲染源码安装
参考官方https://github.com/mapnik/mapnik/wiki/UbuntuInstallation1.安装之前执行以下命令sudo apt-get updatesudo apt-get upgrade2、源码安装更新过期clang# you might have to update your outdated clangsudo add-apt-repository -y p
·
参考官方https://github.com/mapnik/mapnik/wiki/UbuntuInstallation
1.安装之前执行以下命令
sudo apt-get update
sudo apt-get upgrade
2、源码安装
- 更新过期clang
# you might have to update your outdated clang
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"
- 安装mapnik
# install mapnik
git clone https://github.com/mapnik/mapnik mapnik --depth 10
cd mapnik
git submodule update --init
sudo apt-get install python zlib1g-dev clang make pkg-config curl
source bootstrap.sh
./configure CUSTOM_CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" CXX=${CXX} CC=${CC}
- 编译
make
- 测试
make test
- 安装
`sudo make install`
更多推荐
已为社区贡献1条内容
所有评论(0)