如何编写跨平台程序? [英] How to write a cross-platform program?
问题描述
问候,
我想编写一个带有GUI的小型跨平台实用程序。我应该坚持使用哪种语言/ GUI库?
I want to write a small cross-platform utility program with GUI in it. What language/GUI-library should I stick to? Is it possible whatsoever?
这将是一个小程序,所以我不想让人们下载JVM或.NET Framework。
This is gonna be a small program, so I don't want to make people download JVM or .NET Framework. Is it possible to develop it natively?
更新1。
本地是指结束结果将是没有中间层(例如Java虚拟机或.NET公共语言运行时)的本机代码
By "natively" I mean that the end result will be native code without intermediate layers like Java Virtual Machine or .NET Common Language Runtime
更新2。
最好使用免费解决方案;)
A FREE solution is preferable ;)
推荐答案
如果您了解C或C ++,我能想到的第一个跨平台GUI框架是:
If you know C or C++ the first cross platform GUI framework I can think of are:
- QT (C++, proprietary but free with the LGPL licensing)
- wxWidgets (C++, the most complete and stable but also huge)
- FLTK (C++)
- FOX (C++)
- IUP (C, simpler and cleaner than the ones above)
如果您知道Pascal,可以尝试 freepascal + Lazarus 。不过,我从未使用过它。
If you know Pascal, you can try freepascal+Lazarus. I've never used it, though.
这篇关于如何编写跨平台程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!