OK... I'm getting there.
First on the mac these 3 lines need to be added to libdefs.h
, I added them right under your #if defined(_WINDOWS_)
block. That allows for a large part of the library to compile. I tried to check for a define I could use but __APPLE__ isn't defined in my version of avr-gcc for some reason - still looking into why its not.
It is a little odd though as I need the #undef
line or I get libdefs.h:101:0: warning: "PROGMEM" redefined [enabled by default]
from it being defined in avrchain/include/avr/pgmspace.h
but without those 2 lines or even just the #undef
line the webbot wont compile.
The second issue thats going to be harder to fix is that I'm using a newer avr-libc than you. This mean that SIG_2WIRE_SERIAL
has been poisoned and can no longer be used. I'm running into this with:
i2c_slave.c:106:5: error: attempt to use poisoned "SIG_2WIRE_SERIAL"
This forum post may or may not help: http://arduino.cc/forum/index.php?action=printpage;topic=92364.0
but I'm not knowledgeable enough about avr yet to attempt to fix this. I am using avr-libc-1.8.0, I'm assuming your version is from early 2010 as well. I'm not sure if at compile time this can be #ifdef
ed to allow both versions of avr-libc to compile; but like I said I don't know enough yet to attempt to fix this.
My next step is going to be to skip over i2c and see if I can get the lib to complete the compile but that will have to wait till tomorrow.