下載了官方的 MacOS 工具鏈 1.9x 最新版本,但是根本加載不成功 libusb。
arm 版本的不行:
MRS_Toolchain_MAC_V191?→?./openocd_arm64/openocd_arm64/bin/openocd? dyld[14566]:?Library?not?loaded:?/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib ??Referenced?from:?<6BBF79F9-C1A5-38BD-85E2-6A75FB8D03BD>?/Users/Shared/MRS_Toolchain_MAC_V191/openocd_arm64/openocd_arm64/bin/openocd ??Reason:?tried:?'/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib'?(code?signature?in??'/opt/homebrew/Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib'?not?valid?for?use?in?process:?mapping?process?and?mapped?file?(non-platform)?have?different?Team?IDs),?'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib'?(no?such?file),?'/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib'?(code?signature?in??'/opt/homebrew/Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib'?not?valid?for?use?in?process:?mapping?process?and?mapped?file?(non-platform)?have?different?Team?IDs),?'/usr/lib/libusb-1.0.0.dylib'?(no?such?file,?not?in?dyld?cache),?'/opt/homebrew/Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib'?(code?signature?in??'/opt/homebrew/Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib'?not?valid?for?use?in?process:?mapping?process?and?mapped?file?(non-platform)?have?different?Team?IDs),?'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib'?(no?such?file),?'/opt/homebrew/Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib'?(code?signature?in??'/opt/homebrew/Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib'?not?valid?for?use?in?process:?mapping?process?and?mapped?file?(non-platform)?have?different?Team?IDs),?'/usr/lib/libusb-1.0.0.dylib'?(no?such?file,?not?in?dyld?cache) Abort?trap:?6
x64 的更不行:brew 安裝的是 arm 動態(tài)庫 libusb。
我自己從 OpenOCD 官方下載了二進(jìn)制,運(yùn)行成功,但是支持的列表里面又沒有你們的 wlinke。
你們這是改了啥,為啥不開源出來呢?我嘗試自己編譯 OpenOCD,發(fā)現(xiàn)支持的設(shè)備確實(shí)也沒有你們的。