PDA

View Full Version : .JPEG Images not shown when project compiled statically?



darpan
24th July 2006, 11:56
Hi,

I have a QIconView on a dialog. I am able to see the image of .jpeg,png,.bmp. But when i compile my project statically then i am not able to see the .jpeg images. What should i have to do? when i uses QImage::inputFormatList() to have an idea of supported imput formats then it gives following output
BMP
JPEG
PBM
PGM
PNG
PPM
XBM
XPM

What i should do when i compiling the project statically so that its app run on system where qt is not installed.

Thanks and Regards

jacek
24th July 2006, 12:41
In Qt3 you have to compile JPEG support into Qt library, in Qt4 you have to use static plugins (http://doc.trolltech.com/4.1/plugins-howto.html#static-plugins).

darpan
26th July 2006, 09:27
Hi,

I am using the qt3 and i compile the qt using following :-

./configure -qt-imgfmt-jpeg

But still i am not able to show the jpeg images in statically compiled app.

Thanks and Regards

jacek
26th July 2006, 13:23
Maybe it can't find libjpeg? Do you use the one that comes with Qt?