8x8 led matrix (atmega328 + frequency timer2)

I'm new with arduino, and i don't know much about programming.
can anyone please tell me how to compile libary "frequency timer2" whith atmega 328?
(I want to direct drive 8x8 led matrix that i made)

(don't need frequencytimer2 if you know a better method. lololl)

I read that we have to change some text from .cpp file, but it doesn't work anyway.


For direct drive led matrix without using frequency timer 2 library, use the code from reply #21 in this post:

it works, thank's. now i have to find out how to wiring this propelly.