Bitcointalk · Command Line and JSON-RPC

中本聪,2010 年 2 月 24 日

SN-0372 已核对来源,附原文与上下文。

阅读语言
中文译文

这个依赖以后会去掉吗?我宁愿不跟 GTK 打交道。

GTK 实际需要多少"打交道"?不就是 "sudo apt-get install libgtk2.0-0" 装上、多几个闲置的库文件吗?GTK 什么都不用干,只要在 bitcoin 加载时供它链接、让 gtk-init-check 调用因无 GUI 而失败,就完事了。

这省得我们用 ifdef 把一切切得稀碎、再为 wxBase 单独编译一个二进制,只为绕开链接 GTK。

ORIGINAL · 英文原文
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.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0372