-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure fails on Mac OS X 10.15.7 (Catalina) #210
Comments
macOS has a standalone implementation for PC/SC, which is not PCSC-Lite from brew. I think, the default to use should be the former. Anyway, the compiler flags for macOS are not trivial. I've included a script in the Makefile to do that. Please try
If that doesn't work out of the box (anymore), please adapt the single steps to your need: vsmartcard/virtualsmartcard/MacOSX/Makefile.am Lines 8 to 36 in 9284766
|
Hi Frank, It seems that the issue with the configure itself. Even without parameters, it cannot find ifdhandler.h (that's the reason why I have tried with brew to get the PCSC library):
I did run a find on whole system and I can't find that file anywhere outside in the brew location. |
What version of XCode do you have installed? |
Version 12.4 (12D4e) |
maybe your support files are missing, have you tried |
I have looked into that before but it seems that xcode is up to date: $ xcode-select --install The only update I have is to upgrade to Monterey at the moment. I was reading this blog here: https://ludovicrousseau.blogspot.com/2014/03/evolution-of-apple-pcsc-lite-from.html and it made me wonder if Catalina doesn't come anymore with those libraries/heaaders? |
Ok this is pretty interesting. If I download and try to configure the pre-packaged version 0.8, it fails with the error above. Followed the steps for Unix/Linux compilation and the configure doesn't fail in the same way. autoreconf --verbose --install I am not sure what is the difference here. |
I was able to reproduce the problem, but I have no idea what causes it... |
I had a subsequent problem with the fact that the system defaults to Python 2.6, which I have resolved pointing the PYTHON environment variable to python3 binary (Python 3.9). After that, the make install is fully successful and I have also tested the application with my identity card, all is working. |
Does anyone have detailed install instructions? I may be particularly dense today, but am not having much luck installing. Also, anyone installed this with Monterey? |
I have the same issue on macOS 13.3.1 Ventura, with Xcode 14.2 and Python 3.11.3 installed. |
I've updated the installation guide: vsmartcard/virtualsmartcard/doc/README.txt.in Lines 138 to 143 in 509a14b
|
Expected behaviour
Configure should be able to use the provided PCSC library installed from Brew on Mac OS X 10.15.7
echo $PCSC_CFLAGS
/usr/local/Cellar/pcsc-lite/1.9.4/include/PCSC/
Actual behaviour
Configure fails with the following error:
configure: WARNING: libpcsclite not found by pkg-config
checking for ifdhandler.h... no
configure: error: ifdhandler.h not found, install libpcsclite or use ./configure PCSC_CFLAGS=...
Based on output of config.log, it seems that the PCSC_CFLAGS is ignored. More in the Logs section.
Files in the location:
$ ls -lha $PCSC_CFLAGS
total 168
drwxr-xr-x 8 user wheel 256B 1 Oct 17:01 .
drwxr-xr-x 3 user wheel 96B 1 Oct 17:01 ..
-rw-r--r-- 1 user wheel 4.8K 1 Oct 17:01 debuglog.h
-rw-r--r-- 1 user wheel 30K 1 Oct 17:01 ifdhandler.h
-rw-r--r-- 1 user wheel 15K 1 Oct 17:01 pcsclite.h
-rw-r--r-- 1 user wheel 15K 1 Oct 17:01 reader.h
-rw-r--r-- 1 user wheel 4.1K 1 Oct 17:01 winscard.h
-rw-r--r-- 1
config.log
user wheel 3.0K 1 Oct 17:01 wintypes.h
Steps to reproduce
Logs
$ grep 'PCSC_CFLAGS' config.log
configure:18159: error: ifdhandler.h not found, install libpcsclite or use ./configure PCSC_CFLAGS=...
ac_cv_env_PCSC_CFLAGS_set=set
ac_cv_env_PCSC_CFLAGS_value=/usr/local/Cellar/pcsc-lite/1.9.4/include/PCSC
PCSC_CFLAGS='-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers -DRESPONSECODE_DEFINED_IN_WINTYPES_H -I/Users/user/Downloads/virtualsmartcard-0.8//MacOSX'
The text was updated successfully, but these errors were encountered: