BaiduPCS icon indicating copy to clipboard operation
BaiduPCS copied to clipboard

macOS high sierra安装编译不成功

Open ascfin opened this issue 7 years ago • 6 comments

按照编译 (Mac)1234指示无法安装编译成功

ascfin avatar Sep 26 '17 19:09 ascfin

同不成功。 按照 https://github.com/GangZhuo/BaiduPCS/issues/193#issuecomment-306018864 方法也不行。 我用11版的系统编译出的二进制能直接使用。

ghost avatar Oct 01 '17 07:10 ghost

我的编译错误是: 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 的方法。不理解错误原因。请大神解决一下,多谢多谢。

luluman avatar Oct 20 '17 14:10 luluman

同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

Happymax avatar Oct 28 '17 08:10 Happymax

同 macOS high Sierra 编译不成功

ZeddShi avatar Nov 02 '17 17:11 ZeddShi

更新系统到10.13.1 (17B48)后,编译通过了。很奇怪。大家可以再试试。

luluman avatar Nov 08 '17 13:11 luluman

系统升到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

hwswin avatar Dec 26 '17 02:12 hwswin