fido2-tests icon indicating copy to clipboard operation
fido2-tests copied to clipboard

'winscard.h' missing

Open martin-ger opened this issue 5 years ago • 3 comments

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?

martin-ger avatar Feb 20 '20 18:02 martin-ger

Try the following:

apt install libpcsclite-dev

ekilmer avatar Apr 13 '20 16:04 ekilmer

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

nickray avatar Apr 13 '20 22:04 nickray

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.

spoelstraethan avatar Nov 14 '21 21:11 spoelstraethan