2013年2月26日星期二

compile libnfc for pn532 breakout board

compile libnfc for pn532 breakout board

Step 1: Download the latest version of libnfc (ex. "libnfc-1.4.1.tar.gz") and extract the contents
$ wget http://libnfc.googlecode.com/files/libnfc-x.x.x.tar.gz
$ tar -xvzf libnfc-x.x.x.tar.gz
$ cd libnfc-x.x.x
Step 2: Configure libnfc for PN532 and UART*
$ ./configure --with-drivers=pn532_uart --enable-serial-autoprobe
*Note: libnfc can also be built in debug mode by adding '--enable-serial-autoprobe' (minus the single quotes) to the configure options


Step 3: Build and install libnfc
$ make clean
$ make
$ make install

Step 4: Check for installed devices
$ cd examples
$ ./nfc-list


Step 5: all the commands on example and util directory




没有评论:

发表评论