Why not recommended ???
I hear first time about it.
Yes, there are some differences in static linking, for example with plugins. You have to static link Qt plugins too (add plugins += to .pro file and init plugins in code). Other "bad thing" is that you'll be unable to reuse Qt libs: for example you have two Qt based applications, In case with shared linking you'll got that Qt libs will be loaded in memory only once. It's nevermind how much applications use shared library (Qt libs in our case), this lib will load only once. But with static linking you'll got another appearance. Every Application will load it's own Qt libs. This case got overhead. But If in linux there exists software repositories , and system can guaranty to you that there are exists Qt libs. In windows and windows mobile there no such way. In any case you have to provide Qt libs with your application during deploy. That's why static linking is better chois for deploying on Windows Mobile, I think.
In other cases there are no differences.

As for qconfig and "-config" flag to use custom configuration is other way, but using this way you need to clear understand what to leave and what to exclude from Qt. During Static linking all this things made for you by compiler (excluded all unused code during final linking ).

Yes I made this before, and didn't find any problems. Also you'll got faster loading speed, using static linking.




Hi Rudenko Eugene,

I heared of creating static link is not recommended.
Do you have done it before?

————
Thanks,
David

2009/11/16 Rudenko Eugene <[email protected]>

You can link with Qt libraries using static linking, As I now MS
compiler  have better optimization for static linking then gcc.
I think you'll got result size under 10Mb at all, with static linking.
You can try.
Also you can find Arora browser as example for building browser using
Qt.

Rudenko Eugene.

> Hi all,
>
> I wanna create a browser for Windows Mobile based on Qt4.5.
> Is there any method can be used to make the .dll files smaller?
> For example: QtGui4 is 6.82M; QtCore4 is 2.02M; QtWebKit4 is 9.96M.
>
> --
> Thanks!
> David
> _______________________________________________
> Qt-embedded-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-embedded-interest

_______________________________________________
Qt-embedded-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-embedded-interest



_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to