Topic: [SOLVED] Mingw problem with makefile libnfc 1.4.2
Hello,
I am having trouble building the library. i have Win7 64bits.
I use all the programs recommended in the readme.txt. (Mingw64 path, etc...)
I explain my problem:
I downloaded libnfc version 1.4.2.
I run the application cmake 2.8.6
I put in configuration: Specify the generator for this project -> MinGW Makefiles and I select: use default native compilers.
Then I click on configure on the main page of the application.
It displays multiple red lines:
he asks me to specify the file to include libusb, I do.
he asks me to specify the library file,
I do it: \ libusb-win32-bin-1.2.5.0 \ lib \ gcc \ libusb.a
Then I click configure again and then everything is ok = Configuring done.
I click on generate = Generating done.
Then, I check it has generated and I see several files and multiple files.
I open the cmd window.
I type the path to the folder where cmake put all the files.
I type the command mingw32-make.
and I have some errors:
C:\Users\UCS3\Desktop\NFC\library\Source\libnfc-1.4.2\DLL>mingw32-make
Scanning dependencies of target nfc
[ 4%] Building C object libnfc/CMakeFiles/nfc.dir/nfc.c.obj
In file included from C:\Users\UCS3\Desktop\NFC\library\Source\libnfc-1.4.2\libn
fc\drivers.h:37:0,
from C:\Users\UCS3\Desktop\NFC\library\Source\libnfc-1.4.2\libn
fc\nfc.c:42:
C:\Users\UCS3\Desktop\NFC\library\Source\libnfc-1.4.2\libnfc\drivers/pn53x_usb.h
:32:3: error: unknown type name 'usb_dev_handle'
C:\Users\UCS3\Desktop\NFC\library\Source\libnfc-1.4.2\libnfc\drivers/pn53x_usb.h
:39:32: warning: 'struct usb_device' declared inside parameter list [enabled by
default]
C:\Users\UCS3\Desktop\NFC\library\Source\libnfc-1.4.2\libnfc\drivers/pn53x_usb.h
:39:32: warning: its scope is only this definition or declaration, which is prob
ably not what you want [enabled by default]
mingw32-make[2]: *** [libnfc/CMakeFiles/nfc.dir/nfc.c.obj] Error 1
mingw32-make[1]: *** [libnfc/CMakeFiles/nfc.dir/all] Error 2
mingw32-make: *** [all] Error 2
C:\Users\UCS3\Desktop\NFC\library\Source\libnfc-1.4.2\DLL>
I'm not sure of exactly what to do.
I hope someone could help me.
I think I have given much information.
thank you
EDIT :
I managed to get a file libnfc.dll.
I had to deselect LIBNFC_DRIVER_PN533_USB.
I would like to still be able to fully compile the library to use a PN533.
For now I have a ACR122U.
Someone an idea?
Last edited by GGelec (2011-12-08 16:58:59)