USB JTAG  

Go Back   USB JTAG > General > Bug report.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-28-2018, 08:33 AM
andrew867 andrew867 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 3
Default Using homebrew installed libusb on OS X

Hi!

I have libusb installed through homebrew as it's used for a bunch of other applications. When attempting to start USBJTAG NT I get this error:

Code:
dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
  Referenced from: /Users/andrew/Downloads/USBJTAGNT-081-MAC-X86/USBJTAGNT
  Reason: no suitable image found.  Did find:
	/usr/local/lib/libusb-1.0.0.dylib: mach-o, but wrong architecture
	/usr/local/lib/libusb-1.0.0.dylib: mach-o, but wrong architecture
	/usr/local/Cellar/libusb/1.0.21/lib/libusb-1.0.0.dylib: mach-o, but wrong architecture
	/usr/local/Cellar/libusb/1.0.21/lib/libusb-1.0.0.dylib: mach-o, but wrong architecture
Abort trap: 6
Could you supply a x64 compiled version of USBJTAG NT for OS X or load your supplied libusb from the application directory? Thanks!
Reply With Quote
  #2  
Old 02-28-2018, 08:38 AM
andrew867 andrew867 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 3
Default

I got it working by using this command in the folder where I extracted USBJTAG NT:


Code:
install_name_tool -change /usr/local/lib/libusb-1.0.0.dylib @executable_path/libusb-1.0.0.dylib USBJTAGNT

I then placed the libusb-1.0.0.dylib and libusb-1.0.a files as well as the downloaded frameworks in the same folder next to USBJTAGNT.
Reply With Quote
  #3  
Old 02-28-2018, 08:42 AM
andrew867 andrew867 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 3
Default

Log of the commands I used:

Code:
Andrews-MacBook-Pro:USBJTAGNT-081-MAC-X86 andrew$ otool -L ./USBJTAGNT 
./USBJTAGNT:
	/usr/local/lib/libusb-1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	QtGui.framework/Versions/4/QtGui (compatibility version 4.6.0, current version 4.6.3)
	QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.6.0, current version 4.6.3)
	QtCore.framework/Versions/4/QtCore (compatibility version 4.6.0, current version 4.6.3)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.7)
Andrews-MacBook-Pro:USBJTAGNT-081-MAC-X86 andrew$ install_name_tool -change /usr/local/lib/libusb-1.0.0.dylib @executable_path/libusb-1.0.0.dylib USBJTAGNT 
Andrews-MacBook-Pro:USBJTAGNT-081-MAC-X86 andrew$ otool -L ./USBJTAGNT 
./USBJTAGNT:
	@executable_path/libusb-1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	QtGui.framework/Versions/4/QtGui (compatibility version 4.6.0, current version 4.6.3)
	QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.6.0, current version 4.6.3)
	QtCore.framework/Versions/4/QtCore (compatibility version 4.6.0, current version 4.6.3)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.7)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -7. The time now is 04:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.