I successfully compiled libfprint v1.92 on Ubuntu 21.04.
Dependencies:
- gtk-doc-tools
- libfprint-2-dev
- libgirepository1.0-dev
- libgusb-dev
- libpam-wrapper
- libpam0g-dev
- libpamtest0-dev
- libpolkit-gobject-1-dev
- libxml2-utils
- python3-pip
- python3-pypamtest
pip packages, install with “pip install ‘package’”
- meson installed with “sudo pip install meson”
- ninja
- gobject
- python-dbusmock
1. Start with installing dependices
sudo apt install gtk-doc-tools libfprint-2-dev libgirepository1.0-dev libgusb-dev libpam-wrapper libpam0g-dev libpamtest0-dev libpolkit-gobject-1-dev libxml2-utils python3-pip python3-pypamtest
sudo pip install meson
pip install ninja gobject python-dbusmock
2. Compile newest version of libfprint
git clone https://gitlab.freedesktop.org/libfprint/libfprint.git
cd libfprint
3. Edit meson_options.txt
To make things easier I specified the just the goodix device in “meson_options.txt”
nano meson_options.txt
For the drivers option use replace default with goodixmoc. This compiles libfprint just for this fingerprint sensor.
option('drivers', description: 'Drivers to integrate, "default" selects the default set, "all" selects all drivers', type: 'string', value: 'goodixmoc')
4. Then build, compile and install
meson builddir
ninja -C builddir
5. Now for the newest version of fprintd
git clone libfprint / fprintd · GitLab
cd fprintd
meson builddir
ninja -C builddir
6. Enroll your fingerprint
fprintd-enroll
I believe that is all the steps you need to do. If you have any problems let me know and I would be happy to help. This is the first time I have ever written instructions.