mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Unneeded Qt dependency


From: Nikos Chantziaras
Subject: Re: [Mingw-cross-env-list] Unneeded Qt dependency
Date: Tue, 28 Jun 2011 21:08:24 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110624 Thunderbird/3.1.11

On 06/28/2011 07:54 PM, René Berber wrote:
Nikos Chantziaras wrote:

    #include<QtPlugin>
    Q_IMPORT_PLUGIN(qcncodecs)
    Q_IMPORT_PLUGIN(qjpcodecs)
    Q_IMPORT_PLUGIN(qtwcodecs)
    Q_IMPORT_PLUGIN(qkrcodecs)

Hold on, plugins only work if your application uses dynamic linking but
with mingw-cross we are (usually) building static linked applications or
to be precise dynamic linked system (Windows) libraries, static for
everything else.  I know I can change things to make full dynamic
linking work for Qt (I've done it before).

No, the above is specifically for static Qt builds. It won't work with a shared Qt. See:

http://doc.qt.nokia.com/latest/plugins-howto.html#static-plugins

This is a mechanism for including static plugins in static builds, because a static Qt will not load plugins at runtime.


What version of mingw-cross shows the problem?  I haven't seen any
problem with translated texts in a static linked application built about
6 weeks ago.

2.21. But even if the bug was application specific (meaning I screwed up), libiconv is not used on Windows; it is used only to detect the current Unix locale. So "-no-iconv" makes sense regardless.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]