zbelzer / libhid-ruby

6 stars 2 forks source link

dyld: lazy symbol binding failed: Symbol not found: _hid_reset_HIDInterface #2

Open wjessop opened 11 years ago

wjessop commented 11 years ago

I'm trying to follow the test here:

http://anonscm.debian.org/viewvc/libhid/trunk/test/test_libhid.c?revision=352&view=markup

but hit an error with hid_new_HIDInterface

require 'libhid-ruby'
hid = LibHID::Native::hid_new_HIDInterface

Output:

dyld: lazy symbol binding failed: Symbol not found: _hid_reset_HIDInterface
  Referenced from: /usr/local/lib/libhid.dylib
  Expected in: flat namespace

dyld: Symbol not found: _hid_reset_HIDInterface
  Referenced from: /usr/local/lib/libhid.dylib
  Expected in: flat namespace

Trace/BPT trap: 5
zbelzer commented 11 years ago

I'm gonna need the wayback machine to re-figure out how all of this worked. I built and used it in a very limited context (a weather station device), but I'd be happy to help you problem solve.

wjessop commented 11 years ago

Hey Zachary,

The background is that I'm trying to get a Playstation 1 controller connected to a USB adapter feeding data to a ruby program. Right now I'm several yaks deep attempting to interface with libusb directly in a c extention :) Any insights you might have would be useful.

zbelzer commented 10 years ago

Just got back from an extended vacation in Europe, sorry. Think this would be similar with a playstation 2 controller? That's all I got.

wjessop commented 10 years ago

I'd guess the PS2 controller would be similar. I ended up hacking something together with an xbox controller and libusbx:

https://github.com/wjessop/gamepad

zbelzer commented 10 years ago

Manned up with some C eh? Nice.