Patchwork qt4-embedded - jpeg, gif, tiff support

login
register
mail settings
Submitter John Stirling
Date Feb. 24, 2014, 11:39 a.m.
Message ID <CABuzA3Odaup7ZC1EZPMLEULzjpDxrhRq6Oq97Ben9uLjCOKNEA@mail.gmail.com>
Download mbox | patch
Permalink /patch/67225/
State New
Headers show

Comments

John Stirling - Feb. 24, 2014, 11:39 a.m.
I've just noticed jpeg, gif, tiff are not working for me.

I am building qt via an 'inherit qt4e' line in our qt application.

Out target hardware is similar based on beaglebone.

I've tried -

                     ${QT_DBUS} \


but that doesn't seem to help

I get  this sort of error when I try to run it -
Error decoding: <file.jpg>: Unsupported image format

Any advice on getting this working ?

Thanks
John
Ross Burton - Feb. 24, 2014, 11:54 a.m.
On 24 February 2014 11:39, John Stirling <ap.john.stirling@gmail.com> wrote:
> I've just noticed jpeg, gif, tiff are not working for me.

I suspect you're not pulling in the image decoder packages into your
images: to reduce dependency creep these are split into separate
packages:

$ ls qt4-embedded-plugin-imageformat*
qt4-embedded-plugin-imageformat-gif_4.8.5-r0_i586.ipk
qt4-embedded-plugin-imageformat-ico_4.8.5-r0_i586.ipk
qt4-embedded-plugin-imageformat-jpeg_4.8.5-r0_i586.ipk
qt4-embedded-plugin-imageformat-mng_4.8.5-r0_i586.ipk
qt4-embedded-plugin-imageformat-svg_4.8.5-r0_i586.ipk
qt4-embedded-plugin-imageformat-tga_4.8.5-r0_i586.ipk
qt4-embedded-plugin-imageformat-tiff_4.8.5-r0_i586.ipk

Ross
John Stirling - Feb. 24, 2014, 12:43 p.m.
Thanks. That works now (tested jpeg, gif, tif).

Presume I probably don't need the change to qt4.inc I mentioned earlier ?
(rebuild takes a while)






On 24 February 2014 11:54, Burton, Ross <ross.burton@intel.com> wrote:

> On 24 February 2014 11:39, John Stirling <ap.john.stirling@gmail.com>
> wrote:
> > I've just noticed jpeg, gif, tiff are not working for me.
>
> I suspect you're not pulling in the image decoder packages into your
> images: to reduce dependency creep these are split into separate
> packages:
>
> $ ls qt4-embedded-plugin-imageformat*
> qt4-embedded-plugin-imageformat-gif_4.8.5-r0_i586.ipk
> qt4-embedded-plugin-imageformat-ico_4.8.5-r0_i586.ipk
> qt4-embedded-plugin-imageformat-jpeg_4.8.5-r0_i586.ipk
> qt4-embedded-plugin-imageformat-mng_4.8.5-r0_i586.ipk
> qt4-embedded-plugin-imageformat-svg_4.8.5-r0_i586.ipk
> qt4-embedded-plugin-imageformat-tga_4.8.5-r0_i586.ipk
> qt4-embedded-plugin-imageformat-tiff_4.8.5-r0_i586.ipk
>
> Ross
>
Paul Eggleton - Feb. 24, 2014, 1:09 p.m.
On Monday 24 February 2014 12:43:40 John Stirling wrote:
> Thanks. That works now (tested jpeg, gif, tif).
> 
> Presume I probably don't need the change to qt4.inc I mentioned earlier ?
> (rebuild takes a while)

You almost certainly don't want Qt's internal shipped version of these 
libraries. The defaults (i.e. use the "system" libraries) should be fine.

Cheers,
Paul
John Stirling - Feb. 25, 2014, 3:36 p.m.
thanks


On 24 February 2014 13:09, Paul Eggleton <paul.eggleton@linux.intel.com>wrote:

> On Monday 24 February 2014 12:43:40 John Stirling wrote:
> > Thanks. That works now (tested jpeg, gif, tif).
> >
> > Presume I probably don't need the change to qt4.inc I mentioned earlier ?
> > (rebuild takes a while)
>
> You almost certainly don't want Qt's internal shipped version of these
> libraries. The defaults (i.e. use the "system" libraries) should be fine.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>

Patch

--- a/meta/recipes-qt/qt4/qt4.inc
+++ b/meta/recipes-qt/qt4/qt4.inc
@@ -22,7 +22,7 @@  QT_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES',
'pulseaudio', '-pulseaudio

 QT_CONFIG_FLAGS += "-release -no-cups -reduce-relocations \
                     -shared -no-nas-sound -no-nis \
-                    -system-libjpeg -system-libpng -system-libtiff
-system-zlib \
+                    -qt-libjpeg -system-libpng -system-libtiff
-system-zlib \
                     -no-pch -stl -glib \
                     -no-rpath -silent \