Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Cannot install gem #1

davsebamse opened this Issue · 0 comments

1 participant


I cannot get the gem to compile.
I have symlinked s.t. the libnfc.h can be found.


herosan-2:nfc davse$ ls -l /opt/local/include/libnfc
lrwxr-xr-x 1 root admin 3 Apr 24 09:08 /opt/local/include/libnfc -> nfc
herosan-2:nfc davse$ ls -l /opt/local/include/nfc/
total 72
lrwxr-xr-x 1 root admin 14 Apr 24 09:11 libnfc-messages.h -> nfc-messages.h
lrwxr-xr-x 1 root admin 11 Apr 24 09:11 libnfc-types.h -> nfc-types.h
lrwxr-xr-x 1 root admin 5 Apr 24 09:08 libnfc.h -> nfc.h
-rw-r--r-- 2 root admin 1478 Apr 24 08:47 nfc-messages.h
-rw-r--r-- 2 root admin 10834 Apr 24 08:47 nfc-types.h
-rw-r--r-- 2 root admin 6230 Apr 24 08:47 nfc.h
herosan-2:nfc davse$

gcc -I. -I/usr/local/rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-darwin10.6.0 -I/usr/local/rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I../../../../ext/nfc -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -o nfc_device.o -c ../../../../ext/nfc/nfc_device.c
../../../../ext/nfc/nfc_device.c: In function ‘connect’:
../../../../ext/nfc/nfc_device.c:13: error: ‘dev_info’ undeclared (first use in this function)
../../../../ext/nfc/nfc_device.c:13: error: (Each undeclared identifier is reported only once
../../../../ext/nfc/nfc_device.c:13: error: for each function it appears in.)
../../../../ext/nfc/nfc_device.c:13: error: ‘dev’ undeclared (first use in this function)
../../../../ext/nfc/nfc_device.c:13: error: too few arguments to function ‘nfc_connect’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.