Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails first time due to libpcre #259

Open
dashxdr opened this issue Nov 5, 2023 · 0 comments
Open

Build fails first time due to libpcre #259

dashxdr opened this issue Nov 5, 2023 · 0 comments

Comments

@dashxdr
Copy link

dashxdr commented Nov 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant