Error on compiling
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 Keraj