Quote Originally Posted by portilhe View Post
The code is
Qt Code:
  1. $ file ./MisterMand
  2. ./MisterMand: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. $ uname -a
  2. Linux nico-laptop 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:21 UTC 2011 i686 GNU/Linux
To copy to clipboard, switch view to plain text mode 
I guess that means I really need to link statically, right?
not neccesarily - you *can* bundle all libs and executable together into an installer (this is a good read for you: http://doc.qt.nokia.com/4.7/deployment.html)
but... your target architecture needs to be compatible with the produced executable. This doesn't seem to be the case in your example: 32bit target trying to run 64bit executable
This will not work regardless of whether you build the app dynamic or static.

arrgggh [wysota beat me to it]