Error in verifying & uploading File/Examples/ros_lib/HelloWorld in Arduino IDE [closed]

asked 2014-07-07 06:11:52 -0500

Eman gravatar image

updated 2014-07-07 06:22:50 -0500

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.

image description

image description

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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-11-02 01:52:01.409861

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)

Wolf gravatar imageWolf ( 2014-07-07 06:34:40 -0500 )edit

Yes, it contains libraries/ros_lib. I use the board " Arduino Uno ". Yes,it is set in the IDE (Tools/Board).

Eman gravatar imageEman ( 2014-07-07 06:45:01 -0500 )edit

Inside ros_lib folder, the file ArduinoHardware.h has a line

#include "WProgram.h"

replace that with

#include "Arduino.h"

Sood gravatar imageSood ( 2016-04-10 07:59:06 -0500 )edit

if this solved your issue plz post as answer...

Wolf gravatar imageWolf ( 2016-04-17 06:52:25 -0500 )edit