Error in verifying & uploading File/Examples/ros_lib/HelloWorld in Arduino IDE
Hi,
- When I tried to verify and compile File/Examples/ros_lib/HelloWorld in Arduino IDE,I had the following error.
Error compiling
In file included from /home/eman/sketchbook/libraries/ros_lib/ros.h:39:0,
from HelloWorld.cpp:6:
/home/eman/sketchbook/libraries/ros_lib/ArduinoHardware.h:38:22: fatal error: WProgram.h: No such file
or directory compilation terminated.
My question is, What is the cause of the following error?? and How can I solve it??
- My Distribution is ROS Fuerte
- I use Ubuntu 12.04LTS
Any help,please.
Asked by Eman on 2014-07-07 06:11:52 UTC
Comments
Is in File/Preferences the Sketchbook location set to /home/eman/sketchbook, i. e. does it contain libraries/ros_lib? Which board do you use? Is it correctly set in the IDE (Tools/Board)
Asked by Wolf on 2014-07-07 06:34:40 UTC
Yes, it contains libraries/ros_lib. I use the board " Arduino Uno ". Yes,it is set in the IDE (Tools/Board).
Asked by Eman on 2014-07-07 06:45:01 UTC
Inside ros_lib folder, the file ArduinoHardware.h has a line
include "WProgram.h"
replace that with
include "Arduino.h"
Asked by Sood on 2016-04-10 07:59:06 UTC
if this solved your issue plz post as answer...
Asked by Wolf on 2016-04-17 06:52:25 UTC