Topic: libnfc-1.3.9 and Snow Leopard
Trying to compile libnfc-1.3.9 on my Snow Leopard so I can work with touchatag readers. I've installed:
- libusb (http://www.ellert.se/twain-sane/)
- libusb-compat (Homebrew)
- pcsc-lite-1.6.4 (Compiled the source code)
- updated SmartCard drivers (from the touchatag website, http://www.acs.com.hk/drivers/eng/ACR12
101_P.zip)
I then ran: ./configure --prefix=/opt/local
(...)
Selected drivers:
acr122........... yes
arygon........... yes
pn531_usb........ yes
pn532_uart....... no
pn533_usb........ yesBut when I ran make:
make all-recursive
Making all in libnfc
Making all in chips
make[3]: Nothing to be done for `all'.
Making all in buses
make[3]: Nothing to be done for `all'.
Making all in drivers
CC libnfcdrivers_la-acr122.lo
acr122.c:38:22: error: winscard.h: No such file or directory
acr122.c:41:24: error: wintypes.h: No such file or directory
acr122.c:70: error: expected specifier-qualifier-list before ‘SCARDHANDLE’
acr122.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_SCardContext’
acr122.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
acr122.c: In function ‘acr122_free_scardcontext’:
acr122.c:95: warning: implicit declaration of function ‘SCardReleaseContext’
acr122.c:95: error: ‘_SCardContext’ undeclared (first use in this function)
acr122.c:95: error: (Each undeclared identifier is reported only once
acr122.c:95: error: for each function it appears in.)
acr122.c: In function ‘acr122_list_devices’:
acr122.c:140: error: ‘SCARDCONTEXT’ undeclared (first use in this function)
acr122.c:140: error: ‘pscc’ undeclared (first use in this function)
acr122.c:150: warning: implicit declaration of function ‘acr122_get_scardcontext’
acr122.c:155: warning: implicit declaration of function ‘SCardListReaders’
acr122.c:155: error: ‘SCARD_S_SUCCESS’ undeclared (first use in this function)
acr122.c: In function ‘acr122_connect’:
acr122.c:200: error: ‘SCARDCONTEXT’ undeclared (first use in this function)
acr122.c:200: error: ‘pscc’ undeclared (first use in this function)
acr122.c:208: warning: implicit declaration of function ‘SCardConnect’
acr122.c:208: error: ‘SCARD_SHARE_EXCLUSIVE’ undeclared (first use in this function)
acr122.c:208: error: ‘SCARD_PROTOCOL_T0’ undeclared (first use in this function)
acr122.c:208: error: ‘SCARD_PROTOCOL_T1’ undeclared (first use in this function)
acr122.c:208: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:209: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c:209: error: ‘SCARD_S_SUCCESS’ undeclared (first use in this function)
acr122.c:211: error: ‘SCARD_SHARE_DIRECT’ undeclared (first use in this function)
acr122.c:211: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:211: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c:219: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c:219: error: ‘SCARD_IO_REQUEST’ undeclared (first use in this function)
acr122.c: In function ‘acr122_disconnect’:
acr122.c:249: warning: implicit declaration of function ‘SCardDisconnect’
acr122.c:249: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:249: error: ‘SCARD_LEAVE_CARD’ undeclared (first use in this function)
acr122.c: In function ‘acr122_transceive’:
acr122.c:281: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c:281: error: ‘SCARD_PROTOCOL_UNSET’ undeclared (first use in this function)
acr122.c:283: warning: implicit declaration of function ‘SCardControl’
acr122.c:283: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:284: error: ‘SCARD_S_SUCCESS’ undeclared (first use in this function)
acr122.c:289: warning: implicit declaration of function ‘SCardTransmit’
acr122.c:289: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:289: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c:296: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c:296: error: ‘SCARD_PROTOCOL_T0’ undeclared (first use in this function)
acr122.c:310: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:310: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c: In function ‘acr122_firmware’:
acr122.c:347: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c:347: error: ‘SCARD_PROTOCOL_UNSET’ undeclared (first use in this function)
acr122.c:349: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:353: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:353: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c: In function ‘acr122_led_red’:
acr122.c:374: error: ‘acr122_spec_t’ has no member named ‘ioCard’
acr122.c:374: error: ‘SCARD_PROTOCOL_UNSET’ undeclared (first use in this function)
acr122.c:376: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:377: error: ‘SCARD_S_SUCCESS’ undeclared (first use in this function)
acr122.c:380: error: ‘acr122_spec_t’ has no member named ‘hCard’
acr122.c:380: error: ‘acr122_spec_t’ has no member named ‘ioCard’
make[3]: *** [libnfcdrivers_la-acr122.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2