L1L1 / cardpeek

Automatically exported from code.google.com/p/cardpeek
Other
454 stars 117 forks source link

Compile for windows #74

Open floryn90 opened 8 years ago

floryn90 commented 8 years ago

Hi, i'm trying to compile cardpeek from source to make a windows package with some changes but I have some issues with windef.h header using Linux as host and libcpsclite on windows using mingw. Can you share some details on how are you building cardpeek for windows? Thanks in advance.

KinG-InFeT commented 8 years ago

+1 i have a same problem, please help

L1L1 commented 8 years ago

The windows version of Cardpeek is developed under MingGW/MSYS (http://www.mingw.org/) with GCC.

Once the correct libraries / dependencies are installed, compiling cardpeek is as simple as typing:

  make -f Makefile.win32

The tricky part is getting all the development libraries / dependencies installed. I can’t give you a step-by-step approach, because I don’t remember the details and it it is not straightforward. At a high level, it involves the following key elements:

I hope this information can give you a starting point.

NOTE: mingw does not provide a library that allows to interface with the smartcard DLL that comes with windows (c:/windows/system32/winscard.dll). As a consequence, the makefile of cardpeek (Makefile.win32) generates a replacement interface library.

floryn90 commented 8 years ago

Thanks for your answer! Can you tell me if you are using mingw/msys1|2 on linux host or windows host?

L1L1 commented 8 years ago

I'm using windows 7 running in a virtual machine (under VirtualBox).

floryn90 commented 8 years ago

Can you tell me what version of mingw are you using? I'm have some issues on compiling pcsc-lite in mingw :S Also i want to ask you if it's possible to compile the program using cygwin and not mingw/msys?

kodalo commented 5 years ago

It is old issue, but is there any progress ?