Author Topic: SOLVED: New Mac version (1.0.4) of digispark app doesn't work on Mountain Lion  (Read 3667 times)

Bluebie

  • Sr. Member
  • ****
  • Posts: 486


Code: [Select]
Binary sketch size: 3,984 bytes (of a 6,012 byte maximum)
Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)
dyld: Library not loaded: @executable_path/libusb-0.1.4.dylib
  Referenced from: /Users/bluebie/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/micronucleus
  Reason: no suitable image found.  Did find:
   /Users/bluebie/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/libusb-0.1.4.dylib: mach-o, but wrong architecture
   /Users/bluebie/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/libusb-0.1.4.dylib: mach-o, but wrong architecture
   /usr/local/lib/libusb-0.1.4.dylib: mach-o, but wrong architecture


Should have tested it on a modern 64-bit intel mac! I managed to get a version working on my own machine by recompiling the micronucleus binary using homebrew to install libusb, but I don't know how to do static compilation stuff, so everyone else is on their own! Also IMHO the app should be renamed Digispark.app, to distinguish it on computers with multiple versions of the arduino software installed. On Mac's especially the filesystem is becoming less relevent, so when asking the system to run Arduino it is difficult to see which is which.
« Last Edit: March 22, 2013, 04:56:56 pm by Bluebie »

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
It was compiled and tested on a very modern 64-bit intel mac - but static linking on mac can be pain with libusb and this was an attempt to static link and do a universal binary - it didn't work, but I didn't know that because of all the libs already present on the build system.


Anyway it should be fixed now - same link to download, new version uploading now - should be available to download in about 5 minutes of this being posted. Fixed linking for the command line tools as well.