labapart / gattlib

Library to access GATT information from BLE (Bluetooth Low Energy) devices
http://labapart.com/
436 stars 157 forks source link

Build fails first time due to libpcre #259

Open dashxdr opened 8 months ago

dashxdr commented 8 months ago

Build DBus gattlib for Bluez v5.66 -- Checking for one of the modules 'libpcre' CMake Error at /usr/share/cmake-3.25/Modules/FindPkgConfig.cmake:894 (message): None of the required 'libpcre' found Call Stack (most recent call first): examples/ble_scan/CMakeLists.txt:27 (pkg_search_module)

This is when I do mkdir build && cd build && cmake .. The system has no previously installed gattlib.

I fixed it by changing the top level CMakeLists.txt: option(GATTLIB_BUILD_EXAMPLES "Build GattLib examples" NO) (The option was YES) This lets me do the "cmake .." step and then make && make install Then I can change that back to YES and everything is fine