我已经从master分支中拉出了Litecoin,当我尝试在OSX上构建时,我得到了错误:
CXXLD litecoind
Undefined symbols for architecture x86_64:
"boost::this_thread::hiden::sleep_for(timespec const&)", referenced from:
MilliSleep(long long) in libbitcoin_util.a(libbitcoin_util_a-utiltime.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [litecoind] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1我正在运行通过Homebrew安装的1.65.1版本的macOS sera10.12.6 Boost,安装位置为: /usr/local/Cellar/boost/1.65.1/
Litecoin Core: 0.13.99我已经尝试卸载boost并从这里提到的源代码构建:https://github.com/litecoin-project/litecoin/issues/170
我得到了同样的错误。我已经确保安装了所需的所有依赖项,但似乎在某个地方存在增强问题。
从master和./autogen.sh - ./configure - make中重新获取会生成以下日志:
发布于 2017-10-12 15:37:48
原来这是一个链接器错误,我卸载了boost,重新安装了它,然后
brew link boost --force
在那之后工作得很好
https://stackoverflow.com/questions/46332011
复制相似问题