/usr/lib/qt3//include/qgl.h:80:21: GL/glu.h: No such file or directory
I think that's what's wrong. Probably indicates that you don't have some qt3 development library installed. In order to compile a qt3 dependent app, you need the qt3 development libraries installed. Qt3 is an application development platform; kde is based on qt.
In general, you will see "devleopment libraries" associated with many applications. Normally, they are not automatically installed. These development libs carry the info ncessary to recompile the app. Missing development libraries is a common reason for apps not compiling.