Bitcoin 0.3のビルド
自分でビルドしようとしたが、コンパイルできなかった。 どのportsを使ったの?wxgtk28-unicodeとdb42-4.2.52_5 & db50-5.0.21.0で試した。 最新の試行はこちら:nagilum@cakebox ~/src > uname -a FreeBSD cakebox.tis 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0: Tue Jun 29 22:25:46 CEST 2010 root@cakebox.tis:/usr/obj/export/src/sys/net5501 i386 nagilum@cakebox ~/src > gmake -f makefile.unix g++45 -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -I”/usr/include” -I”/usr/local/include” -I”/usr/local/include/wx-2.8” -I”/usr/local/lib/wx/include/gtk2-unicode-release-2.8” -I”/usr/local/include/db50” -o headers.h.gch headers.h In file included from headers.h:108:0: ui.h:13:142: error: default argument for ‘const wxString& caption’ has type ‘const char [8]’ ui.h: In function ‘int MyMessageBox(const wxString&, const wxString&, int, wxWindow*, int, int)’: ui.h:19:51: error: no matching function for call to ‘std::basic_string<char>::basic_string(const wxString&)’ …
wxWidgetsとSTLの問題のようだ。2.9リリースから自分でwxWidgetsをコンパイルすべきだ。
設定にはこんな感じのものを使って、makefile.unixの参照パスを調整すればいい。
mkdir buildgtk
cd buildgtk
../configure --prefix=/home/my_user/bitcoin/deps \
--with-gtk \
--disable-shared \
--disable-debug_flag \
--enable-stl \
--enable-utf8 \
--with-libjpeg=builtin \
--with-libpng=builtin \
--withregex=builtin \
--with-libtiff=builtin \
--with-zlib=builtin \
--withexpat=builtin wxWidgets 2.8では動作しない。wxWidgets 2.9が必要だ。残念ながら、wxWidgets 2.9のDebianパッケージはまだない。
他の外部ソース:Satoshi Nakamoto Institute