0

I need to install a lib that uses Qt on an old machine that runs openSuse 11 i586. Actually, my build machine runs Ubuntu and we have our own Qt compilation - in order to use static feature. Apparently, both machines (build and target) has compatible systems.

All work fine, excepting for QString. On target machine QString prints strange characters.

QTextStream out(stdout);
QString text = "ABCDEFGHJKLNOPQRSTUWXYZ \n";
out << text;

For example, the code above results this on target machine:

ABCDEFGHEFGHSTUWXYZ

Is there any trick to solve this? Maybe something related to charset. I appreciate any help.

Raiden
  • 1

1 Answers1

0

For this to work, your executable must ideally not dynamically link to anything at all. Most likely you're facing binary incompatibility between some glibc or libgcc magic sauce between your system and the target system. Configure Qt with -static-runtime - I bet it'll work then.

Kuba hasn't forgotten Monica
  • 95,931
  • 16
  • 151
  • 313