回复:Linux 构建

中本聪SN-10084

已经差不多了。我修了几处,让它完成了编译,但我不知道该链接哪些系统库,因此有一大堆未定义引用。

It was almost there. I fixed a few things and got it to finish compiling but I don't know the system libraries to link to so there's undefined references galore.

我修改了 makefile,让它在 /usr/local 和各项默认的“make install”位置下查找。我把自己的操作和使用的开关写进了 build-unix.txt。目前暂时用 wxWidgets 2.8.9,因为它与 Windows 上的版本相同,我不想在切换平台时,还要猜测是否同时存在版本变化带来的问题。不过 2.8.10 或 2.9.0 应该也没问题。我选择把 wxWidgets 编译为单个库,因为反正我们几乎要链接它的所有库。

I changed the makefile to look for things under /usr/local and in their default "make install" locations. I wrote what I did and switches I used in build-unix.txt. I'm currently using wxWidgets 2.8.9 for now because it's the same version as on Windows and I don't want to wonder if there's version change issues at the same time as platform change. 2.8.10 or 2.9.0 are probably fine though. I went with the single-library compile of wxWidgets since we're linking to almost every library anyway.

我添加了 xpm 文件,这是 Windows 以外的系统用来代替 RC 文件的格式。它们是巧妙的 C 文件,用静态数组定义图形。bitcoin 图标有 5 个不同版本,但我没能弄清 xpm 如何处理这种情况,所以只放了最大的那个。也许 GTK 会替你缩放。我不知道这些是否正确,但它们能编译。

I added xpm files, which is what they use everywhere else but Windows instead of RC files. They're clever C files that define graphics in static arrays. The bitcoin icon has 5 different versions but I couldn't figure out how that works in xpm so I only put the biggest one. Maybe on GTK it scales it for you. I don't know if these are right or what, but they compile.

引用 Martti Malmi 的文字Martti Malmi来源 ↗

我已经把目前移植的内容上传到 svn/branches。Util、script、db 和头文件现在都能完整编译,net.cpp 则能部分编译,所以还有工作要做。

I uploaded what I've ported so far to the svn/branches. Util, script, db and the headers compile fully now and net.cpp partially, so there's still work to do.

_beginthread 在 Linux 上没有直接对应的函数,所以我改用了 Boost 线程。

_beginthread doesn't have a direct Linux equivalent, so I used Boost threads instead.

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:365f6da6ddfd。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

Re: Linux build

Martti Malmi 通信 · 收件人公开存档 ↗ 下载英文正文 COPA v. Wright Trial Exhibits ↗ 原始通信编号 #54 · 阅读完整往来 ↗ 记录编号 SN-10084

阅读字号

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