LudovicRousseau / pcsc-tools

Some tools to be used with smart cards and PC/SC
https://pcsc-tools.apdu.fr/
GNU General Public License v2.0
190 stars 62 forks source link

How do you compile the tools #25

Closed WattsC-90 closed 5 years ago

WattsC-90 commented 5 years ago

Hi,

I am a windows developer, so apologies for the eye rolling question.. but how do you compile the tools?

I have tried ./compile , but it requires arguments.. have tried make -f Makefile.am but this just prints.. make: 'Changelog' is up to date.

If I run make -f Makefile.am pcsc_scan, it prints.. `Fatal Error: winscard.h: no such file or directory.

I am running on raspberry pi, just trying to validate that the hardware is working before trying to go any further..

LudovicRousseau commented 5 years ago

Get the .tar.bz2 from http://ludovic.rousseau.free.fr/softwares/pcsc-tools/ and use the classic:

./configure
make

If you use Raspbian on your raspberry Pi you can just install the pcsc-tools package.

WattsC-90 commented 5 years ago

Thanks, installed the package now, but even with configure and make I still got winscard.h fatal error

./configure
make pcsc_scan

results in the winscard.h error on a pi.

LudovicRousseau commented 5 years ago

Install the package that provides winscard.h. It is libpcsclite-dev

WattsC-90 commented 5 years ago

Thank you