Hi all, sorry for the noob question..
I just installed 0022 on my MacBook Pro. When i try to compile the Example 'Blink' i get the following:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++: line 6: /../avr-4/bin/g++: No such file or directory
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++: line 6: exec: /../avr-4/bin/g++: cannot execute: No such file or directory
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ returned 126
My avr-g++ is installed in: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin so i am not sure why it can't find it??
I was having a few problems when I had sketches in folders with spaces in the names of them. I see you have a folder with a stop in the name "Arduino.app" perhaps this is causing a problem. Try changing the folder name to have an underscore and not a stop in it like this "Arduino_app".
Thanks Pete,
The Arduino.app is not a folder but the application package itself?? At least that is my take after digging a lil in Finder.
Not sure if the application package will work if i loose the .app???
What I would do is drag the whole app from your Applications directory to the trash.
Reload 0022 and let it install to where it want to install it to.
You should find that Arduino.app will reside back in the Applications folder and it should create a save folder in your Documents/Arduino folder.
As this program is so small and simple, reloading it isn't really a problem. You will not lose anything you have samed if it has saved it to the Users/Documents/Arduino folder
That has nothing to do with the issue. The ".app" extension tells the filesystem that a folder is an Application Bundle. Right-clicking on an application and selecting "Show Package Contents" will show everything inside of the Bundle.
My avr-g++ is installed in...
Is the user you are running, running as an Administrator?
It is possible your installation got corrupted. Try deleting your download, drag the existing app the trash, re-downloading, and re-"installing". Just for grins, you might move the Arduino application to another folder (like the Desktop) and see if it will run correctly from there.
Hey Guys,
Thanks for the input..
So i re-downloaded and tried to install (by copying the Arduino.app) in the root hard drive directory, in applications and even the desktop. Whenever i do the same file seems to be problematic. The only thing that changes in the error is the path depending on where it was installed. I know that the Arduino doesn't like a path where there are any spaces. My hard drive is called "Macintosh HD", I am afraid to remove the space, as the OS is installed on that drive. In my recent past life i was a Windows guy and doing something like removing a space in the name of the hard drive would cause certain disaster..
The space in the volume name doesn't matter. The file system is relative to root (/), not the volume's name. Changing the volume name usually doesn't break things since programs since it gets mounted to an alias anyway.
Regardless, mine is named "Core Memory", so it is unlikely to be related to spaces.
Again, are you running this user as a administrator or regular user?
For more troubleshooting ideas, try downloading 0018 and see if it works. Don't even drag the file out of the disk image, just run it from there. If 0018 works, move up one at a time until you get the errors again.
Don't worry about compiling for the correct board, just see if you can get past the complier errors.
Tried i few different versions and ran them from the archive and even from a bunch of different locations, always the same g++ file fail.
Took it to the Genius Bar last night hoping those guys might be able to help me. No dice.
Ran the compiler perfectly on a Mac Mini at the Apple store which was disturbing..
Based on all of the above..............
I would think that this is not an Arduino issue. It would more than likely be an OSX issue where you have either a corrupt or missing file within the OSX that Arduino is looking for.
Do you have another Apple or a mate with one to try it on? I bet 2cents Aust it works.
If you drop into terminal what do you see with this:
ls -l /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin
(Assuming Arduino is in the Applications folder.)
Do you have Xcode installed? (If so, what version)
Create a new user account (Administrator or Regular) and see if you have the same problem. (This will tell if there is a problem with OSX or if there is a problem with your particular user account.)
Sugar,
I am sure you are right. I have run the Arduimno software on other Macs and it was no problem. It has to be my machine, just not sure how to fix it..
I have the latest and greatest iOS SDK installed and it came with Xcode 3.2.6
The latest and greatest ships with Xcode 4.x. iOS 4.x ships with 4.0 while iOS 5.0 ships with 4.2.
Xcode is my only other thought at this point. For some reason the Arduino environment is not seeing the path to the correct copy of gcc. (Arduino ships with GCC for ATmega, while Xcode contains GCC for Cocoa/iOS.)
For what it is worth (which is probably not worth much to you if yours isn't working grin), I have Arduino 0022 and Xcode 4.2 with no problems compiling.
Okay, one more idea.
If you run "java -version" on the command line, what do you get back? I get:
James-MBP2b:~ james$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)