如何分发(开源)Vala 项目?
Vala 是唯一可以编译为 C 等高级语言的语言之一,它让我很感兴趣。我一直想用它开始一个小项目,但我一直想知道如何分发它。
事实是,它编译为 C 代码(我想是 C99)。
- 我可以分发 C 代码吗 瓦拉代码?
- 如果我这样做,C 代码是否与所有平台兼容?
- 或者,例如在使用套接字时,它是否自动包含适当的内容(对于 Windows 为 winsock.h)?
One of the only languages that compiles to a high level language such as C, Vala has interested me for quite a bit. I've been wanting to start a small project with it, but I've been wondering how I would distribute it.
The fact is, that it compiles to C code (C99 I suppose).
- Can I distribute the C code instead
of the Vala code? - If I do, is the C code compatible with all platforms?
- Or does it, for example when using sockets, include the appropriate stuff (winsock.h for Windows) automatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
来自 irc 的 Vala 开发人员,irc.gnome.org 上的#vala:
From a Vala developer in irc, #vala on irc.gnome.org:
Automake,从版本 1.10 或 1.11 开始,具有 Vala 支持。
Automake, as of version 1.10 or 1.11 has Vala support.
你谷歌了吗?你尝试过吗? Valal 主页有什么要说的吗?你在Vala论坛上问过吗? SO 上只有 7 个标记为 Vala 的问题(其中之一是“Vala 会生存吗?”),所以这可能不是提问的最佳地点。
为什么不直接将您的vala编译为C,然后通过C编译器运行它,最好是在另一台PC上运行(为了进行彻底的测试,使第二台PC成为从未进行过任何开发工作的PC,并专门为您的测试安装一个C编译器) 。
当然,这可能对某个程序有所证明,但不适用于所有程序。也许询问邮件列表(http://mail.gnome.org/mailman/listinfo/ vala-list),还是开发者? Jürg Billeter - j at bitron dot ch Raffaele Sandrini - rasa at gmx dot ch
问题,解释一下,是“一根绳子有多长”,最好的答案是“吮吸它,看看”,警告是 YMMV ; -)g
Did you google? did you try it out? Does the Valal home page have anything to say? Did you ask on Vala forums? There are only 7 questions tagged Vala on SO (and one of those is "will Vala survive?"), so this might not be the best place to ask.
Why not just compile your vala to C and then run it through a C compiler, preferably on a different PC (for a thorough test, make that 2nd PC one which has never one any development work and install a C compiler specially for your test).
Of course that might prove something for a program, but not for all programs. Perhaps ask the mailing list (http://mail.gnome.org/mailman/listinfo/vala-list), or the devlopers? Jürg Billeter - j at bitron dot ch Raffaele Sandrini - rasa at gmx dot ch
The question, paraphrased, is "how long is a piece of string", the best answer is "suck it, and see", and the caveat is YMMV ;-)g