Jump to content

Recommended Posts

Posted

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

Posted

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

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...