You might also need to rebuild Qt4 with sql plugins enabled. If you just use the default configure flags for building Qt4, then no sql plugins get built. This means that any programs that rely on implementations of sql like sqlite, mysql, postgresql, etc., will not work, since they can't be hooked into Qt4. This would also mean that you would need to have sqlite 2 and sqlite 3, at a minimum, on your box. If you also plan to build the mysql and postgresql plugins, then those db's also need to be on your box.
I see, thanks for that info