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

After run command 'ninja', i noticed error #22

Closed miroslav-lee closed 5 years ago

miroslav-lee commented 5 years ago

I run commands:

venv/bin/meson builddir_dbg
venv/bin/meson configure builddir_dbg -Ddebug_log=true
cd builddir_dbg
ninja

But after ninja, I noticed error: ../libfprint/drivers/elan.c:827:2: error: implicit declaration of function ‘G_DEBUG_HERE’ [-Werror=implicit-function-declaration]

iafilatov commented 5 years ago

Are you building elan-glib-2.50? This looks similar to what you get when you build this branch with glib<2.50. Can you try elan branch? While were at it, can you also check your glib version (pkg-config --modversion glib-2.0 )?

miroslav-lee commented 5 years ago

2.48.2

How I can update glib-2.0?

iafilatov commented 5 years ago

First of all, I'd recommend you to try building elan (or the default elan-github-msg, they're the same) branch. If you tried that it should've failed but I've just pushed a fix so can you please try again? As for updating glib, the best thing to do is to upgrade your linux distro to a newer version... glib is a core package so I really don't recommend trying to install a version that's not distributed through the original package channel. Things might break badly. For example, speaking ubuntu, you need bionic (18.04) or newer.

miroslav-lee commented 5 years ago

Is your manual actual?

iafilatov commented 5 years ago

It is, although if your package manager contains a recent version of meson, building can be even simpler, e.g.

apt install ninja-build meson
meson builddir_dbg
meson configure builddir_dbg -Ddebug_log=true
cd builddir_dbg
ninja

The problems section is, unfortunately, still valid. Except the 0x0903 bug, I think I've fixed it. At least I haven't had new reports for a while.