iafilatov / libfprint

libfrpint driver for a family of Elantech fingerprint sensors
https://cgit.freedesktop.org/libfprint/libfprint/
GNU Lesser General Public License v2.1
146 stars 20 forks source link

Problem with fprintd-enroll #18

Closed gish94 closed 5 years ago

gish94 commented 5 years ago

I have done all things as in instructions and i can get my fingerprint image from sudo ./examples/img_capture but after ninja install, doing "apt install libpam-fprintd" and making fprintd-enroll i am getting "list_devices failed: No devices available" what i am doing wrong?

here is my Elan device log from lsusb Bus 001 Device 003: ID 04f3:0c1a Elan Microelectronics Corp.

iafilatov commented 5 years ago

Right after you you install all the required packages and libfprint you may need to

  1. restart frpintd to link against the correct version of libfprint: sudo service fprintd restart
  2. if the above doesn't work, check that linker picks the correct version: ldd /usr/lib/fprintd/fprintd | grep libfprint It should show something like libfprint.so.0 => /usr/local/lib/libfprint.so.0 (0x00007fae2d7ed000) where the most important part is local. There will be another version of libprint installed on your system as dependency of fprintd package which doesn't support your device (spoiler: this is going to change pretty soon). If it's something like /usr/lib/libfprint.so.0, its the wrong one. Try running sudo ldconfig and repeating 1, 2.
  3. If 1 and 2 don't work you may need to check the configuration of ldconfig to make sure that libs you install from source take precedence over libs from packages. But this should already be the default.
iafilatov commented 5 years ago

Please reopen if the problem persists.