0

所以这就是现在发生的事情,我正在使用来自 URG 激光传感器的代码,我正在尝试在 Arduino 软件中编译它以查看它是否可以测试。但是,当我单击“编译”时,会显示此错误消息:

In file included from /home/hadoop/sketchbook/libraries/urg/urg_connection.h:17:0,
                 from /home/hadoop/sketchbook/libraries/urg/urg_sensor.h:15,
                 from Laser_hpp.ino:4:
/home/hadoop/sketchbook/libraries/urg/urg_serial.h:22:21: fatal error: termios.h: No such file or directory
 #include <termios.h>
                     ^
compilation terminated.

我下载了我为 Ubuntu Linux 找到的所有 termios 库,但它仍然给我错误。我找到的库将副本复制到 urg_sensor.h 文件所在的位置,但效果不佳。

我尝试通过以下命令安装:sudo apt-get install libc6 或 libc6-dev(用于 linux 的 termios 库),但它们已经是最新版本。

所以,我不知道还能做什么。如果有人对我现在应该做什么有任何想法或意见,我真的很感激。

谢谢你!

4

1 回答 1

0

termios.h在 AVR Libc 中不可用。在尝试编译之前,您需要将代码从 Linux 移植到 Arduino 平台。

于 2015-06-24T15:31:00.493 回答