Problem compile example code on OS X

Hello

I’m running OS X 10.5.6, installed the AVR Tools with AVR MacPack. Everything ist working fine and I can compile a “helloworld” example.

But when I try to compile the “simple-test-3pi” I receive always this:

/usr/local/AVRMacPack/bin/avr-gcc -g -Wall -mcall-prologues -mmcu=atmega168 -Os   -c -o main.o main.c
main.c:1:24: pololu/3pi.h: No such file or directory
main.c: In function `main':
main.c:5: warning: implicit declaration of function `print'
main.c:7: warning: implicit declaration of function `play'
main.c:11: warning: implicit declaration of function `red_led'
main.c:12: warning: implicit declaration of function `green_led'
main.c:14: warning: implicit declaration of function `delay_ms'
make: *** [main.o] Error 1

I installed the precompiled Pololu AVR C/C++ Library to following places:
/usr/local/AVRMacPack/include/pololu
/usr/local/AVRMacPack/lib/libpololu.a

The persmissions are like that: -rwxr-xr-x@ 1 gaffa wheel 219062 Apr 11 07:47 libpololu.a

Thanks for your help
gaffa

Hello,
I’m not familiar with AVRMacPack, but can you check the location of iomx8.h ? It might be in /usr/local/AVRMacPack/avr/include/avr, in which case you should put the pololu include files in /usr/local/AVRMacPack/avr/include/pololu and the library in /usr/local/AVRMacPack/avr/lib.

-Paul

Hi paul

Thak you very much for your advice. I moved the file and folder and was capable to compile and flash 3pi! Cool.

Greets
Gaffa

Great! Please let us know if you have more questions.