xantares / nfc-bindings

scripting language bindings for libnfc
BSD 3-Clause "New" or "Revised" License
23 stars 9 forks source link

Error when building #5

Closed tian2992 closed 9 years ago

tian2992 commented 9 years ago

I get this error when building nfc-bindings on Raspberry Pi 2, using libnfc 1.7.1 from git, swig 2.0 from Debian repos.

pi@raspi2 ~/devel/nfc-bindings $ make
[ 50%] Building C object python/CMakeFiles/_nfc.dir/__/nfcPYTHON_wrap.c.o
/home/pi/devel/nfc-bindings/python/../nfcPYTHON_wrap.c: In function ‘_wrap_device_get_supported_modulation’:
/home/pi/devel/nfc-bindings/python/../nfcPYTHON_wrap.c:4478:69: warning: passing argument 3 of ‘nfc_device_get_supported_modulation’ from incompatible pointer type [enabled by default]
/usr/local/include/nfc/nfc.h:128:16: note: expected ‘const enum nfc_modulation_type ** const’ but argument is of type ‘const enum nfc_modulation_type **’
/home/pi/devel/nfc-bindings/python/../nfcPYTHON_wrap.c: In function ‘_wrap_device_get_supported_baud_rate__SWIG_0’:
/home/pi/devel/nfc-bindings/python/../nfcPYTHON_wrap.c:4518:68: error: incompatible type for argument 3 of ‘nfc_device_get_supported_baud_rate’
/usr/local/include/nfc/nfc.h:129:16: note: expected ‘nfc_modulation_type’ but argument is of type ‘const enum nfc_baud_rate **’
/home/pi/devel/nfc-bindings/python/../nfcPYTHON_wrap.c:4518:68: error: too few arguments to function ‘nfc_device_get_supported_baud_rate’
/usr/local/include/nfc/nfc.h:129:16: note: declared here
/home/pi/devel/nfc-bindings/python/../nfcPYTHON_wrap.c: In function ‘_wrap_device_get_supported_baud_rate__SWIG_1’:
/home/pi/devel/nfc-bindings/python/../nfcPYTHON_wrap.c:8047:73: warning: passing argument 4 of ‘nfc_device_get_supported_baud_rate’ from incompatible pointer type [enabled by default]
/usr/local/include/nfc/nfc.h:129:16: note: expected ‘const enum nfc_baud_rate ** const’ but argument is of type ‘const enum nfc_baud_rate **’
python/CMakeFiles/_nfc.dir/build.make:62: recipe for target 'python/CMakeFiles/_nfc.dir/__/nfcPYTHON_wrap.c.o' failed
make[2]: *** [python/CMakeFiles/_nfc.dir/__/nfcPYTHON_wrap.c.o] Error 1
CMakeFiles/Makefile2:77: recipe for target 'python/CMakeFiles/_nfc.dir/all' failed
make[1]: *** [python/CMakeFiles/_nfc.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
xantares commented 9 years ago

dont use libnfc git head, use tag 1.7.1