Skip to content

Instantly share code, notes, and snippets.

@Arachnid
Last active February 13, 2020 21:34
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Arachnid/420fb74c03a20a5740a52f28fb1e5346 to your computer and use it in GitHub Desktop.
Save Arachnid/420fb74c03a20a5740a52f28fb1e5346 to your computer and use it in GitHub Desktop.

Install openssl with brew install openssl

Per https://solitum.net/openssl-os-x-el-capitan-and-brew/:

$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl . 
$ cd /usr/local/lib
$ $ for i in ../opt/openssl/lib/lib*; do ln -vs $i .; done

Download and build globalplatform:

./configure PCSCLITE_CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/PCSC.framework/Headers
make
sudo make install

Download and build gppcscconnectionplugin:

./configure PCSCLITE_CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/PCSC.framework/Headers GLOBALPLATFORM_CFLAGS=-I/Users/nickjohnson/Downloads/globalplatform-6.0.0/src/globalplatform GLOBALPLATFORM_LIBS=/usr/local/lib/libglobalplatform.dylib
make
sudo make install

Download and build gpshell:

./configure PCSCLITE_CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/PCSC.framework/Headers GLOBALPLATFORM_CFLAGS=-I/Users/nickjohnson/Downloads/globalplatform-6.0.0/src/globalplatform GLOBALPLATFORM_LIBS=/usr/local/lib/libglobalplatform.dylib
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment