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

CMake fails to find abslConfig.cmake/absl-config.cmake #16732

Open
suhani-goel opened this issue May 3, 2024 · 1 comment
Open

CMake fails to find abslConfig.cmake/absl-config.cmake #16732

suhani-goel opened this issue May 3, 2024 · 1 comment
Labels
untriaged auto added to all issues by default when created.

Comments

@suhani-goel
Copy link

What version of protobuf and what language are you using?
Version: 4.25.3

What operating system (Linux, Windows, ...) and version?
RHEL7

Below error while trying to build protobuf. Tried including -DBUILD_DEPS:BOOL=ON but didn't work.

CMake Error at cmake/abseil-cpp.cmake:36 (find_package):
Could not find a package configuration file provided by "absl" with any of
the following names:

abslConfig.cmake
absl-config.cmake

Add the installation prefix of "absl" to CMAKE_PREFIX_PATH or set
"absl_DIR" to a directory containing one of the above files. If "absl"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:294 (include)

-- Configuring incomplete, errors occurred!

@suhani-goel suhani-goel added the untriaged auto added to all issues by default when created. label May 3, 2024
@sgavathe
Copy link

how are you building it?

check their readme page.
https://github.com/protocolbuffers/protobuf/blob/main/cmake/README.md

RUN  cmake -DCMAKE_CXX_STANDARD=23 -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_FIND_DEBUG_MODE=OFF -DBUILD_DEPS=ON -Dabsl_DIR=third_party/abseil-cpp/lib/cmake/absl  -Dprotobuf_ABSL_PROVIDER=package . && \
  cmake --build . && \
  cmake --install .
  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged auto added to all issues by default when created.
Projects
None yet
Development

No branches or pull requests

2 participants