Bitcointalk · Gentoo Linux Ebuild

中本聪,2010 年 8 月 27 日

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

阅读语言
中文译文

试试 -datadir=

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

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

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

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

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

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

wxWidgets 2.9 最终有 Debian 包了吗?

兴许我们该这样:

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

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

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

ORIGINAL · 英文原文
Try -datadir=

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.

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.

Quote
Iirc, chatting in #wxwidgets on freenode, the devs there were baffled why that was used.
Did they say why they were baffled?

Quote
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.

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

Maybe we should do this:

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

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

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.
上下文
← 上一条 SN-2623 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2623