It seems that it can't handle sources in subdirectories. I've now put all the source files in the top directory and the error is gone.
qmake YourAppname.pro