camme / node-nfc

A first try at binding libnfc to node. This project is right now not good enough to use.
68 stars 39 forks source link

Build failed on Raspberry Pi #1

Closed TheRockyOng closed 8 years ago

TheRockyOng commented 11 years ago

I got these errors while building on R-Pi: ../src/nfc.cc:73:68: error: invalid conversion from ‘void (_)(uv_workt) {aka void (_)(uv_works)}’ to ‘uv_after_workcb {aka void ()(uv_works, int)}’ [-fpermissive] /home/pi/.node-gyp/0.10.12/deps/uv/include/uv.h:1432:15: error: initializing argument 4 of ‘int uv_queue_work(uv_loopt, uv_workt, uv_work_cb, uv_after_workcb)’ [-fpermissive] ../src/nfc.cc: In function ‘void {anonymous}::Loop({anonymous}::Baton)’: ../src/nfc.cc:85:68: error: invalid conversion from ‘void (_)(uv_workt) {aka void (_)(uv_works)}’ to ‘uv_after_workcb {aka void ()(uv_works, int)}’ [-fpermissive] /home/pi/.node-gyp/0.10.12/deps/uv/include/uv.h:1432:15: error: initializing argument 4 of ‘int uv_queue_work(uv_loopt, uv_workt, uv_work_cb, uv_after_work_cb)’ [-fpermissive] ../src/nfc.cc: In function ‘void {anonymous}::NFCRead(uv_workt)’: ../src/nfc.cc:95:13: error: expected primary-expression before ‘.’ token ../src/nfc.cc:96:13: error: expected primary-expression before ‘.’ token ../src/nfc.cc: In function ‘void {anonymous}::AfterNFCRead(uv_work_t*)’: ../src/nfc.cc:129:59: error: ‘memcpy’ was not declared in this scope

TheRockyOng commented 11 years ago

Found the issue. Need to typecast the argument into (uv_after_work_cb). Fixed it!

gavinwilliams commented 11 years ago

Did you ever manage to get this working?

camme commented 10 years ago

@gavinwilliams Quite a late answer but if you want to try now, I just updated the code. I wanted it to build on a Raspberry at home and it should work now.

jeroenvollenbrock commented 8 years ago

Is this problem still existent in 0.3.1?