Menu

#5 Fails to build on Mac OS X

1.0
closed
None
2014-12-06
2014-12-05
No

On a Mac OS X 10.9 (Mavericks) I get:

 $ MAKEFLAGS='' make
 /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
 ./setup.py build
 running build
 running build_ext
 building 'pcsclite' extension
 cc -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -Wall -g -O2 -Wextra -pipe -funsigned-char -fstrict-aliasing -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wunused -Wuninitialized -Wpointer-arith -Wredundant-decls -Winline -Wformat -Wformat-security -Wswitch-enum -Winit-self -Wmissing-include-dirs -Wempty-body -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wbad-function-cast -Wnested-externs -Wmissing-declarations -arch x86_64 -arch i386 -pipe -I/usr/include/PCSC -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pcsclite.c -o build/temp.macosx-10.9-intel-2.7/pcsclite.o
 pcsclite.c:32:10: fatal error: 'winscard.h' file not found
 #include <winscard.h>
          ^
 1 error generated.
 error: command 'cc' failed with exit status 1
 make[1]: *** [binary-lib] Error 1
 make: *** [binary-lib] Error 2

This is because Mac OS X uses PCSC as a framework. You need to use:

 #include <PCSC/winscard.h>

That will not be enough to build on Mac OS X since Apple do not provide the reader.h header file.

Note that I am not really interested in a Mac OS X version since I already use pyscard http://pyscard.sourceforge.net/ on Mac.

Discussion

  • Russell Stuart

    Russell Stuart - 2014-12-06

    I don't have a MAC, so getting this to build on one isn't something I can do.

    If someone can supply a patch please re-open the bug.

     

    Last edit: Russell Stuart 2014-12-06
  • Russell Stuart

    Russell Stuart - 2014-12-06
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.