MapServer编译
Posted gispathfinder
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MapServer编译相关的知识,希望对你有一定的参考价值。
-------------------------------------------------------------------------------------------
sudo apt install libfreetype6-dev sudo apt install libfribidi-dev sudo apt install libfcgi-dev sudo apt install libfcgi-bin sudo apt install swig sudo apt install cmake sudo apt install g++ sudo apt-get install libcairo-dev sudo apt-get install harfbuzz sudo apt-get install nodejs sudo apt install protobuf-c-compiler sudo apt install protobuf-compiler sudo apt install libprotobuf-c-dev sudo apt install libprotobuf-c1 sudo apt install libprotobuf-c1-dbg sudo apt install libprotobuf-dev sudo apt install libprotobuf-lite10 sudo apt install libprotobuf10 sudo apt install libprotoc-dev sudo apt install libprotoc10 sudo apt install libxslt1-dev sudo apt install libexempi-dev sudo apt install libcairo2-dev sudo apt install librsvg2-dev sudo apt install libmysqlclient-dev sudo apt install libpq-dev sudo apt install libcurl4-gnutls-dev sudo apt install libexempi-dev sudo apt install php-dev sudo apt install nodejs-dev sudo apt install libv8-dev
--------------------------------------------------------------------------------------------------------------
sudo cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_PREFIX_PATH="/usr/bin:/usr/lib:/usr/lib/postgresql:/usr/share/postgresql:/usr/local/lib:/usr/lib/python3:/usr/lib/python3.6:/usr/lib/nodejs:/usr/bin/nodejs:/usr/lib/php:/usr/lib/php/7.2:/usr/lib/php/20170718" -DWITH_PROJ=ON -DWITH_PROTOBUFC=ON -DWITH_KML=ON -DWITH_SOS=ON -DWITH_WMS=ON -DWITH_FRIBIDI=ON -DWITH_HARFBUZZ=ON -DWITH_ICONV=ON -DWITH_CAIRO=ON -DWITH_SVGCAIRO=OFF -DWITH_RSVG=OFF -DWITH_MYSQL=ON -DWITH_FCGI=ON -DWITH_GEOS=ON -DWITH_POSTGIS=ON -DWITH_GDAL=ON -DWITH_OGR=ON -DWITH_CLIENT_WMS=ON -DWITH_CLIENT_WFS=ON -DWITH_CURL=ON -DWITH_WFS=ON -DWITH_WCS=ON -DWITH_LIBXML2=ON -DWITH_THREAD_SAFETY=OFF -DWITH_GIF=ON -DWITH_PYTHON=ON -DWITH_PHP=ON -DWITH_PERL=OFF -DWITH_RUBY=OFF -DWITH_JAVA=OFF -DWITH_CSHARP=OFF -DWITH_POINT_Z_M=ON -DWITH_ORACLESPATIAL=OFF -DWITH_ORACLE_PLUGIN=OFF -DWITH_MSSQL2008=OFF -DWITH_SDE_PLUGIN=OFF -DWITH_SDE=OFF -DWITH_EXEMPI=ON -DWITH_XMLMAPFILE=ON -DWITH_V8=ON -DWITH_PIXMAN=ON -DBUILD_STATIC=OFF -DLINK_STATIC_LIBMAPSERVER=OFF -DWITH_APACHE_MODULE=OFF -DWITH_GENERIC_NINT=ON ../>../configure.out.txt
以上是关于MapServer编译的主要内容,如果未能解决你的问题,请参考以下文章
MapServer Tutorial——MapServer7.2.1教程学习(大纲)