santigimeno / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
170 stars 127 forks source link

Fix compilation issues in Mac OSX #12

Closed santigimeno closed 10 years ago

santigimeno commented 10 years ago

@ericchaves Finally I had access to a OS X machine and using your changes I've been able to compile it. Could you try it and see if it works for you? Thanks!

ericchaves commented 10 years ago

Hi @santigimeno, compilation is now working. Thanks! Good news is that I ran the example code with a ACR122 usb attached and it did detected the reader correctly, however it's stating that a card was detected when in fact none was.

hobbes:node-pcsclite ericchaves$ node examples/example.js 
New reader detected ACS ACR122U 00 00
{ state: 34, atr: <SlowBuffer 3b 00> }
Status( ACS ACR122U 00 00 ): { state: 34, atr: <SlowBuffer 3b 00> }
card inserted
Protocol( undefined ): 1
Data received <SlowBuffer 63 00>
^Chobbes:node-pcsclite ericchaves$

Any way I'l play around with the lib now during the weekend and than I got back to you to share the results.

Cheers,

LudovicRousseau commented 10 years ago

I can also build it on Mavericks. And I can use the sample examples/example.js

I suggest to merge this branch.

santigimeno commented 10 years ago

Thanks both for the feedback! Published as 0.3.1 @ericchaves if after your tests the module still fails for you open a new issue