dendisuhubdy / cardpeek

Automatically exported from code.google.com/p/cardpeek
Other
2 stars 3 forks source link

First steps for a Mac OS X build [PATCH] #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?
1. When trying to compile for Mac OS X, the detection of system libpcsclite 
library fails (things are a little different on Mac OS X, and one header file 
is missing)
2. Some compilation fails for Mac OS X

> What version of the product are you using? On what operating system?
Mac OS X 10.7.5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2336.11.00)
homebrew

Following patch must be applied - it should not break non-Mac OS X builds. 
Patch is necessary but not sufficient, as there is a missing file in Mac OS X 
"version" of libpcsclite (reader.h).

For the moment being, I manually copy reader.h from the sources of libpcsclite 
to the build directory, but it is not a proper solution.
We need to find a way to work around this missing file, for example providing a 
local copy that would be used only for Mac OS X build (autoconf expert, please 
do...)

After these patch + file inclusion, build is fine, and cardpeek works as 
expected : PCSC readers are detected and cards are properly read.

Original issue reported on code.google.com by ludovic....@gmail.com on 18 Mar 2013 at 11:25

Attachments:

GoogleCodeExporter commented 9 years ago
Many thanks for the patch.

I've tested it on a Mac (OS X 10.7.5) and it seems that the only input needed 
from reader.h is the definition of SCARD_ATTR_MAXINPUT

So simply defining that value is enough, as I did in the attached patch.

After this modification the program compiles on Mac and seems to work.

I will further investigate/test this: it would be nice to add Mac compatibility 
to cardpeek! 

(note: Compiling on Mac also made me realize that that I didn't fix another 
issue correctly in dyntree_model.c)

Original comment by L...@gmx.com on 19 Mar 2013 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago
The latest version of card peek seems to be fully compatible with OS X now. I 
even experimented creating a "cardpeek.app" and it seems to work (this bit is 
not in SVN and still experimental).

Original comment by L...@gmx.com on 15 May 2013 at 10:44

GoogleCodeExporter commented 9 years ago
Would you mind uploading the "cardpeek.app"?
Thanks in advance)

Original comment by mtrile...@googlemail.com on 17 Feb 2015 at 1:13

GoogleCodeExporter commented 9 years ago
Try this:
http://downloads.pannetrat.com/install/cardpeek-0.8.4-beta-for-OSX.zip

Original comment by L...@gmx.com on 22 Feb 2015 at 7:52