簡體   English   中英

ld:找不到用於-lclangRewrite的庫

[英]ld: library not found for -lclangRewrite

當我在macOS上使用cmake構建eos時,發生以下錯誤。

ld: library not found for -lclangRewrite
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [programs/abi_gen/abi_gen] Error 1
make[1]: *** [programs/abi_gen/CMakeFiles/abi_gen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 74%] Built target eos_chain
make: *** [all] Error 2

我發現了一些相關問題,但它們似乎都與ios和xcode有關,我不知道在eos之類的項目中應該做什么。 我該如何解決?

從EOS的源代碼逐步構建時,我遇到相同的2個錯誤。 或者,您可以通過運行腳本( https://github.com/EOSIO/eos#automac )使用另一種方法:

./build.sh darwin

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM