Hello all,
I'm developing a project with Arduino Pro Mini 328 and an LCD screen. I'm using the u8glib library to drive the LCD. I've been using the standard Arduino IDE and everything worked fine, except for the fact that every time I change something in my code, the IDE recompiles everything including thousands of u8glib files, which takes about 5 minutes.
So I decided to start using a more advanced IDE, and I chose AVR Studio 4 and AVR-GCC. I've succeeded in compiling a simple "blink" program and uploading it to Arduino (via avrdude from the standard IDE). But I can't manage to compile a program which would use u8glib.
- Is there a way to prevent the standard Arduino IDE from recompiling the code which did not change, and/or from recompiling external libraries?
- When I compile the program in Arduino IDE, I can find many semi-compiled files in the temp folder. I've copied core.a to my AVR Studio project to enable standard Arduino functions such as digitalWrite. Is it possible to find analogous semi-compiled files for u8glib and take them as well, so that I would only have to link them?
- On the u8glib site there are two categories of downloads: for Arduino and for AVR. The files inside are pretty much the same. Which library should I use? I ended up using the library for Arduino because the AVR library doesn't contain u8g.c with LCD-specific constructors. Is it correct?
- The AVR-GCC compiler found many many errors in the u8glib code. I had to fix them manually until it finally got compiled. Are there serious language differences between AVR-GCC and the Arduino IDE compiler? Or maybe there are some compiler options I should set?
I can post error descriptions and project settings' screenshots, but at first I hope that there is some simpler solution...