Is there any comparable alternative to Qt?

烂漫一生 提交于 2019-12-09 09:56:59

问题


I love the idea of Qt, however I use it not only for open source but closed source development. This isn't a real problem because I just license under the LGPL and distribute the DLLs needed. I've run into a problem though unfortunately.

The compiled statically linked executable is 4.36 MB. Not too shabby.

The compiled dynamically linked executable is 250 KB, however I also must include almost 35 MB in DLL files with the installation. This is REALLY tacky and no matter how I look at it I cannot justify the size-use ratio. This, and I simply cannot afford a commercial license. Talk about price gouging start up developers.

Anyway, you see my problem. My program performs only one function. 35 MB is too large. Unfortunately I've heard horror stories about how poorly maintained WxWidgets is but given my situation I'm afraid I'll be forced to use it. Can anyone recommend me a alternative that is nearly as powerful but won't result in the bloat an LGPL compiled Qt executable brings? Thank you!


回答1:


Why don't you wrap all the functionality you need in a separate statically compiled dll and link your program dynamically with that. You can release the source code of the statically compiled dll since it's just a wrapper. And overall you'll still comply with LGPL.




回答2:


One thing I can suggest is to try UPX (or similar) packing the dynamic DLL's to get their size down, depending on how much code vs data/resources the DLL's contain you can get pretty impressive results.




回答3:


http://www.fltk.org/ Have a look at that :) It's simpler, open source and might do enough for your needs.



来源:https://stackoverflow.com/questions/6119816/is-there-any-comparable-alternative-to-qt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!