下载了官方的 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 动态库 libusb。
我自己从 OpenOCD 官方下载了二进制,运行成功,但是支持的列表里面又没有你们的 wlinke。
你们这是改了啥,为啥不开源出来呢?我尝试自己编译 OpenOCD,发现支持的设备确实也没有你们的。