Error in verifying & uploading File/Examples/ros_lib/HelloWorld in Arduino IDE [closed]
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.
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)
Yes, it contains libraries/ros_lib. I use the board " Arduino Uno ". Yes,it is set in the IDE (Tools/Board).
Inside ros_lib folder, the file ArduinoHardware.h has a line
#include "WProgram.h"
replace that with
#include "Arduino.h"
if this solved your issue plz post as answer...