Topic: [Solved] Windows noob need help installing libnfc

i am currently in the part where i need to use mingw32-make, but i don't know where it goes wrong.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>D:

D:\>cd libnfc-build

D:\libnfc-build>mingw32-make
Scanning dependencies of target nfc
[  1%] Building C object libnfc/CMakeFiles/nfc.dir/nfc.c.obj
[  3%] Building C object libnfc/CMakeFiles/nfc.dir/nfc-device.c.obj
[  5%] Building C object libnfc/CMakeFiles/nfc.dir/nfc-emulation.c.obj
[  7%] Building C object libnfc/CMakeFiles/nfc.dir/nfc-internal.c.obj
[  8%] Building C object libnfc/CMakeFiles/nfc.dir/conf.c.obj
[ 10%] Building C object libnfc/CMakeFiles/nfc.dir/iso14443-subr.c.obj
[ 12%] Building C object libnfc/CMakeFiles/nfc.dir/mirror-subr.c.obj
[ 14%] Building C object libnfc/CMakeFiles/nfc.dir/target-subr.c.obj
[ 16%] Building C object libnfc/CMakeFiles/nfc.dir/drivers/acr122_usb.c.obj
[ 17%] Building C object libnfc/CMakeFiles/nfc.dir/drivers/acr122s.c.obj
D:\tools\libnfc-1.7.1\libnfc\drivers\acr122s.c: In function 'acr122s_send_frame'
:
D:\tools\libnfc-1.7.1\libnfc\drivers\acr122s.c:207:11: warning: assignment disca
rds 'volatile' qualifier from pointer target type [enabled by default]
D:\tools\libnfc-1.7.1\libnfc\drivers\acr122s.c: In function 'acr122s_receive':
D:\tools\libnfc-1.7.1\libnfc\drivers\acr122s.c:687:11: warning: assignment disca
rds 'volatile' qualifier from pointer target type [enabled by default]
[ 19%] Building C object libnfc/CMakeFiles/nfc.dir/__/contrib/win32/libnfc/buses
/uart.c.obj
[ 21%] Building C object libnfc/CMakeFiles/nfc.dir/chips/pn53x.c.obj
[ 23%] Building C object libnfc/CMakeFiles/nfc.dir/__/contrib/win32/stdlib.c.obj

[ 25%] Building RC object libnfc/CMakeFiles/nfc.dir/__/windows/libnfc.rc.obj
[ 26%] Building C object libnfc/CMakeFiles/nfc.dir/log.c.obj
[ 28%] Building C object libnfc/CMakeFiles/nfc.dir/__/contrib/win32/libnfc/log-i
nternal.c.obj
In file included from D:\tools\libnfc-1.7.1\contrib\win32\libnfc\log-internal.c:
32:0:
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:142:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:143:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:716:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:717:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:722:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:733:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:745:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:746:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:751:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:760:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:770:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:771:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:776:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:787:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:799:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:800:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:805:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:818:1: error: duplicate 'extern'
c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:1755:1: error: duplicate 'extern'

c:\progra~1\haskel~1\201420~1.0\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/..
/../../../x86_64-w64-mingw32/include/strsafe.h:1827:1: error: duplicate 'extern'

mingw32-make[2]: *** [libnfc/CMakeFiles/nfc.dir/__/contrib/win32/libnfc/log-inte
rnal.c.obj] Error 1
mingw32-make[1]: *** [libnfc/CMakeFiles/nfc.dir/all] Error 2
mingw32-make: *** [all] Error 2

D:\libnfc-build>

Re: [Solved] Windows noob need help installing libnfc

For beginners I recomend use Ubuntu. You can install libnfc with apt-get very easy.

Re: [Solved] Windows noob need help installing libnfc

jonsbun wrote:

For beginners I recomend use Ubuntu. You can install libnfc with apt-get very easy.

If I'm not wrong you mean to say that it can not be done without use of Ubuntu ?Right
If you're right then you have to explain little bit more whats the reason of behind it?

Re: [Solved] Windows noob need help installing libnfc

libnfc do work on various platform : GNU/Linux, Mac OS X and Windows.

Please read : README* files in sources, dedicated page on wiki (may need updates),

http://nfc-tools.org/index.php?title=Libnfc
http://www.mobilefish.com/developer/libnfc/libnfc.html

Romuald Conty