Qt 有类似的替代品吗?
我喜欢 Qt 的想法,但是我不仅将它用于开源开发,还使用它进行闭源开发。这不是一个真正的问题,因为我只是根据 LGPL 进行许可并分发所需的 DLL。不幸的是,我遇到了一个问题。
编译后的静态链接可执行文件大小为 4.36 MB。不太破旧。
编译后的动态链接可执行文件大小为 250 KB,但安装时我还必须在 DLL 文件中包含近 35 MB。这真的很俗气,无论我怎么看,我都无法证明尺寸使用比是合理的。这一点,我根本买不起商业许可证。谈论哄抬价格的初创开发商。
无论如何,你看到我的问题了。我的程序只执行一项功能。 35 MB 太大了。不幸的是,我听说过关于 WxWidgets 维护得多么糟糕的恐怖故事,但考虑到我的情况,我担心我将被迫使用它。谁能给我推荐一个几乎同样强大但不会导致 LGPL 编译的 Qt 可执行文件带来的膨胀的替代方案?谢谢你!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为什么不将您需要的所有功能包装在一个单独的静态编译的 dll 中,并与其动态链接您的程序。您可以发布静态编译的 dll 的源代码,因为它只是一个包装器。总体而言,您仍将遵守 LGPL。
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.
http://www.fltk.org/
看看这个:)它更简单,开源,并且可能足以满足您的需求。
http://www.fltk.org/
Have a look at that :) It's simpler, open source and might do enough for your needs.
我可以建议的一件事是尝试 UPX (或类似的)打包动态 DLL 以减小其大小,具体取决于根据 DLL 包含的代码量和数据/资源量,您可以获得非常令人印象深刻的结果。
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.