找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 17|回复: 0

SIOCGIFINDEX的找不到的问题

[复制链接]

30

主题

26

回帖

4万

积分

管理员

积分
42066
发表于 2025-2-24 11:22:53 | 显示全部楼层 |阅读模式
../../src/drivers/engine_control/engine_control.c: In function 'open_can_port':
../../src/drivers/engine_control/engine_control.c:525:11: error: 'SIOCGIFINDEX' undeclared (first use in this function)
  525 |  ioctl(s, SIOCGIFINDEX, &ifr);
      |           ^~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
[22/439] Building CXX object src/modules/flight_mode_manager/tasks/Auto/CMakeFiles/FlightTaskAuto.dir/FlightTaskAuto.cpp.obj
ninja: build stopped: subcommand failed.
make: *** [Makefile:226:px4_fmu-v5_default] 错误 1


我知道答案 回答被采纳将会获得 10 金钱 已有0人回答
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|flightreview|小黑屋|PX4-Autopilot|PX4论坛

GMT+8, 2025-3-12 18:57 , Processed in 0.059917 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表