Well, for all the downvoters, I decided it myself.
The problem was that QT was unable to create the Debug directory where it should put the compiled files. Do not ask me why.
So we have. There is no output directory -> no main.o created -> this strange compilation error.
source
share