haimgel / display-switch

Turn a $30 USB switch into a full-featured multi-monitor KVM switch
https://haim.dev/posts/2020-07-28-dual-monitor-kvm/
MIT License
2.91k stars 112 forks source link

Homebrew version not working on M1 Mini (Mac OS Sequoia) - "libusb-1.0.0.dylib' (no such file)" #152

Closed cryo-kronos closed 1 week ago

cryo-kronos commented 1 week ago

Is this broken on ARM Macs? I installed 1.40 via Homebrew (M1 Mini running Mac OS Sequoia) and then tried to launch it but that fails with the following message:

Library not loaded: /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib Referenced from: <597A8C75-B591-3A55-A419-AF55FE4E2A55> /opt/homebrew/Cellar/display_switch/1.4.0/bin/display_switch Reason: tried: '/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/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' (no such file)

haimgel commented 1 week ago

I might have missed a dependency in Homebrew config. Could you please do:

brew install libusb

and try again?

cryo-kronos commented 1 week ago

I might have missed a dependency in Homebrew config. Could you please do:

brew install libusb

and try again?

Thank you, that worked.

haimgel commented 1 week ago

I updated the Brew formula, so going forward ,this should be fixed for new users (the dependency will be installed automatically).