Skip to content

Build fails first time due to libpcre #259

@dashxdr

Description

@dashxdr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions