CMake-Fehler Could not find a package configuration file provided by "boost_unit_test_framework" beheben
English
Deutsch
Problem:
Beim Kompilieren des CMake-basierten C++
cmake_error.txt
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package):
Could not find a package configuration file provided by
"boost_unit_test_framework" (requested version 1.71.0) with any of the
following names:
boost_unit_test_frameworkConfig.cmake
boost_unit_test_framework-config.cmake
Add the installation prefix of "boost_unit_test_framework" to
CMAKE_PREFIX_PATH or set "boost_unit_test_framework_DIR" to a directory
containing one of the above files. If "boost_unit_test_framework" provides
a separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
OCCUtils/CMakeLists.txt:58 (find_package)
-- Configuring incomplete, errors occurred!Lösung
Die Fehlermeldung besagt, dass die boost unit test-Bibliothek nicht installiert ist (oder CMake sie nicht finden kann).
Auf Ubuntu z.B. installieren mit
install_boost_unit_test.sh
sudo apt -y install libboost-test-devAuf Windows kann sie über die vorgefertigten Boost-Binärdateien für Windows installiert werden.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow