libfprint issueshttps://gitlab.freedesktop.org/vincenth/libfprint/-/issues2019-09-11T10:58:19Zhttps://gitlab.freedesktop.org/vincenth/libfprint/-/issues/2Error on compiling2019-09-11T10:58:19ZKeraj AndError on compilingHi guys,
many thanks for your efforts on development for Synaptics fingerprint reader.
I've just bought a new Thinkpad E490 and installed Ubuntu 18.04 on it. Unfortunately, there is no native support for the build-in fingerprint reader...Hi guys,
many thanks for your efforts on development for Synaptics fingerprint reader.
I've just bought a new Thinkpad E490 and installed Ubuntu 18.04 on it. Unfortunately, there is no native support for the build-in fingerprint reader from Synaptics.
After a long searching I was happy to find your project site and wanted to give it a try.
On compiling the last available version libfprint-synaptics-driver-20190617 I'm getting the following error:
[10/97] Compiling C object 'libfprint/642ed89@@fprint@sha/fpi-sync.c.o'.
../libfprint/fpi-sync.c: In function ‘fp_delete_finger’:
../libfprint/fpi-sync.c:472:11: warning: unused variable ‘stopped’ [-Wunused-variable]
gboolean stopped = FALSE;
^~~~~~~
[12/97] Compiling C object 'libfprint/642ed89@@fprint@sha/fpi-poll.c.o'.
FAILED: libfprint/642ed89@@fprint@sha/fpi-poll.c.o
cc -Ilibfprint/642ed89@@fprint@sha -Ilibfprint -I../libfprint -I. -I../ -I../libfprint/nbis/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libusb-1.0 -I/usr/include/nss -I/usr/include/nspr -I/usr/include/pixman-1 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O2 -g -D_GNU_SOURCE '-DG_LOG_DOMAIN="libfprint"' -fPIC -fgnu89-inline -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -MD -MQ 'libfprint/642ed89@@fprint@sha/fpi-poll.c.o' -MF 'libfprint/642ed89@@fprint@sha/fpi-poll.c.o.d' -o 'libfprint/642ed89@@fprint@sha/fpi-poll.c.o' -c ../libfprint/fpi-poll.c
../libfprint/fpi-poll.c: In function ‘fpi_io_condition_add’:
../libfprint/fpi-poll.c:248:11: error: implicit declaration of function ‘G_SOURCE_FUNC’; did you mean ‘G_INLINE_FUNC’? [-Werror=implicit-function-declaration]
G_SOURCE_FUNC (fpi_io_condition_wrapper_cb),
^~~~~~~~~~~~~
G_INLINE_FUNC
../libfprint/fpi-poll.c:248:11: warning: passing argument 2 of ‘g_source_set_callback’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/include/glib-2.0/glib/giochannel.h:33:0,
from /usr/include/glib-2.0/glib.h:54,
from ../libfprint/fp_internal.h:27,
from ../libfprint/fpi-poll.c:22:
/usr/include/glib-2.0/glib/gmain.h:462:10: note: expected ‘GSourceFunc {aka int (*)(void *)}’ but argument is of type ‘int’
void g_source_set_callback (GSource *source,
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
[17/97] Compiling C object 'libfprint/642ed89@@fprint@sha/drivers_upeksonly.c.o'.
ninja: build stopped: subcommand failed.
Any help would be very appreciated!
With best regards
Kerajhttps://gitlab.freedesktop.org/vincenth/libfprint/-/issues/1T490s: enroll failed2019-09-11T11:02:32ZalxchkT490s: enroll failedHi! Trying to use your branch synaptics-driver-20190617 with T490s. Device is detected, but enroll failed with corrupted message. Don't know, does this code supposed to be functional, but, anyway.
```
(process:9473): libfprint-DEBUG: 22...Hi! Trying to use your branch synaptics-driver-20190617 with T490s. Device is detected, but enroll failed with corrupted message. Don't know, does this code supposed to be functional, but, anyway.
```
(process:9473): libfprint-DEBUG: 22:07:30.599: driver synaptics supports USB device 06cb:00bd
(process:9473): libfprint-DEBUG: 22:07:30.599: selected driver synaptics supports USB device 06cb:00bd
Found device claimed by Synaptics Sensors driver
(process:9473): libfprint-sync-DEBUG: 22:07:30.599: 46369534159: ../libfprint/fpi-sync.c:57
(process:9473): libfprint-async-DEBUG: 22:07:30.599: 46369534171: ../libfprint/fpi-async.c:76
(process:9473): libfprint-synaptics-DEBUG: 22:07:30.695: dev_init
(process:9473): libfprint-DEBUG: 22:07:30.696: bmkt_init: context size: 448
(process:9473): libfprint-synaptics-DEBUG: 22:07:30.696: bmkt_init successfully.
(process:9473): libfprint-DEBUG: 22:07:30.944: transferred: 1
(process:9473): libfprint-DEBUG: 22:07:30.944: transferred: 38
(process:9473): libfprint-DEBUG: 22:07:30.944: Build Time: 1545962448
(process:9473): libfprint-DEBUG: 22:07:30.945: Build Num: 2884577
(process:9473): libfprint-DEBUG: 22:07:30.945: Version: 10.1
(process:9473): libfprint-DEBUG: 22:07:30.945: Target: 1
(process:9473): libfprint-DEBUG: 22:07:30.945: Product: 65
(process:9473): libfprint-DEBUG: 22:07:30.945: transferred: 5
(process:9473): libfprint-DEBUG: 22:07:30.945: transferred: 2
(process:9473): libfprint-synaptics-DEBUG: 22:07:30.945: Successfully initialized the FPS
(process:9473): libfprint-async-DEBUG: 22:07:30.945: status 0
(process:9473): libfprint-sync-DEBUG: 22:07:30.945: status 0
Opened device. It's now time to enroll your finger.
You will need to successfully scan your finger 8 times to complete the process.
Scan your finger now.
(process:9473): libfprint-sync-DEBUG: 22:07:30.945: 46369880838: ../libfprint/fpi-sync.c:193
(process:9473): libfprint-async-DEBUG: 22:07:30.945: starting enrollment
(process:9473): libfprint-synaptics-DEBUG: 22:07:30.945: enroll_start
(process:9473): libfprint-DEBUG: 22:07:30.946: session_ctx->seq_num=2, sensor->seq_num=3
(process:9473): libfprint-sync-DEBUG: 22:07:30.946: synaptics will handle enroll stage 0/7
(process:9473): libfprint-DEBUG: 22:07:30.946: bmkt_op_sm state = 0
(process:9473): libfprint-WARNING **: 22:07:30.946: Corrupt Message Received (full len: 2)
(process:9473): libfprint-DEBUG: 22:07:30.946: bmkt_op_sm state = 1
```