[Qt-interest] 答复: messy code chinese
Ross Bencina
rossb-lists at audiomulch.com
Fri Apr 15 08:06:42 CEST 2011
Hi Ken
Sorry for not replying on list before.
Somehow you need to static-link the codec plugin, either into a recompiled version of your Qt libs, or in your app. There is some info here:
http://doc.qt.nokia.com/latest/plugins-howto.html#static-plugins
I think probably you can just link the static codec plugin with your app and still use standard dynamic Qt DLLs. I have not done this for a text codec so I don't have clear instructions for you.
This is a little bit non-standard so you will need to learn how to build Qt libs...
Ross.
----- Original Message -----
From: pengliang(彭亮)
To: Ross Bencina
Sent: Friday, April 15, 2011 3:22 PM
Subject: 答复: [Qt-interest] 答复: messy code chinese
Hi Ross
I think it is very troublesome that put them in app directory, I prefer to compile statically. I have never compiled qt application statically.
Do you know how to compile statically, maybe it very cost time.
Thanks
Ken
------------------------------------------------------------------------------
发件人: Ross Bencina [mailto:rossb-lists at audiomulch.com]
发送时间: 2011年4月15日 12:24
收件人: pengliang(彭亮)
主题: Re: [Qt-interest] 答复: messy code chinese
Hi Ken
> I have solved it with that I copied ./plugins/codecs/ to the directory of application.
> But I don’t know whether there is other better approach.
How are you distributing Qt DLLs? If you put them in your app directory with the app, then the way you have done it is a good way. Another way would be to compile Qt with the required codecs statically linked (sorry, don't know the configure flags off the top of my head but I'm pretty sure you could do it).
On the other hand, if you ship Qt separately from your application then you just need to make sure the QTDIR environment variable is set correctly so the app can find the plugins.
Ross.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110415/9069f3fa/attachment.html
More information about the Qt-interest-old
mailing list