Topic: LibNFC 1.5.0 not working under windows.
When i compile with mingw32-make i get the following out put:
C:\Users\ZZZZZ\Desktop\LIBNFC\build>mingw32-make
Scanning dependencies of target nfc
[ 4%] Building C object libnfc/CMakeFiles/nfc.dir/nfc.c.obj
[ 8%] Building C object libnfc/CMakeFiles/nfc.dir/nfc-device.c.obj
[ 13%] Building C object libnfc/CMakeFiles/nfc.dir/nfc-emulation.c.obj
[ 17%] Building C object libnfc/CMakeFiles/nfc.dir/iso14443-subr.c.obj
[ 21%] Building C object libnfc/CMakeFiles/nfc.dir/mirror-subr.c.obj
[ 26%] Building C object libnfc/CMakeFiles/nfc.dir/drivers/pn53x_usb.c.obj
C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\drivers\pn53x_usb.c: In function 'pn53x_usb_
receive':
C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\drivers\pn53x_usb.c:489:5: warning: unknown
conversion type character 'z' in format
C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\drivers\pn53x_usb.c:489:5: warning: unknown
conversion type character 'z' in format
C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\drivers\pn53x_usb.c:489:5: warning: too many
arguments for format
[ 30%] Building C object libnfc/CMakeFiles/nfc.dir/buses/uart.c.obj
[ 34%] Building C object libnfc/CMakeFiles/nfc.dir/chips/pn53x.c.obj
C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\chips\pn53x.c: In function 'pn53x_build_fram
e':
C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\chips\pn53x.c:431:5: warning: unknown conver
sion type character 'z' in format
C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\chips\pn53x.c:431:5: warning: too many argum
ents for format
Linking C shared library libnfc.dll
Creating library file: libnfc.dll.a
[ 34%] Built target nfc
Scanning dependencies of target nfc-utils
[ 39%] Building C object examples/CMakeFiles/nfc-utils.dir/nfc-utils.c.obj
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-utils.c: In function 'print_nfc_iso144
43a_info':
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-utils.c:273:13: warning: unknown conve
rsion type character 'z' in format
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-utils.c:273:13: warning: too many argu
ments for format
Linking C static library libnfc-utils.a
[ 39%] Built target nfc-utils
Scanning dependencies of target nfc-anticol
[ 43%] Building C object examples/CMakeFiles/nfc-anticol.dir/nfc-anticol.c.obj
Linking C executable nfc-anticol.exe
[ 43%] Built target nfc-anticol
Scanning dependencies of target nfc-dep-initiator
[ 47%] Building C object examples/CMakeFiles/nfc-dep-initiator.dir/nfc-dep-initi
ator.c.obj
Linking C executable nfc-dep-initiator.exe
[ 47%] Built target nfc-dep-initiator
Scanning dependencies of target nfc-dep-target
[ 52%] Building C object examples/CMakeFiles/nfc-dep-target.dir/nfc-dep-target.c
.obj
Linking C executable nfc-dep-target.exe
[ 52%] Built target nfc-dep-target
Scanning dependencies of target nfc-emulate-forum-tag4
[ 56%] Building C object examples/CMakeFiles/nfc-emulate-forum-tag4.dir/nfc-emul
ate-forum-tag4.c.obj
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-emulate-forum-tag4.c: In function 'nde
f_message_save':
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-emulate-forum-tag4.c:268:5: warning: f
ormat '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t'
Linking C executable nfc-emulate-forum-tag4.exe
[ 56%] Built target nfc-emulate-forum-tag4
Scanning dependencies of target nfc-emulate-tag
[ 60%] Building C object examples/CMakeFiles/nfc-emulate-tag.dir/nfc-emulate-tag
.c.obj
Linking C executable nfc-emulate-tag.exe
[ 60%] Built target nfc-emulate-tag
Scanning dependencies of target nfc-emulate-uid
[ 65%] Building C object examples/CMakeFiles/nfc-emulate-uid.dir/nfc-emulate-uid
.c.obj
Linking C executable nfc-emulate-uid.exe
[ 65%] Built target nfc-emulate-uid
Scanning dependencies of target nfc-list
[ 69%] Building C object examples/CMakeFiles/nfc-list.dir/nfc-list.c.obj
Linking C executable nfc-list.exe
[ 69%] Built target nfc-list
Scanning dependencies of target nfc-mfclassic
[ 73%] Building C object examples/CMakeFiles/nfc-mfclassic.dir/nfc-mfclassic.c.o
bj
[ 78%] Building C object examples/CMakeFiles/nfc-mfclassic.dir/mifare.c.obj
Linking C executable nfc-mfclassic.exe
[ 78%] Built target nfc-mfclassic
Scanning dependencies of target nfc-mfultralight
[ 82%] Building C object examples/CMakeFiles/nfc-mfultralight.dir/nfc-mfultralig
ht.c.obj
[ 86%] Building C object examples/CMakeFiles/nfc-mfultralight.dir/mifare.c.obj
Linking C executable nfc-mfultralight.exe
[ 86%] Built target nfc-mfultralight
Scanning dependencies of target nfc-poll
[ 91%] Building C object examples/CMakeFiles/nfc-poll.dir/nfc-poll.c.obj
Linking C executable nfc-poll.exe
[ 91%] Built target nfc-poll
Scanning dependencies of target nfc-relay
[ 95%] Building C object examples/CMakeFiles/nfc-relay.dir/nfc-relay.c.obj
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay.c: In function 'main':
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay.c:121:5: warning: unknown conver
sion type character 'z' in format
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay.c:121:5: warning: too many argum
ents for format
Linking C executable nfc-relay.exe
[ 95%] Built target nfc-relay
Scanning dependencies of target nfc-relay-picc
[100%] Building C object examples/CMakeFiles/nfc-relay-picc.dir/nfc-relay-picc.c
.obj
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay-picc.c: In function 'print_hex_f
d4':
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay-picc.c:112:3: warning: unknown c
onversion type character 'z' in format
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay-picc.c:112:3: warning: too many
arguments for format
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay-picc.c: In function 'main':
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay-picc.c:224:7: warning: unknown c
onversion type character 'z' in format
C:\Users\ZZZZZ\Desktop\LIBNFC\examples\nfc-relay-picc.c:224:7: warning: too many
arguments for format
Linking C executable nfc-relay-picc.exe
[100%] Built target nfc-relay-picc
C:\Users\ZZZZZ\Desktop\LIBNFC\build>cd C:\Users\ZZZZZ\Desktop\LIBNFC\build\example
s
C:\Users\ZZZZZ\Desktop\LIBNFC\build\examples>nfc-anticol.exe
DBG C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\drivers\pn53x_usb.c:260
Checking device 04e6:5591
TX: 00 00 ff 00 ff 00
DBG C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\chips\pn53x.c:129
GetFirmwareVersion
TX: 00 00 ff 02 fe d4 02 2a 00
DBG C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\drivers\pn53x_usb.c:375
usb_bulk_write failed with error -116
DBG C:\Users\ZZZZZ\Desktop\LIBNFC\libnfc\nfc.c:145
No device found using driver: PN53x USB
Error connecting NFC reader
C:\Users\ZZZZZ\Desktop\LIBNFC\build\examples>What can be causing these errors in compiling?
Thanks. Oh and does the LibUSB-lib mean the .dll or the .lib file?
And ive noticed that its only the PNxxx driver that is the problem
Last edited by spookyman166 (2011-04-29 22:42:00)