5. Setup and compile:
$ cd libnfc-1.5.0
NOTE: if you encounter the problem saying "have unmet dependencies ...." when installing libudev-dev
you can try
$sudo apt-get install libudev0=175-0ubuntu9
then try
$sudo apt-get install libudev-dev
DO remember the method to solve the unmet dependencies! try to add a version number(like =175-0ubuntu9)
you can also try the following command line if you encounter such a notification from apt-get:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
g++-4.7 : Depends: gcc-4.7-base (= 4.7.2-11precise2) but it is not going to be installed
Depends: gcc-4.7 (= 4.7.2-11precise2) but it is not going to be installed
Depends: libstdc++6-4.7-dev (= 4.7.2-11precise2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Try with the following commands in order:
- sudo apt-get autoclean
- sudo apt-get -f install
- sudo dpkg --configure -a
- sudo apt-get -f install
Let's see if this fixes the problem