BaiduPCS
BaiduPCS copied to clipboard
macOS high sierra安装编译不成功
按照编译 (Mac)1234指示无法安装编译成功
同不成功。 按照 https://github.com/GangZhuo/BaiduPCS/issues/193#issuecomment-306018864 方法也不行。 我用11版的系统编译出的二进制能直接使用。
我的编译错误是: Undefined symbols for architecture x86_64: "_cache_add", referenced from: _download_write in baidupcs-shell.o _download_write_for_multy_thread in baidupcs-shell.o "_cache_flush", referenced from: _do_download in baidupcs-shell.o _download_write in baidupcs-shell.o _download_write_for_multy_thread in baidupcs-shell.o "_cache_init", referenced from: _do_download in baidupcs-shell.o "_cache_reset", referenced from: _download_write_for_multy_thread in baidupcs-shell.o "_cache_uninit", referenced from: _do_download in baidupcs-shell.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[1]: *** [baidupcs] Error 1 make: *** [all] Error 2 使用了#193 的方法。不理解错误原因。请大神解决一下,多谢多谢。
同macOS High Sierra 无法编译 错误: Undefined symbols for architecture x86_64: "_cache_add", referenced from: _download_write in baidupcs-shell.o _download_write_for_multy_thread in baidupcs-shell.o "_cache_flush", referenced from: _do_download in baidupcs-shell.o _download_write in baidupcs-shell.o _download_write_for_multy_thread in baidupcs-shell.o "_cache_init", referenced from: _do_download in baidupcs-shell.o "_cache_reset", referenced from: _download_write_for_multy_thread in baidupcs-shell.o "_cache_uninit", referenced from: _do_download in baidupcs-shell.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[1]: *** [baidupcs] Error 1 make: *** [all] Error 2
同 macOS high Sierra 编译不成功
更新系统到10.13.1 (17B48)后,编译通过了。很奇怪。大家可以再试试。
系统升到macOS 10.13.2 (17C88),编译还是报错 Undefined symbols for architecture x86_64: "_cache_add", referenced from: _download_write in baidupcs-shell.o _download_write_for_multy_thread in baidupcs-shell.o "_cache_flush", referenced from: _do_download in baidupcs-shell.o _download_write in baidupcs-shell.o _download_write_for_multy_thread in baidupcs-shell.o "_cache_init", referenced from: _do_download in baidupcs-shell.o "_cache_reset", referenced from: _download_write_for_multy_thread in baidupcs-shell.o "_cache_uninit", referenced from: _do_download in baidupcs-shell.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[1]: *** [baidupcs] Error 1 make: *** [all] Error 2