[Qt-interest] libiconv is used on Windows after all?
Nikos Chantziaras
realnc at arcor.de
Mon Jun 27 21:54:50 CEST 2011
For anyone coming across this and looking for the solution, to get this
working on a Qt built with "-static -no-iconv", this is needed in the
*.pro file:
QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs
And this anywhere in a source file:
#include <QtPlugin>
Q_IMPORT_PLUGIN(qcncodecs)
Q_IMPORT_PLUGIN(qjpcodecs)
Q_IMPORT_PLUGIN(qtwcodecs)
Q_IMPORT_PLUGIN(qkrcodecs)
On 06/21/2011 03:05 PM, Constantin Makshin wrote:
> No, it's really not necessary.
>
> These functions look like they're from text codec plugins. May be you're trying to build an application using static version of Qt and forgot to properly configure/link used plugins?
>
> On Tuesday, June 21, 2011 09:59:16 AM Nikos Chantziaras wrote:
>> According to a comment by Thiago:
>>
>> http://lists.qt.nokia.com/pipermail/qt-interest/2010-August/026692.html
>>
>> "libiconv is not used on Windows." So I tried building Qt without
>> libiconv. It builds fine. However, trying to build a Qt application
>> results in:
>>
>> undefined reference to `QGb18030Codec::QGb18030Codec()'
>> undefined reference to `QGbkCodec::QGbkCodec()'
>> undefined reference to `QGb2312Codec::QGb2312Codec()'
>> undefined reference to `QEucJpCodec::QEucJpCodec()'
>> [and many more]
>>
>> So I suppose for QTextCodec to work, libiconv is needed after all?
More information about the Qt-interest-old
mailing list