Skip to content
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

'winscard.h' missing #29

Open
martin-ger opened this issue Feb 20, 2020 · 3 comments
Open

'winscard.h' missing #29

martin-ger opened this issue Feb 20, 2020 · 3 comments

Comments

@martin-ger
Copy link

Solo simulation seems to run fine, but when I try to install the test environment using
pip3 install --user -r requirements.txt
on Ubuntu 18.04.4 LTS it tells me:

  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVER_PRODUCTVERSION=1,9,9,0000 -DVER_PRODUCTVERSION_STR=1.9.9 -DPCSCLITE=1 -Ismartcard/scard/ -I/usr/include/PCSC -I/usr/local/include/PCSC -I/usr/include/python3.6m -c smartcard/scard/helpers.c -o build/temp.linux-x86_64-3.6/smartcard/scard/helpers.o
  smartcard/scard/helpers.c:28:10: fatal error: winscard.h: No such file or directory
   #include <winscard.h>
            ^~~~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Any idea what's wrong?

@ekilmer
Copy link

ekilmer commented Apr 13, 2020

Try the following:

apt install libpcsclite-dev

@nickray
Copy link
Member

nickray commented Apr 13, 2020

It would probably be good to have pcsclite as optional requirement, for people who aren't interested in NFC.

@spoelstraethan
Copy link

I'd suggest --no-install-recommends when installing libpcsclite-dev as currently on Debian it appears to be pulling in Python 2.7.x which isn't optimal considering Python3 is the default and supported version of the Python Software Foundation going forward, and you only really need the winscard.h provided by the -dev package if the rest of the software is using Python3 (as using pip3 install pyscard would indicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants