Wie man CMake OpenRobots-Pakete finden lässt
Problem
CMake findet OpenRobots-Pakete wie pinoccio nicht, obwohl Sie sie z.B. mit apt install robotpkg-pinocchio installiert haben.
cmake_pinocchio_error.txt
CMake Error at CMakeLists.txt:21 (find_package):
By not providing "Findpinocchio.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"pinocchio", but CMake did not find one.
Could not find a package configuration file provided by "pinocchio" with
any of the following names:
pinocchioConfig.cmake
pinocchio-config.cmake
Add the installation prefix of "pinocchio" to CMAKE_PREFIX_PATH or set
"pinocchio_DIR" to a directory containing one of the above files. If
"pinocchio" provides a separate development package or SDK, be sure it has
been installed.Lösung
Sie müssen die CMAKE_PREFIX_PATH-Umgebungsvariable auf den Pfad setzen, in dem die OpenRobots-Pakete installiert sind. Dies ist typischerweise /opt/robotpkg.
cmake_openrobots.sh
cmake . -DCMAKE_PREFIX_PATH=/opt/robotpkgIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow