原始文献 / 论坛帖 / Re: Command Line and JSON-RPC
Re: Command Line and JSON-RPC
Bitcointalk · 2010-02-24 06:17:23 UTC
引用 theymos(February 24, 2010, 03:07:37 AM)(https://bitcointalk.org/index.php?topic=63.msg467#msg467):
> 引用 satoshi(February 23, 2010, 10:15:41 PM)(https://bitcointalk.org/index.php?topic=63.msg452#msg452):
> > 在 Linux 上需要安装 libgtk2.0-0
> >
> 这个依赖以后会去掉吗?我实在不想跟 GTK 打交道。
>
GTK 到底需要多少"打交道"?是不是只要 "sudo apt-get install libgtk2.0-0",让一些额外的库待在那里就行?GTK 什么都不用做,只要在 bitcoin 加载时能链接到它就行,没有 GUI 时 gtk-init-check 调用失败,然后就完事了。
这样可以省得我们用一堆 ifdef 把代码切得七零八落,还要单独编译、单独出二进制,就为了用 wxBase 来避免链接 GTK。
英文原文
Quote from: theymos on February 24, 2010, 03:07:37 AM(https://bitcointalk.org/index.php?topic=63.msg467#msg467):
> Quote from: satoshi on February 23, 2010, 10:15:41 PM(https://bitcointalk.org/index.php?topic=63.msg452#msg452):
> > 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.
