acshk / acsccid

acsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card readers. This library provides a PC/SC IFD handler implementation and communicates with the readers through the PC/SC Lite resource manager (pcscd).
GNU Lesser General Public License v2.1
106 stars 19 forks source link

Can't compile on MacOS #37

Closed N0ury closed 8 months ago

N0ury commented 9 months ago

Hi, I'm trying to compile on MacOS. First try ./MacOSX/configure gave me:

/usr/local/Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib
/usr/local/Cellar/libusb/1.0.26/lib/libusb-1.0.dylib
*****************************
Dynamic library libusb found in /usr/local/Cellar/libusb/1.0.26/lib
*****************************
Rename it to force a static link

So I have renamed the two files from .dylib to .lib

Second try:

*************************
No Universal Binary build
*************************

+ ./configure 'CFLAGS= -DRESPONSECODE_DEFINED_IN_WINTYPES_H' PCSC_CFLAGS=-I/Users/nb/Downloads/acsccid-1.1.10/MacOSX 'PCSC_LIBS=-framework PCSC' LIBUSB_CFLAGS=-I/usr/local/Cellar/libusb/1.0.26/include/libusb-1.0 'LIBUSB_LIBS=-L/usr/local/Cellar/libusb/1.0.26/lib -lusb-1.0 -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-framework,Security' LDFLAGS= --enable-usbdropdir=/usr/local/libexec/SmartCardServices/drivers --disable-dependency-tracking --enable-oslog --disable-static --disable-pcsclite --enable-composite-as-multislot
./MacOSX/configure: line 146: ./configure: No such file or directory
+ r=127
+ rm -f src/Info.plist
+ exit 127

If someone can help...

godfreychung commented 9 months ago

Please get a tarball from https://acsccid.sourceforge.io/

or download macOS installer to install the driver directly.