[Qt-interest] Fwd: Can I build Qt with built-in jpeg support ?
Konstantin Tokarev
annulen at yandex.ru
Mon Feb 14 18:37:14 CET 2011
14.02.2011, 20:09, "Mark Brand" <mabrand at mabrand.nl>:
>>> At 2011-02-14,"liang jian"<jianliang79 at gmail.com>; wrote:
>>>> I mean Is it possible for me to build a Qt library (shared, not
>>>> static, and I build under windows) with jpeg image format support but
>>>> without a jpeg plugin ? I know png is built into qt library by
>>>> default, how can I build jpeg in that way?
>
> On 02/14/2011 04:36 PM, liang jian wrote:
>
>> hi, achellies, even when I configure qt with the "-qt-libjpeg"
>> option it will build jpeg into a plugin.
>> but I found a clue: there is a line in %QTDIR%\src\gui\image\image.pri :
>> contains(QT_CONFIG, jpeg):include($$PWD/jpeghandler.pri)
>> I guess if jpeg is defined in QT_CONFIG, jpeg will be build
>> directly into qt library. I also found that QT_CONFIG is defined in
>> %QTDIR%\mkspecs\qconfig.pri and jpeg is not defined in this file (but
>> png is defined). qconfig.pri is a file generated by configure.exe, the
>> question is how can I affect QT_CONFIG by the command options passed
>> to configure.exe, I currently have no idea, can somebody help? thanks
>
> You didn't mention which Qt version you are using.
>
> Before Qt 4.7.1 the image format handlers are plugins.
>
> Since Qt 4.7.1 the image format handlers can be built-in or plugin. The
> comment explains it here:
>
> http://qt.gitorious.org/qt/qt/commit/802dc404d1af9a08fdc23ef32e2fbc77f138f70a
>
> Summary: Plugin-in for shared. Built-in for static.
>
> There is still no configure switch to override the default, although I
> noticed that this has been added to the master branch.
Could you explain what is the practical difference between static plugin and "built-in"?
--
Regards,
Konstantin
More information about the Qt-interest-old
mailing list