Hi all,
Have been using the IDE intensively for weeks, for projects involving UNO, MEGA 2560 and Breadboard (ATMega368 internal clock).
I'm running on Ubunto 12.04 (can't upgrade to 14 due to HW compatibility issues), with the 1.0.5 IDE.
A couple of days ago there were some updates and I think I saw gcc amongst them is that a clue or a red herring? Anyway - I've been doing other things the last few days : getting my Foldarap 3D printer finished and learning FreeCAD.
Today I'm back to the SW side of a major project and, horror, I cant compile anything, not even BLINK for a UNO.
In the compiler traces I see "Arduino.h no such file..."
Is there an environment variable or something that should point to the correct file (it is there under /usr/share/arduino/arduino-1.0.5/hardware/arduino/cores/arduino) ?
In my attempts to get things working I've also trashed my special pins.h file for the "breadboard" board : I'll have to go looking for my post on that subject, also.
Please help !
Remove everything from the repositories that could conflict with other versions of Arduino: remove Arduino, remove most Java (keep only the basic) and remove the Java RXTX.
Download the Arduino 1.0.5, or 1.5.7 BETA (I prefer the 1.5.7).
Unpack it in a folder and run it from that folder.
What is the hardware problem of your computer with Ubuntu 14.04 ?
Do you have 14.04 installed elsewhere on your computer ? Perhaps is has been fixed by now.
I've already tried removing and replacing Arduino : that's how I lost my special board configs...
No, there is no Ubuntu 14 anywhere on the machine.
I'm not sure I understand why presence of Java would make the Arduino IDE not find header files...
OK, so I've installed some things recently for my 3D printing - but nothing more than I would expect most people to have if they're doing typical fablab stuff...
Glenn81:
I'm not sure I understand why presence of Java would make the Arduino IDE not find header files...
Neither am I ![]()
But the problem seems to be a change in the Arduino system files or a mix of different versions (either different Arduino versions or different Java versions).
Are you sure there is nothing left in the repositories of Arduino ?
You can try another computer, at least to check that Arduino will compile a simple sketch without the fablab extras.
This should get you a working system and at your leisure you can try and fix your other installation.
Download the arduino 1.0.5 tarball from the Arduino website. Unzip the tarball in your home directory. Open a terminal and cd to the arduino-1.0.5 directory and type ./arduino at the command line, and if you have a java runtime installed you should be good to go. The tarball and the Ubuntu stuff will coexist. You can put a link to the arduino script on your desktop, if you want, but DO NOT relocate the arduino script from the arduino-1.0.5 directory.
Hi, thanks for the inputs. I've already tried the last suggestion. I have added comments to the arduino script that is called to launch the IDE. Here are the traces :
Appdir : /home/glenn/arduino
Classpath : :/usr/share/java/mysql.jar:java/lib/rt.jar:java/lib/tools.jar:lib/RXTXcomm.jar:lib/core.jar:lib/ecj.jar:lib/jna.jar:lib/pde.jar
LD PLibrary path : /home/glenn/arduino/lib
Path : /home/glenn/arduino/java/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Arduino Version: 1.0.5
Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Arduino Version: 1.0.5
(blank lines )
Blink.ino:10:21: error: Arduino.h: No such file or directory
Blink.ino: In function ‘void setup()’:
Blink:15: error: ‘OUTPUT’ was not declared in this scope
Blink:15: error: ‘pinMode’ was not declared in this scope
Blink.ino: In function ‘void loop()’:
Blink:20: error: ‘HIGH’ was not declared in this scope
Blink:20: error: ‘digitalWrite’ was not declared in this scope
Blink:21: error: ‘delay’ was not declared in this scope
Blink:22: error: ‘LOW’ was not declared in this scope
glenn@glenn-blue:~/arduino$
So, is RXTX causing the hassle ? If it is, it was installed by something else that I use (I have no games or anything frivolous) : this is my master development system...
Sure, I can use another computer - but I have no deskspace left and would rather get this working on this machine...
Any further ideas or help would be appreciated. My linux tinkering days are way behind me : anyone know how to see who uses the java RXTX libraries?
Hey ! Nick !
.... this is NOT a programming question : it is an IDE installation / environment problem.
.... please put this back where it belongs.
I've also removed the 'official' java-RXTX library : still doesn't work. Something is missing from one of the above 'path' environment variables ?
(edit) FOUND IT !(/edit)
A mixup with hardware boards.txt files !
I decided to completely remove my original sketchbook folder, and the IDE worked again after I selected a different board in the tools menu.
For my 3D printer I had added a boards.txt file for the minitroics controller board, downloaded from the RepRap wiki. The file, however, redefines some of the Arduino core platforms : notably Uno and Mega 2560. The definitions were erroneous. The Arduino IDE seems to only use the last definitions it finds after running through ALL the boards.txt files... I chopped-out the extra definitions (leaving JUST the minitronics in the file found under sketchbook/hardware/rrw) and now all is OK.
Thanks.
Glenn