Topic: [SOLVED] Mingw problem with makefile libnfc 1.4.2
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-184.108.40.206 \ 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:
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
:32:3: error: unknown type name 'usb_dev_handle'
:39:32: warning: 'struct usb_device' declared inside parameter list [enabled by
:39:32: warning: its scope is only this definition or declaration, which is prob
ably not what you want [enabled by default]
mingw32-make: *** [libnfc/CMakeFiles/nfc.dir/nfc.c.obj] Error 1
mingw32-make: *** [libnfc/CMakeFiles/nfc.dir/all] Error 2
mingw32-make: *** [all] Error 2
I'm not sure of exactly what to do.
I hope someone could help me.
I think I have given much information.
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?