I'm trying to cross compile Qt embedded 4.7 for a Linux ARM device (Trimble Nomad) for a few days. While it was pretty easy to get a successful build I had the problem that running the binaries on the device lead to "Invalid instruction" errors with some (but not all!) demos. It helped a lot to add
to the compiler flags in qmake.conf but the "Invalid instruction" still appeared with some examples.
Strangely, when building Qt with the -debug flag everything is fine and I don't get any problems anymore, even if I "strip" the binaries. All Qt programs are running fine.
So I guess that the option does more than add some debug symbols in the binaries. Can anybody explain me how it affects the build?
I could live with -debug on, but I need to avoid any potentially negative impact on performance.
Full configure settings below (i386; Debian Lenny Host):
My qmake.conf can be seen here: http://pastebin.com/D3RECiUj