原始文献 / 论坛帖 / Re: 64bit support
Re: 64bit support
Bitcointalk · 2010-01-29 00:42:49 UTC
我提交了 64 位编译的修复,还有支持 wxWidgets 2.9.0 的一些修复。
serialize.h 里有个 min(sizeof()) 的编译错误,我修了 64 位的。我遇到的其他 64 位编译错误都在 wxWidgets 2.8.9 里,所以我开始做 wxWidgets 2.9.0 的支持。
wxWidgets 2.9.0 是 UTF-8 的。我们一直在用 wxWidgets 2.8.9 的 ANSI 版,就是等 wxWidgets 的 UTF-8 支持。
我在 64 位 Ubuntu 9.10 Karmic 上编译运行了。
我觉得剩下的唯一 bug 是状态数字显示挤在一起。我怀疑是 UTF-8 的问题,但想不出怎么会这样。还没细查。
build-unix.txt 更新了,SVN 上有两个 makefile:
makefile.unix.wx2.8
makefile.unix.wx2.9
不幸的是,我们用的两个 wxWidgets 版本目前都没有 debian 包。他们只有 wxWidgets 2.8 的 wchar("unicode")版,这是个灾难,因为 wchar 的 wxString 转不成 std::string。我们用 ANSI 版 wxWidgets 2.8 或 wxWidgets 2.9。所以你还得自己拿下来编译。
英文原文
I committed a fix for 64-bit compile and some fixes to support wxWidgets 2.9.0.
There was one compile error in serialize.h with min(sizeof()) that I fixed for 64-bit. The rest of the 64-bit compile errors I was getting were in wxWidgets 2.8.9, so I started working on supporting wxWidgets 2.9.0.
wxWidgets 2.9.0 is UTF-8. We've been using the ANSI version of wxWidgets 2.8.9 in anticipation of wxWidgets UTF-8 support.
I compiled and ran on 64-bit Ubuntu 9.10 Karmic.
I think the only bug left is where the status number is mashed up. I'm not sure why, I have to suspect it's a UTF-8 thing, but no idea how that could happen. Haven't looked into it.
build-unix.txt is updated and two makefiles on SVN:
makefile.unix.wx2.8
makefile.unix.wx2.9
Unfortunately there's still no debian package for either version of wxWidgets we use. They only have the wchar ("unicode") version of wxWidgets 2.8, which is a disaster because wchar wxString doesn't convert to std::string. We use either ANSI wxWidgets 2.8, or wxWidgets 2.9. So you still have to get it and build it yourself.
