5. Compiling the Pololu AVR Library (Optional)

This section is optional, for people who want to modify the library or get a better understanding of how it works. If you just want to install the library, proceed to Section 3.b for Windows, Section 4.b for Linux, or Section 5.b for Mac OS X.

It is assumed in this section that you have already installed the AVR cross-development tools and libraries for your development platform, and have downloaded and extracted the .zip file containing the Pololu AVR Library. The AVR Library can be downloaded as a .zip file from Section 2.a, and extracts to a directory called libpololu-avr.

Open a command prompt within the libpololu-avr directory. If avr-gcc is correctly installed on your system, you will be able to type “make clean”, then “make” to compile the entire library. Pay attention to any errors that occur during the build process. If all goes well, this will generate versions of the library for the ATmega48, ATmega168, ATmega328P, ATmega324PA, ATmega644P, ATmega1284P, and ATmega1284P-X2. If you see errors, it is likely that avr-gcc was installed improperly or in a way that is incompatible with the Makefile.

Compiling the Pololu AVR Library from the command prompt in Windows.

Related Products

Encoder for Pololu Wheel 42x19mm
Pololu 42x19mm Wheel and Encoder Set
Orangutan SV-168 Robot Controller
Orangutan SVP-1284 Robot Controller (assembled)
Orangutan SVP-1284 Robot Controller (partial kit)
QTR-1RC Reflectance Sensor (2-Pack)
QTR-L-1A Reflectance Sensor (2-Pack)
QTR-L-1RC Reflectance Sensor (2-Pack)
QTR-3A Reflectance Sensor Array
QTR-3RC Reflectance Sensor Array
QTR-1RC Reflectance Sensor
QTR-1A Reflectance Sensor
QTR-1A Reflectance Sensor (2-Pack)
Orangutan SVP-324 Robot Controller (partial kit)
Orangutan SV-328 + USB Programmer Combo
Baby Orangutan B-328 Robot Controller
Orangutan SV-328 Robot Controller
Baby Orangutan B-328 + USB Programmer Combo
Baby Orangutan B-48 Robot Controller
QTR-8A Reflectance Sensor Array
QTR-8RC Reflectance Sensor Array
Pololu 3pi Robot
Baby Orangutan B-168 + USB Programmer Combo
Baby Orangutan B-48 + USB Programmer Combo
Orangutan LV-168 + USB Programmer Combo
Orangutan LV-168 Robot Controller
Orangutan SV-168 + USB Programmer Combo
Orangutan SVP-324 Robot Controller (assembled)
Orangutan LV-168 + USB Programmer Combo
Orangutan SV-328 + USB Programmer Combo
3pi Robot + USB Programmer + Cable Combo
Baby Orangutan B-48 + USB Programmer Combo
Baby Orangutan B-328 + USB AVR Programmer Combo
Orangutan X2 with VNH3
3pi Robot + USB Programmer Combo
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors