When building an ActiveQt project that uses TYPELIBS with a generated source it will fail the first time due to the missing generated code. The problem is that it does not exist at qmake time which means it doesn't generate the dependency. However building with nmake works fine.
To test this try with the qutlook example in qtactiveqt ensuring the MSOUTL.* files do not exist when you make the Makefile.