【 以下文字转载自 Embedded 讨论区 】
发信人: jingjm (jimmy), 信区: Embedded
标 题: configure: error: Failed to find Linux sources
发信站: 水木社区 (Fri Apr 12 11:12:23 2024), 站内
RK3568 嵌入式开发板 编译EtherCAT IgH 代码
内核相关的不太懂,请教如何解决
topeet@topeet:~/ethercat$ sudo ./configure --enable-8139too=no
...
configure: error: Failed to find Linux sources. Use --with-linux-dir!
环境Ubuntu 20.04,但是内核是4.19的,应该是迅为改过的内核
topeet@topeet:~/ethercat$ uname -r
4.19.232
topeet@topeet:~/ethercat$ uname -a
Linux topeet 4.19.232 #13 SMP Sat Mar 23 16:01:21 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
topeet@topeet:~/ethercat$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"
--
FROM 202.106.149.*