ICube-Robotics / ethercat_driver_ros2

Hardware Interface for EtherCAT module integration with ros2_control
https://icube-robotics.github.io/ethercat_driver_ros2/
Apache License 2.0
156 stars 44 forks source link

failed to compile with ros-foxy on an arm platform. #118

Open wei1224hf opened 7 months ago

wei1224hf commented 7 months ago

here is the error: image

`In file included from /home/linaro/ros2_ws/src/ethercat_driver_ros2/ethercat_manager/src/ethercat_sdo_srv_server.cpp:24: /home/linaro/ros2_ws/src/ethercat_driver_ros2/ethercat_manager/include/ethercat_manager/ec_master_async.hpp: In member function ‘void ethercat_manager::EcMasterAsync::close()’: /home/linaro/ros2_ws/src/ethercat_driver_ros2/ethercat_manager/include/ethercat_manager/ec_masterasync.hpp:58:9: error: ‘::close’ has not been declared; did you mean ‘pclose’? 58 | ::close(fd); | ^~~~~ | pclose make[2]: [CMakeFiles/ethercat_sdo_srv_server.dir/build.make:63: CMakeFiles/ethercat_sdo_srv_server.dir/src/ethercat_sdo_srv_server.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:78: CMakeFiles/ethercat_sdo_srv_server.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

Failed <<< ethercat_manager [15.0s, exited with code 2] Aborted <<< ethercat_interface [46.3s]

Summary: 1 package finished [47.2s] 1 package failed: ethercat_manager 1 package aborted: ethercat_interface 2 packages had stderr output: ethercat_interface ethercat_manager 8 packages not processed `

the ethercat igh has been instlled well and worked fine.

yguel commented 7 months ago

Thanks for reporting. Which arm platform are you using ? (can you run the 2 following commands and give me their result:

lscpu
uname -a

What is the compiler that is used (name, version) ?

wei1224hf commented 5 months ago

Thanks for reporting. Which arm platform are you using ? (can you run the 2 following commands and give me their result:

lscpu
uname -a

What is the compiler that is used (name, version) ?

sorry , my arm board has been taken away,
I will reply the details when I got the arm board .