2010-06-18

Build Qt with support of png, jpeg, tiff

Strongly recommanded to build Qt with his own library of png, jpeg, tiff by
./configure -qt-libtiff -qt-libpng -qt-libjpeg


Actually, these options are not default (marked with +). See "configure Options (Qt)": 


        -no-zlib ........... Do not compile in ZLIB support. Implies -no-libpng.
        -qt-zlib ........... Use the zlib bundled with Qt.
     +  -system-zlib ....... Use zlib from the operating system.
                             See http://www.gzip.org/zlib

        -no-gif ............ Do not compile the plugin for GIF reading support.
     *  -qt-gif ............ Compile the plugin for GIF reading support.
                             See also src/plugins/imageformats/gif/qgifhandler.h

        -no-libtiff ........ Do not compile the plugin for TIFF support.
        -qt-libtiff ........ Use the libtiff bundled with Qt.
     +  -system-libtiff .... Use libtiff from the operating system.
                             See http://www.libtiff.org

        -no-libpng ......... Do not compile in PNG support.
        -qt-libpng ......... Use the libpng bundled with Qt.
     +  -system-libpng ..... Use libpng from the operating system.
                             See http://www.libpng.org/pub/png

        -no-libmng ......... Do not compile the plugin for MNG support.
        -qt-libmng ......... Use the libmng bundled with Qt.
     +  -system-libmng ..... Use libmng from the operating system.
                             See http://www.libmng.com

        -no-libjpeg ........ Do not compile the plugin for JPEG support.
        -qt-libjpeg ........ Use the libjpeg bundled with Qt.
     +  -system-libjpeg .... Use libjpeg from the operating system.
                             See http://www.ijg.org

        -no-openssl ........ Do not compile support for OpenSSL.
     +  -openssl ........... Use OpenSSL from the operating system.

If Qt is not built with these options. sometime images cannot be correctly displayed. See this QTBUG-11453.

No comments:

Post a Comment