Bitcointalk

Gentoo Linux Ebuild

中本聪 · 2010 年 8 月 27 日

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

阅读语言

试试 -datadir=

Try -datadir=

上次我试 $(shell /usr/bin/wx-config) 时,立刻有人为它引发的构建问题叫起来。当时没有时间调查。

Last time I tried $(shell /usr/bin/wx-config), there was immediate hollering about build problems with it. There wasn't time to investigate at the time.

$(shell /usr/bin/wx-config) 的一个问题是,它会抓到碰巧装在系统上的任何版本(wx 2.8)、任何配置(非 UTF-8)的 wxWidgets。-lwx_gtk2ud-2.9 只匹配正确的配置。如果 wxWidgets 是用错误配置构建的,它就会失败。

One problem with $(shell /usr/bin/wx-config) is it will pick up any version (wx 2.8 ) and any configuration (non-UTF-8 ) of wxWidgets that happens to be there. -lwx_gtk2ud-2.9 only matches the right configuration. It fails if wxWidgets was built with the wrong configuration.

引用 · 发言者未注明

我记得在 freenode 的 #wxwidgets 聊天时,那边的开发者也搞不懂为什么要用它。

Iirc, chatting in #wxwidgets on freenode, the devs there were baffled why that was used.

中本聪回应

他们有说为什么搞不懂吗?

Did they say why they were baffled?

引用 · 发言者未注明

这是因为在我的系统上路径是 /usr/include/wx-2.9/wx/wx.h

This is because on my system the path is /usr/include/wx-2.9/wx/wx.h

中本聪回应

为什么在那儿?是操作系统带的,还是你自己构建的?如果你构建的,我并不明白它为什么会把自己装到别的地方。

Why is it there? Was it included by the OS, or did you have to build it? If you built it, I wonder why it would put itself in a different place.

wxWidgets 2.9 最终有 Debian 包了吗?

Has wxWidgets 2.9 finally started to become available as a debian package?

也许我们该这样:

Maybe we should do this:

INCLUDEPATHS= \

INCLUDEPATHS= \

-I"/usr/local/include/wx-2.9" \

-I"/usr/local/include/wx-2.9" \

-I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" \

-I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" \

-I"/usr/include/wx-2.9" \

-I"/usr/include/wx-2.9" \

-I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9"

-I"/usr/lib/wx/include/gtk2-unicode-debug-static-2.9"

再说一遍,这些路径能确保只用 2.9,遇到 2.8 会失败。

Again, those paths help make sure it's only 2.9 and will fail with 2.8.

wxWidgets 2.8 有 ANSI 和 UTF-16 两种,对我们都是错的。它相当诱人,因它作为包唾手可得;在我们开始把 2.9 硬编码进 makefile 之前,很多人都被它折磨过。

wxWidgets 2.8 comes in ANSI and UTF-16, both wrong for us. It's tempting because it's so easily available as a package; a lot of people were frustrated by it until we started hardcoding 2.9 into the makefile.

上下文
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2623

阅读字号

选择适合你的字号,之后阅读会继续使用。