这是一个libnfc的非官方构造,来源于分支df0a3beca901b734c6e9037334feaffe604f99b0.
Mingw32 Makefile
生成器无法生成x64二进制文件,所以这个项目由Visual Studio 17 2022构建. 源代码几乎没有修改(唯一改了的地方在pcsc.h
里,加入MAX_ATR_SIZE
的定义,除此之外源代码完全没动)。
build-src文件夹包含构建文件,对最终用户来说完全没用。
Release文件夹包含启用了PCSC的发布版本。另一个没有启用PCSC的版本位于Release_without_PCSC文件夹中。
要include的必要文件位于includes文件夹中。记得将文件夹添加到项目的包含路径中。
- 下载这个repo
- 打开文件夹
Release
- 将
nfc.lib
放入项目的依赖库 - 将
includes
文件夹复制到项目中,并将其添加到项目的包含路径中 - 在代码中
#include <nfc/nfc.h>
,然后使用 - 最后别忘了将
Release/nfc.dll
和Release/libusb0.dll
添加到发行版中
(不建议使用未启用PCSC的版本,据说ACR122U需要PCSC)
同libnfc,(LGPL3.0)。
This is an unofficial build of libnfc, a library allowing applications to access NFC devices.
The source is from branch df0a3beca901b734c6e9037334feaffe604f99b0.
The Mingw32 Makefile
generator cannot generate x64 binaries, so the project is built by Visual Studio 17 2022. The source code is almost original, excepting some small fixes on Windows. (In fact the only different is in the pcsc.h
: added the define of MAX_ATR_SIZE
)
The build-src folder contains building files, which is useless for the end user.
The Release folder contains the final release, with PCSC enabled. Another version disabled PCSC is in Release_without_PCSC folder.
The necessary files to be included is in the includes folder. Remember to add the folder to your project's include path.
- Download the repo
- Open the folder
Release
- Put the
nfc.lib
to your project libraries - Copy to the
includes
folder to your project - Add it to your include path of your project
#include <nfc/nfc.h>
in your code and use it- Don't forget to put
Release/nfc.dll
andRelease/libusb0.dll
to your distribution!
(NOT recommended to use the version without PCSC, it is said that ACR122U requires PCSC)
LGPL-3.0 (same as libnfc).