mfoc——configure error libnfc >=1.7.0 is mandatory

mfoc在编译中遇到各种坑,完全没有思路,所以记一下在编译中遇到的坑:

1.配置的时候./configure然后就会出现错误:

mfoc——configure error libnfc >=1.7.0 is mandatory

configure错误之后,就会make不成功

mfoc——configure error libnfc >=1.7.0 is mandatory

2.问题和解决办法:

   问题:configure error libnfc >=1.7.0 is mandatory

               原来是mfoc编译需要的libnfc库没有安装

  解决办法:

          1.libnfc-1.7.0-rc7压缩包下载下来

mfoc——configure error libnfc >=1.7.0 is mandatory

          2.解压出来

mfoc——configure error libnfc >=1.7.0 is mandatory

         3.安装:

                   ./configure --with-drivers=pn532_uart

mfoc——configure error libnfc >=1.7.0 is mandatory

                  安装成功之后,会如下显示:

mfoc——configure error libnfc >=1.7.0 is mandatory

                    make

mfoc——configure error libnfc >=1.7.0 is mandatory

                   make install

mfoc——configure error libnfc >=1.7.0 is mandatory

完毕!

(新手编译,还有很多不懂的地方,纯靠运气。有做得不对的地方还请大佬们赐教!)