I’m running on Fedora, and its Extras repository includes Avrdude and AVR-GCC, but not, oddly enough, AVR-Libc. I compiled and installed that myself, but I still can’t compile any Orangutan examples from the orangutan-lib project.
I keep getting this error:
/usr/lib/gcc/avr/4.1.2/…/…/…/…/avr/bin/ld: crtm48.o: No such file: No such file or directory
Apparently, avr-gcc is trying to link with crtm48.o but can’t find it. I tried adding -L/usr/local/avr/lib/avr5 to CFLAGS in the example’s makefile, since that’s the library path where that file exists, but I still get the error.
Can anyone give me any pointers? Has anyone been able to compile anything from orangutan-examples on Linux?
I’d guess that in the orangutan-lib examples, CFLAGS is not being included in the linking step. Take a look at the user guide for the USB programmer, which also has an example program for use under linux. You can try it with your Orangutan, even if you’re not using the USB programmer, then re-use the simple Makefile given there, with a few modifications, for the orangutan-lib examples.