Comment faire en sorte que CMake trouve les paquets OpenRobots
Problème
CMake ne trouve pas les paquets OpenRobots comme pinoccio, même si vous les avez installés avec par exemple apt install robotpkg-pinocchio.
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.Solution
Vous devez définir la variable d’environnement CMAKE_PREFIX_PATH sur le chemin où les paquets OpenRobots sont installés. C’est typiquement /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