You need libSDL, qte (qt/embedded), qpe (qtopia). That 'should' be it. The reason for that qpaintdevice error is incorrect linking against SDL (-lSDLmain must be included before the source file in the compile command line).
I may try to get it built myself in the next day or two but am currently working on lots of other things.
Dave