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

How to use PCSC as a library #195

Closed
OlivierGre opened this issue Jul 17, 2024 · 3 comments
Closed

How to use PCSC as a library #195

OlivierGre opened this issue Jul 17, 2024 · 3 comments

Comments

@OlivierGre
Copy link

I'm using a HID 5022 CL reader connected to a Raspberry Pi board.
I have installed the following packages to be able to communicate with the HID reader:

sudo apt-get install libsystemd-dev
sudo apt-get install libudev-dev
sudo apt-get install libusb-dev 
sudo apt-get install libccid
sudo apt-get install pcsc-tools
sudo apt-get install libpcsclite-dev
sudo apt-get install libpcsc-perl
sudo apt-get install pcscd

I'm then able to use the "pcsc_scan" command to communicate with the HID reader and see the content of a smartcard.

I now would like to do the same in a C/C++ program running on the raspberry. Is it possible to use PCSC as a library and call the PCSC-lite API?
If yes, would you have some example showing how to do that?

Thank you

@OlivierGre
Copy link
Author

Thanks.

# Linux
PCSC_CFLAGS := $(shell pkg-config --cflags libpcsclite)
LDFLAGS := $(shell pkg-config --libs libpcsclite)

It is not clear to me where I should get the library libpcsclite.

@LudovicRousseau
Copy link
Owner

I can do consulting.
Contact me by email.

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

2 participants