[Qgis-developer] SOLVED: Re: qt problem with JPEG on Ubuntu 12.04
Andreas Neumann
a.neumann at carto.net
Thu Dec 27 02:16:41 PST 2012
Hi,
I could fix the problem.
Somehow it had to do with my self-compiled gdal library. When i changed
from JPEG=internal to JPEG=external QGIS server suddenly worked again
with reading and writing JPEG data. Strange - but it helped. Maybe it
helps for someone who runs into similar problems ...
Thanks,
Andreas
On Wed, 26 Dec 2012 13:24:50 +0100, Andreas Neumann wrote:
> Hi again,
>
> Here is what I got as output from gdb:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff6393b7c in jpeg_CreateDecompress (cinfo=0xba4768,
> version=80, structsize=656) at libjpeg/jdapimin.c:37
> 37 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION,
> version);
>
>
> so it seems there is a bad JPEG library used by QGIS server?
>
>
> Any ideas what is wrong with my system?
>
> Thanks,
> Andreas
>
> On Tue, 25 Dec 2012 13:32:07 +0100, Marco Hugentobler wrote:
>> Hi Andreas
>>
>> I'm using 12.04 as well and it works for me with qgis_mapserv.fcgi
>> linked against libjpeg.so.8
>>
>> Could you check, if you have Qt's jpeg plugin installed
>> (/usr/lib/x86_64-linux-gnu/qt4/plugins/imageformats/libqjpeg.so) ?
>> It
>> is contained in the package libqtgui4 and linked against
>> libjpeg.so.8
>> too.
>>
>> Regards,
>> Marco
>>
>> On 25.12.2012 12:54, Andreas Neumann wrote:
>>> Hi,
>>>
>>> I upgraded my server from Ubuntu 10.04 LTS to 12.04 LTS. I
>>> recompiled QGIS server with the new qt and JPEG libraries and the
>>> compile and install went fine. However, since the upgrade, QGIS
>>> server cannot read and write JPEG files anymore. QGIS server crashes
>>> whenever the source (WMS) or the output involves a JPEG read or
>>> write. This is regardless of the input raster source (could be TIFF
>>> or WMS). PNG and PNG8bit output seems to work fine.
>>>
>>> I googled for qt and JPEG problems, but could not find much that
>>> sounded similar to my problem.
>>>
>>> Using ldd I saw that qgis_mapserv.fcgi is linked against
>>> libjpeg.so.8 - is this a problem? Should it be linked against
>>> libjpeg.so.62?
>>>
>>> Thank you if you have any idea about my problem.
>>>
>>> Andreas
>>>
--
--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
More information about the Qgis-developer
mailing list