Arduino 0022 (Linux) Error Compiling MeggyBrite

15 views
Skip to first unread message

Habstinat

unread,
May 14, 2011, 10:52:51 PM5/14/11
to MeggyDev
(This message was also posted to the Evil Mad Science forums, but I
decided to post it to this list as well for more exposure)

Hello,

I just finished building my Meggy Jr. RGB and it works great. However,
I've been running into some bumps when trying to program it using the
official guide.

Here's the steps of exactly what I have done so far in regards to
programming:

1. Install Arduino 0022 for Linux (64 bit) on my 64 bit Ubuntu Linux
system.
2. Start Arduino. I get no errors on startup.
3. Go to /home/(myuser)/sketchbook and create a folder called
"libraries"
4. Unzip the Meggy Jr. RGB library, version 1.4, which I downloaded
from here: http://code.google.com/p/meggy-jr-rgb/downloads/detail?name=MeggyJrLibrary1.40.zip.
5. Put the unzipped "MeggyJr" folder into /home/(myuser)/sketchbook/
libraries/.
6. Restart Arduino.
7. In Arduino, go to Tools -> Board. I have the ATmega328 chip. The
manual states that I should select "Duemilanove w/ ATmega328".
However, this is not an option. The closest to that I could find was
"Arduino Duemilanove or Nano w/ ATmega328", so I select that.
8. In Arduino, go to File -> Sketchbook -> libraries -> MeggyJr ->
MeggyJr_MeggyBrite (not File -> Sketchbook -> Examples -> Library ->
MeggyJr -> MeggyJr_MeggyBrite as the manual states)
9. The MeggyBrite code pops up in a new window.
10. I try to verify, or compile, the program by pressing the "Play"
button in the top left corner. Instead of compiling successfully
however, I am presented with the following error which appears at the
bottom of the window: "Cannot run program "avr-g++":
java.io.IOException: error=2, No such file or directory".

Any more information or ways to fix this problem would be greatly
appreciated. Thanks ahead of time for any responses.

Windell H. Oskay

unread,
May 14, 2011, 11:13:33 PM5/14/11
to megg...@googlegroups.com
On May 14, 2011, at 7:52 PM, Habstinat wrote:

7. In Arduino, go to Tools -> Board. I have the ATmega328 chip. The
manual states that I should select "Duemilanove w/ ATmega328".
However, this is not an option. The closest to that I could find was
"Arduino Duemilanove or Nano w/ ATmega328", so I select that.

This is the correct option.  The boards listed in the menu (and their phrasing) have changed several times, and you are quite correct to select the one that includes the Duemilanove with 328. :)

8. In Arduino, go to File -> Sketchbook -> libraries -> MeggyJr ->
MeggyJr_MeggyBrite (not File -> Sketchbook -> Examples -> Library ->
MeggyJr -> MeggyJr_MeggyBrite as the manual states)

The problem is already evident at this step.  The library is not installed correctly.  If it were, then the examples would show up in the examples menu, rather than just in your sketchbook.  

Your sketchbook is typically stored in a directory called Arduino (not "sketchbook") in your documents directory. The exact location is shown in the preferences dialog in the Arduino software, and you can change it there to point to the sketchbook folder that you made.

-Windell

wyojustin

unread,
May 15, 2011, 8:08:08 PM5/15/11
to MeggyDev
I haven't seen this error before. It appears to me that Arduino is
missing some file.

I've managed to compile programs from the [sketchbook]/libraries/
directory, and I would expect to find them in [sketchbook]/libraries/
MeggyJr/examples/MeggyJr_MeggyBright just where Arduino is pointing
you.

Are you running Windows 7?
If so, you are not alone. Try the solution here:
http://clete2.com/2009/10/arduino-and-windows-7-problems/

Justin

Windell H. Oskay

unread,
May 15, 2011, 8:17:22 PM5/15/11
to megg...@googlegroups.com

On May 15, 2011, at 5:08 PM, wyojustin wrote:

> I haven't seen this error before. It appears to me that Arduino is
> missing some file.
>
> I've managed to compile programs from the [sketchbook]/libraries/
> directory, and I would expect to find them in [sketchbook]/libraries/
> MeggyJr/examples/MeggyJr_MeggyBright just where Arduino is pointing
> you.
>
> Are you running Windows 7?
> If so, you are not alone. Try the solution here:
> http://clete2.com/2009/10/arduino-and-windows-7-problems/
>
> Justin

We've been following up in the forum. Looks like he had a problem with his Arduino installation; the basic Blink sketch wouldn't compile either.

-Windell

Reply all
Reply to author
Forward
0 new messages