CMake : comment corriger l'erreur Could not find a package configuration file provided by "gRPC"
English
Français
Problème
Lors de la compilation d’un projet C++ qui dépend de gRPC, vous pouvez rencontrer l’erreur suivante :
cmake-grpc-not-found-error.txt
CMake Error at CMakeLists.txt:37 (find_package):
Could not find a package configuration file provided by "gRPC" with any of
the following names:
gRPCConfig.cmake
grpc-config.cmake
Add the installation prefix of "gRPC" to CMAKE_PREFIX_PATH or set
"gRPC_DIR" to a directory containing one of the above files. If "gRPC"
provides a separate development package or SDK, be sure it has been
installed.Solution
Vous devez installer libgrpc-dev pour obtenir les fichiers de configuration CMake nécessaires à gRPC. Vous pouvez le faire avec la commande suivante :
install-grpc-dev.sh
sudo apt -y install libgrpc-devCheck out similar posts by category:
C/C++
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow