Skip to content

回复:命令行和 JSON-RPC ​

原始发布页

打开来源页面
查看 1 个交叉存档

来自 theymos 的引用,2010 年 2 月 24 日,03:07:37

来自 satoshi 的引用,2010 年 2 月 23 日,22:15:41

Linux 上需要安装 libgtk2.0-0

以后会移除这个要求吗?我不太想处理 GTK。

GTK 实际上需要“处理”多少?是不是只要“sudo apt-get install libgtk2.0-0”,让一些额外的库留在那里?GTK 不需要做任何事,只需在比特币启动时为链接提供库,令 gtk-init-check 因没有 GUI 而失败,然后就结束了。

这样我们就不用用 ifdefs 把所有东西弄得一团糟,也不用单独编译一个二进制文件来使用 wxBase,只是为了设法避免链接 GTK。

英文原文 ​

展开英文原文

Quote from: theymos on February 24, 2010, 03:07:37 AM

Quote from: satoshi on February 23, 2010, 10:15:41 PM

On Linux it needs libgtk2.0-0 installed

Will this requirement be removed sometime? I'd rather not have to deal with GTK.

How much "dealing with" does GTK actually require? Is it just a matter of "sudo apt-get install libgtk2.0-0" and having some extra libraries sitting around? GTK doesn't have to do anything, just be there for bitcoin to link to when it loads up, have the gtk-init-check call fail because no GUI present, then it's done.

It saves us butchering everything with ifdefs and a separate compile and binary to use wxBase just to try to avoid linking GTK.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。