问题2 安装igh遇见的问题及解决方法

错误1:

/home/hh/XenomaiIgh/ethercat/devices/r8169-4.9-ethercat.c:339:15:
error: ‘PCI_VENDOR_ID_NCUBE’ undeclared here (not in a function) {
PCI_DEVICE(PCI_VENDOR_ID_NCUBE, 0x8168), 0, 0, RTL_CFG_1 },
^ ./include/linux/pci.h:713:13: note: in definition of macro ‘PCI_DEVICE’ .vendor = (vend), .device = (dev),
^ make[3]: *** [/home/hh/XenomaiIgh/ethercat/devices/r8169-4.9-ethercat.o] 错误 1
make[2]: *** [/home/hh/XenomaiIgh/ethercat/devices] 错误 2 make[1]: ***
[module/home/hh/XenomaiIgh/ethercat] 错误 2 make[1]:正在离开目录
`/usr/src/linux-headers-4.9.38-xenomai-3.1’ make: *** [modules] 错误 2

解决问题1:
是8169网卡驱动(4.9版本)时有报错。
打开ethercat/devices/r8169-4.9-ethercat.c,把339行删掉。

在这里插入图片描述

错误2:

from /home/hh/XenomaiIgh/ethercat/master/rtdm_xenomai_v3.c:35:
include/xenomai/cobalt/kernel/timer.h:28:34: fatal error:
asm/xenomai/wrappers.h: 没有那个文件或目录 #include <asm/xenomai/wrappers.h>
^ compilation terminated. make[3]: [/home/hh/XenomaiIgh/ethercat/master/rtdm_xenomai_v3.o] 错误 1 make[2]:
*** [/home/hh/XenomaiIgh/ethercat/master] 错误 2 make[1]: *** [module/home/hh/XenomaiIgh/ethercat] 错误 2 make[1]:正在离开目录
`/usr/src/linux-headers-4.9.38-xenomai-3.1’

解决问题2;
运行;


./configure  --enable-generic=yes --enable-8139too=yes --enable-e1000=yes --enable-e1000e=yes --enable-r8169=yes --enable-rtdm=yes --enable-cycles=yes --enable-hrtimer=yes --with-xenomai-dir=/usr/xenomai

错误3:
运行./user_text

./user_text: error while loading shared libraries:
libethercat_rtdm.so.1: cannot open shared object file: No such file or
directory

问题3解决:

gedit /etc/ld.so.conf
添加lib目录
include /etc/ld.so.conf.d/*.conf
/usr/xenomai/lib
/usr/etherlab/lib

sudo /sbin/ldconfig -v  #同步动态库

error:

checking for Linux modules installation directory… ethercat checking
for kernel for 8139too driver… configure: error: kernel 5.4 not
available for 8139too driver!

  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

常驻客栈

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值