[Qgis-developer] Compiling QGIS with gdal2
Matthias Kuhn
matthias at opengis.ch
Tue Jan 10 08:17:47 PST 2017
Hi Matteo,
1. Find the correct gdal-config (one that prints 2.1.0 if you call
gdal-config --version).
2. Remove all the lines that contain GDAL-specific options in CMakeCache.txt
3. Call cmake -DGDAL_CONFIG=your/path/to/gdal-config ..
4. make
With this workflow, all configuration options should be extracted from
gdal-config without any further manual intervention.
Matthias
On 01/10/2017 04:57 PM, matteo wrote:
> HI guys,
> related to the mail of this morning [0] and thanks to the hint of Nyall,
> I'm trying to compile QGIS with gdal2
>
> I'm on a Mint Machine where the default gdal version is 1.11.3. So I
> downloaded and compiled from source gdal 2.1 [1]. In fact I get:
>
> matteo at matteo-computer ~ $ gdal-config --version
> 2.1.0
>
>
> Now I'm trying to force the cmake config to read this gdal version, that
> is I've changed
>
> GDAL_LIBRARY = /usr/lib/libgdal.so.20.1.0
>
> leaving all the other gdal options in the ccmake untouched.
>
> But I always get the same error during the make process, so I think I
> have to change other config parameters in ccmake.
>
>
> Anybody has some hints?
>
> Thanks to all!
>
> Matteo
>
>
> [0]
> https://lists.osgeo.org/pipermail/qgis-developer/2017-January/046550.html
> [1] http://download.osgeo.org/gdal/2.1.0/
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
More information about the Qgis-developer
mailing list