First install libvisual-0.4 and projectM 1.0

cmake . -DCMAKE_BUILD_TYPE=RELEASE
make
make install

You may need to type ccmake . and change the PREFIX if your system prefers /usr instead of /usr/local.