QGIS2.18.0 's streamlined compilation

Source: Internet
Author: User

1, under the code, under the dependent library

-Expat

-fcgi

-Gdal

-Gsl-devel

-Iconv

-Openssl-devel

-Openssl-libs

-Pyqt4

-Qca-devel

-Qca-libs

-Qjson-devel

-Qjson-libs

-Qt4-devel

-Qwt5-devel-qt4

-SIP

-Spatialite

-Libspatialindex-devel

-Python-qscintilla

2, create a bat batch file, the following content modified according to the actual situation,

@echo off

Set vs100comntools= "C:\Program Files (x86) \microsoft Visual Studio 10.0\common7\tools\"

Call "C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86

Set include=%include%; " C:\Program Files (x86) \microsoft Sdks\windows\v7.0a\include "

Set lib=%lib%; " C:\Program Files (x86) \microsoft Sdks\windows\v7.0a\lib "

Set Osgeo4w_root=e:\opensource\qgis\sdk_lite

Call "%osgeo4w_root%\bin\o4w_env.bat"

Path%PATH%; E:\BaseTools\cmake-3.5.2-win32-x86\bin;

@set grass_prefix=e:\opensource\qgis\sdk_x86\apps\grass\grass-7.0.5

@set Include=%include%;%o Sgeo4w_root%\include

@set Lib=%lib%;%o Sgeo4w_root%\lib;%o Sgeo4w_root%\lib

@cmd

3, start VS2010 command line tool, run Cmake-gui, point configure, follow the prompts to modify the path of the dependent library.

4, remove Enable-tests,with-bindings,with-staged-plugins,with-grass,with-grass7,with-qwtpolar, Tick the with-internal-qwtpolar.

5, after many configure, generate get engineering documents.

QGIS2.18.0 's streamlined compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.