Skip to content

libusb problems on apple silicon #173

@LeonardoCT

Description

@LeonardoCT

Hi,
After installing libusb using brew this error message still happears:

Sketch uses 4392 bytes (26%) of program storage space. Maximum is 16384 bytes. Global variables use 388 bytes (18%) of dynamic memory, leaving 1660 bytes for local variables. Maximum is 2048 bytes. dyld[5289]: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib Referenced from: <C79B1DDB-9DAE-30AE-9474-2E146265EC5A> /Users/leonardoferlito/Library/Arduino15/packages/WCH/tools/openocd/1.0.0/bin/openocd Reason: tried: '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/local/lib/libusb-1.0.0.dylib' (no such file), '/usr/lib/libusb-1.0.0.dylib' (no such file, not in dyld cache) Failed uploading: uploading error: signal: abort trap

This is due to a broken link, with the use of a symlink you can force the system to use the arm version (installed by brew) of libusb then it complains about it being the wrong architecture

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions