Fix build on GNU/Linux#4
Conversation
Use "-framework PCSC" on macOS only. On GNU/Linux we use pkg-config(1) to get the correct arguments
webcard.cpp:135:3: error: use of undeclared identifier 'mbstowcs_s'
mbstowcs_s<256>(&ccNumChar, buffer, "\\\\?PnP?\\Notification", 128);
^
webcard.cpp:138:41: error: assigning to 'const char *' from incompatible type 'wchar_t [256]'
_rgReaderStates[_cReaders].szReader = buffer;
webcard.cpp:145:2: error: cannot jump from switch statement to this case label
default:
^
webcard.cpp:133:8: note: jump bypasses variable initialization
char buffer[] = "\\\\?PnP?\\Notification";
^
The error was: ./install.sh: 9: [: Linux: unexpected operator
The error was: ./install.sh: 38: Bad substitution
|
Is this project live? I don't see any issue with this PR. |
|
@Sciumo maybe it's time to fork |
|
@LudovicRousseau could you fork this project and apply your PR? then I think I will follow your fork thanks! |
|
I do not use this project. |
|
@LudovicRousseau ok. I wonder if it's not better to use wasm today rather than an extension since it won't work on android/IOS anyhow... |
|
It's probably better to rewrite. WASM is a build chain question. |
Which cites @LudovicRousseau blog! 🥇 |
|
@Sciumo thanks for the link! |
See also https://blog.apdu.fr/posts/2017/03/pcsc-sample-in-rust/ |
No description provided.