Jump to content

brickd 2.4.0 macOS - incompatible library version of libusb


Recommended Posts

Good morning!

 

I updated brick daemon to 2.4.0 on macOS (10.14.5) today.

Brick Viewer works as expected and it shows connected devices.

 

However, when checking the version (brickd --version), it fails with the following error message:

 

dyld: Library not loaded: @executable_path/libusb-1.0.dylib
  Referenced from: /usr/local/libexec/brickd.app/Contents/MacOS/./brickd
  Reason: Incompatible library version: brickd requires version 3.0.0 or later, but libusb-1.0.dylib provides version 2.0.0
Abort trap: 6

 

Temporary solution:

I have libusb installed via homebrew. I can't uninstall it though, as it has dependencies (dfu-util for instance). When temporarily renaming libusb-1.0.dylib (inside /usr/local/Cellar/libusb/1.0.22/lib/), brick daemon does load its own libusb version again.

 

 

Cheers,

Claudio

Link zu diesem Kommentar
Share on other sites

That's very strange. For exactly this reason Brick Daemon links to @executable_path/libusb-1.0.dylib. There should be no confusion for the loader which libusb to load.

 

Brick Daemon comes with its own libusb version that includes some brickd specific changes. So there is no point in trying to make this look like a vanilla libusb version anyway.

 

I've changed libusb-1.0.dylib to libusb-1.0-brickd.dylib now. This should fix the problem.

 

Please test the attached brickd version.

brickd_macos_2_4_0_libusb_name.dmg

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...