In general you can't compile Qt3 apps with Qt4 and Qt4 apps with Qt3. The first can only be accomplished by following the Porting to Qt4 guide.