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

Build instructions for macOS? #136

Closed
ajmas opened this issue Apr 29, 2024 · 2 comments
Closed

Build instructions for macOS? #136

ajmas opened this issue Apr 29, 2024 · 2 comments

Comments

@ajmas
Copy link

ajmas commented Apr 29, 2024

I am currently trying to build for macOS and have followed the instructions here: https://ccid.apdu.fr/#MacOSX , which indicate:

./MacOSX/configure
make
sudo make install

This works until I get this output:

configure: error: install pcsc-lite 1.8.3 or later, or use ./configure PCSC_CFLAGS=...
+ r=1
+ rm -f src/Info.plist
+ exit 1

I do have pcsc-lite 2.1.0 installed via home brew. What should I be passing as flags?

BTW when I did brew info pcsc-lite I was given the following info and I did try the exports listed in there, but it doesn't seem to have changed anything:

==> pcsc-lite: stable 2.1.0 (bottled) [keg-only]
Middleware to access a smart card using SCard API
https://pcsclite.apdu.fr/
Installed
/usr/local/Cellar/pcsc-lite/2.1.0 (27 files, 416.0KB)
  Poured from bottle using the formulae.brew.sh API on 2024-04-29 at 15:41:00
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/pcsc-lite.rb
License: BSD-3-Clause and GPL-3.0-or-later and ISC
==> Caveats
pcsc-lite is keg-only, which means it was not symlinked into /usr/local,
because macOS provides PCSC.framework.

If you need to have pcsc-lite first in your PATH, run:
  echo 'export PATH="/usr/local/opt/pcsc-lite/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/pcsc-lite/sbin:$PATH"' >> ~/.zshrc

For compilers to find pcsc-lite you may need to set:
  export LDFLAGS="-L/usr/local/opt/pcsc-lite/lib"
  export CPPFLAGS="-I/usr/local/opt/pcsc-lite/include"

For pkg-config to find pcsc-lite you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/pcsc-lite/lib/pkgconfig"
==> Analytics
install: 928 (30 days), 2,336 (90 days), 6,891 (365 days)
install-on-request: 276 (30 days), 648 (90 days), 1,748 (365 days)
build-error: 0 (30 days)
@LudovicRousseau
Copy link
Owner

Get the source code from https://ccid.apdu.fr/files/ and try again.

@ajmas
Copy link
Author

ajmas commented Apr 30, 2024

Getting the source code from there resulted in the project building. Thanks

Just for reference, output of sudo make install:

Making install in readers
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in examples
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in contrib
Making install in Kobil_mIDentity_switch
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in RSA_SecurID
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in src
/bin/sh /Users/ajmas/Downloads/ccid-1.5.5/install-sh -d "/usr/local/libexec/SmartCardServices/drivers/ifd-ccid.bundle/Contents/MacOS/"
cp Info.plist "/usr/local/libexec/SmartCardServices/drivers/ifd-ccid.bundle/Contents/"
cp .libs/libccid.dylib "/usr/local/libexec/SmartCardServices/drivers/ifd-ccid.bundle/Contents/MacOS/libccid.dylib"
***************
copy the src/92_pcscd_ccid.rules file in udev directory (/etc/udev/rules.d/)
***************
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.

I did follow the copy step since that seemed to be asking for a manual step.

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