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
Changes to make it compilable in recent Cygwin environment #175
Conversation
Include file in same directory
Path to included header files was wrong
Correct include path
Corrected include path
Corrected include path
Adopted to include special win32 header files for CYGWIN
Why do you want to use pcsc-lite on cygwin instead of the PC/CS library provided by Windows? |
I am just experimenting with the possibility to replace the windows based PCSC drivers/system that is failing on a daily basis (and has ACL/permission issues on windows) - and the winscard.dll seems to behave the same way (when used with cygwin) as it depends on the components from windows. |
Cygwin specific adoptions
Added specific libtool flag for cygwin support
I am working on using meson to build pcsc-lite. To rebuild on msys2 I need only one small patch: diff --git a/meson.build b/meson.build
index 29caee12..de999951 100644
--- a/meson.build
+++ b/meson.build
@@ -126,6 +126,8 @@ elif target_machine.system() == 'netbsd'
conf_data.set_quoted('PCSC_ARCH', 'NetBSD')
confgen_data.set('ipcdir', '/var/run/pcscd')
conf_data.set_quoted('PCSCLITE_HP_DROPDIR', '/usr/pkg/lib/pcsc-lite/drivers')
+elif target_machine.system() == 'cygwin'
+ conf_data.set_quoted('PCSC_ARCH', 'Windows')
endif
features += conf_data.get_unquoted('PCSC_ARCH')
pcscd_dep += [polkit_dep, systemd_dep] And I call meson with:
Of course the binary does not work:
|
meson is now included in pcsc-lite 2.2.1 |
pcsc-lite builds fine on cygwin with the patch I proposed. I do not see any benefit to have pcsc-lite on Windows. So I do not plan to add support for this platform. But feel free to use it. Do you really use pcsc-lite on Windows? |
Fixed path errors to get the header chain working correctly.
Additionally added required seperation for Cygwin environment to wintypes header