Comment corriger l'erreur de compilation ROS2 : ethercat_sdk_masterConfig.cmake manquant
简体中文
Français
Problème
Lors de la tentative de compilation d’un paquet ROS en utilisant colcon build, vous voyez un message d’erreur tel que
cmake_error_ethercat_sdk.txt
CMake Error at CMakeLists.txt:27 (find_package):
By not providing "Findethercat_sdk_master.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"ethercat_sdk_master", but CMake did not find one.
Could not find a package configuration file provided by
"ethercat_sdk_master" with any of the following names:
ethercat_sdk_masterConfig.cmake
ethercat_sdk_master-config.cmake
Add the installation prefix of "ethercat_sdk_master" to CMAKE_PREFIX_PATH
or set "ethercat_sdk_master_DIR" to a directory containing one of the above
files. If "ethercat_sdk_master" provides a separate development package or
SDK, be sure it has been installed.Solution
Malheureusement, l’installation de ceci n’est pas aussi simple que d’installer simplement un paquet.
En général, cela implique les étapes suivantes :
- Installez le maître EtherCAT. Je recommande d’installer le maître EtherLab en utilisant le dépôt APT : Voir notre post précédent A https://github.com/synapticon/Etherlab_EtherCAT_Master
- Installez le pilote ROS pour EtherCAT. Je recommande d’utiliser
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow