I just checked the sizes, and on device /opt/libqt4-maemo5 is 42652 bytes, while in scratchbox is 42988. Can't this difference be because of the underlying file system? Both package versions (on device and in scratchbox) are 4.6.2~git20100212-0maemo1. Thanks for all your suggestions so far! The next step will be to comment out different parts of the code to isolate the error, like Joorin suggested