Skip to content

回复:64 位支持 ​

原始发布页

打开来源页面
查看 1 个交叉存档

我提交了一个修复 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 上完成了编译和运行。

我认为剩下的唯一错误是状态数字挤在一起。我不知道原因,只能怀疑是 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。我们使用 wxWidgets 2.8 的 ANSI 版本,或 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.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。