(home)

Learning About Arduino on OS X 10.2

: Description : This page documents my process to get the Arduino IDE and tools running on Mac OS 10.2.8 successfully.

: Status : Research (Success with AVR-GCC 3.4.6!) (Abandoned 4.X; Compiled 3.4.6—successfully compiled, uploaded and tested sketch from IDE)

Introduction

As shipped in version 0010, the Arduino IDE and tools do not run successfully on Mac OS X 10.2 in my experience. The Arduino IDE opens successfully but then complains in the "console" about a missing dylib file(s) when trying to use avr-g++ command.

Summary

It is possible to get Arduino 0010 running on Mac OS X 10.2.8 and edit, build and upload sketches from the IDE.

I mostly followed the instructions at http://www.nongnu.org/avr-libc/user-manual/install_tools.html, patched the gcc 3.4.6 source for new devices and built binutils, avr-gcc and used the IDE and avrdude as supplied with Arduino 0010.

I've uploaded a binary, but haven't tested it on another Mac OS 10.2 machine, I'd be interested to hear if it works for you: Arduino 0010 binary for Mac OS X 10.2 (Includes Arduino IDE, avr-gcc 3.4.6 and avrdude.)

Check out the stripes:

Process

Note: This documents the complete trial and error process I used to gain success—it's not a step-by-step list of instructions.

dyld: ./avr-g++ can't open library: /usr/lib/libmx.A.dylib  (No such file or directory, errno = 2)
 > I have recently re-compiled my PDE as a Universal Binary and it works well in most settings; however, I have just found out that it will not run on 10.2.8.
> The Console log shows that the '/usr/lib/libmx.A.dylib' does not exist.
> I have found some threads on the Xcode Users list that explain that targets built with GCC 4 will not run on Mac OS 10.2... is this true?

Yes, C++ code compiled with gcc 4 requires 10.3.9 or later. C and Obj-C code should be okay.

> (http://lists.apple.com/archives/Xcode-users/2005/Apr/msg00376.html)
> According to the 'Universal Binary Programming Guidelines' Xcode uses GCC 4.0 for targeting Intel-based Macs.
>
> Is it possible to build a Universal Binary PDE that will run on 10.2, 10.3, 10.4, and Intel?

Yes, you just have to use gcc 3 for the PowerPC build.
avr/bin/ld: crtm168.o: No such file: No such file or directory
# Linker command generated for Atmega168
...avr/bin/ld -m avr5 -Tdata 0x800100 -o /tmp/build27572.tmp/Blink.elf crtm168.o ...

#  Linker command generated for Atmega8
...avr/bin/ld -m avr4 -o /tmp/build27572.tmp/Blink.elf /<full path>/avr/lib/avr4/crtm8.o ...

I'm getting this weird error when I try to compile something with avr-gcc.
/usr/lib/gcc/avr/4.1.2/../../../../avr/bin/ld: crtm168.o: No such file: No such file or directory

Cerin, I suggest visiting the support channels for this "avr-gcc"

I think that's self-explanatory, eitherway.
No such file or directory
:o

It's more of a general make/compile question.
you'd think, but it's not

Cerin, no, it looks like a broken linker.

I'm using -L/usr/local/avr/lib/avr5 when I compile, which is where that .o file exists.

Guh

anyone???

That's how you specify library paths right? With the -L flag?

The program you are using needs to use a system file that may reduce the security of your computer.
The file 'FTDIUSBSerialDriver.kext' has problems that may reduce the security of your computer.
You should contact the manufacturer of the product you are using for a new version.
If you are sure the file is OK, you can allow the application to use it, or fix it and then use it.
If you click Don't Use, any other files that depend on this file will not be used.
cp -R avr.orig/etc avr/
cp avr.orig/bin/avrdude avr/bin/

Links

code@rancidbacon.com