This shows you the differences between two versions of the page.
— |
installing_libfprint [2017/01/03 21:27] (current) admin created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Introduction ===== | ||
+ | The library [[http://www.reactivated.net/fprint/wiki/Libfprint|libfprint]] provides support for several fingerprint readers. Even though this project wasn't officially aimed to embedded systems, I was able to successfully install it and run all of it's applications using U.are.U fingerprint readers from [[http://www.digitalpersona.com|Digital Persona]]. | ||
+ | ==== Install dependencies ==== | ||
+ | Libfprint makes use of four main libraries which are: LIBUSB, CRYPTO, GLIB and IMAGEMAGICK. First of all, you need libusb-1.0 installed on your system. Download the latest package sources (1.0.8 at the time) and install them: | ||
+ | |||
+ | <code> | ||
+ | cd /opt | ||
+ | |||
+ | wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2 | ||
+ | |||
+ | tar jxvf libusb-1.0.8.tar.bz2 | ||
+ | |||
+ | cd libusb-1.0.8/ | ||
+ | |||
+ | ./configure --prefix=/usr | ||
+ | |||
+ | make | ||
+ | |||
+ | make install | ||
+ | </code> | ||
+ | |||
+ | Now install: | ||
+ | |||
+ | <code> | ||
+ | apt-get install libusb-dev libssl-dev libglib2.0-dev imagemagick libmagick9-dev | ||
+ | </code> | ||
+ | |||
+ | Be patient, installing ''imagemagick'' can take a while, I ran into some trouble with packages being corrupted, simply remove them and install them again. | ||
+ | |||
+ | ==== Compiling libfprint ==== | ||
+ | Now that you have everything set up, download libfprint, compile it and install it: | ||
+ | |||
+ | <code> | ||
+ | cd /opt | ||
+ | |||
+ | wget http://sourceforge.net/projects/fprint/files/libfprint/v0.0.6/libfprint-0.0.6.tar.bz2 | ||
+ | |||
+ | tar jxvf libfprint-0.0.6.tar.bz2 | ||
+ | |||
+ | cd libfprint-0.0.6/ | ||
+ | |||
+ | ./configure --prefix=/usr | ||
+ | |||
+ | make | ||
+ | |||
+ | make install | ||
+ | </code> | ||
+ | |||
+ | ==== Examples ==== | ||
+ | After you have compiled and installed the library, go ahead and compile the examples: | ||
+ | |||
+ | <code> | ||
+ | cd examples/ | ||
+ | |||
+ | make | ||
+ | </code> | ||
+ | |||
+ | That's it! Go test them! |