Repository navigation
Installation
dilshan edited this page Nov 22, 2026
·
2 revisions
- Linux, a C99 compiler (
gcc/clang),make, kernel headers (linux/usbdevice_fs.h, normally fromlinux-libc-dev) - GTK 3 development files and
pkg-config
On Debian/Ubuntu:
sudo apt install build-essential pkg-config libgtk-3-devlibusb is not required.
cd openlru-lib
make # builds the library and the examples
make lib # library only
make clean # (optional) removes the build/ directoryOutputs are placed in build/:
| File | Purpose |
|---|---|
build/libopenlru.a |
Static library |
build/libopenlru.so |
Shared library |
build/gtk_probe |
Sample application (list sensors, test the link) |
build/gtk_capture |
Sample application (capture image and template) |
If GTK is missing, make lib still work.
sudo make install # installs under /usr/local
sudo make install PREFIX=/usr # or choose a prefixThis installs libopenlru.a, libopenlru.so and openlru.h.
Static linking, without installing:
gcc myapp.c -I/path/to/openlru-lib/include /path/to/openlru-lib/build/libopenlru.a -o myappIf system-wide instalation is done:
gcc myapp.c -lopenlru -o myappIn source: #include <openlru.h> (or "openlru.h").
The sensor is accessed through /dev/bus/usb/.... To let normal users open it:
sudo cp udev/99-openlru.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm triggerThen unplug and re-plug the sensor.
| Variable | Effect |
|---|---|
OLRU_DENY_MSC |
If set, olru_probe() hides the mass-storage-type sensors (2009:7638, 2109:7638). Useful if the same ids are used by an ordinary USB drive on your system. |
openlru-lib - Open LRU Fingerprint Library · Home