交叉编译比特币 0.21 安装程序

问题描述

我尝试分叉比特币 0.21 并通过 WSL 和 Ubuntu 18.04TLS 编译它。 我遵循了完整的 doc/build.windows 但是当我运行时

PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var
sudo bash -c "echo 0 > /proc/sys/fs/binfmt_misc/status" # disable WSL support for Win32 applications.
cd depends
make HOST=x86_64-w64-mingw32
cd ..
./autogen.sh # not required when building from tarball
CONfig_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=$PWD/depends/x86_64-w64-mingw32/
make
sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status"

它只是给我一个错误编译 bitcoind:21

In file included from ./logging.h:11:0,from ./util/system.h:21,from bitcoind.cpp:21:
./threadsafety.h:58:1: error: expected class-name before ‘{’ token
 {

正如您在 threadsecurity.h:57 中所知道的那样,类是明确的。

这里有人能给我一个好的建议吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)