lunedì 13 novembre 2017

Compile qgis-server on Debian Stretch

I have some trouble tocompile and using qgis-server on a Debian Streetch.
Try to send a email to QGIS ML, But after two email send I discovered that my subscription was previosly disabled because I no send an email for more than 2 week.
Gasp !.

To boring to subscribe newly and resend all my emails.
So I decide to save my old email in this post for who could be interested to know it.
----------

email #1

Hi,
I'm compiling the qgis-server 2.14 version all seem ok.
The GetMap will work corretly using jeg format,
but when try to use the png ,
I have this error from Web server Logs.

[Fri Nov 10 12:48:06.824931 2017] [core:error] [pid 5760:tid 140522119190272] [c
lient 159.213.4.51:52153] End of script output before headers: qgis_mapserv.fcgi
libpng warning: Application was compiled with png.h from libpng-1.6.26
libpng warning: Application  is  running with png.c from libpng-1.2.56
libpng error: Incompatible libpng version in application and library
[Fri Nov 10 12:48:08.056674 2017] [core:error] [pid 5760:tid 140522110797568] [c
lient 159.213.4.51:52154] End of script output before headers: qgis_mapserv.fcgi
Any thought ?

---------
emal #2


After some tests.
It seem the trouble was done to the gdal tools.
Infact the Debian stretch version use libpng1.6
instead the gdal (i compile from source) come with an internal libpng 1.2.56.
When QGIS (the cmake) explore to find the dependencies it find the libpng from debian stretch (libpng-1.6.26) so the qgis is compile using it.
But when the qgis (the cgi executable) is running it is using instead the libpng-1.2.56 coming from the compile of gdal.
I'm not able to say toqgis to use the libpng1.2.56 of gdal when compile.
So an alternate solution I could try is to try to compile the gdal uing instead of its internal libpng1.2.56 , the libpng-1.6.26 of debian .
But I'm not sure it is cmpiatible with gdal.
So I try to ask to the gdal ML.
Regards,
A.

 ---

After this, I send another email to the gdal ML.
This is the link for it:

https://lists.osgeo.org/pipermail/gdal-dev/2017-November/047696.html
---