3

I am doing a cross compiling [mips] of Qt and Qt based applications. Two developement machines; one 64bit and other 32bit, are used for this purpose. Generally Qt related libraries and binaries are cross compiled in 64 bit machine. Qt based application, is cross compiled in 32bit machine.

With this setup, there is a small problem with usage of moc/qmake/qrc etc; These are compiled on 64bit machine and cannot run on the 32bit machine.

One shortcut method, is to change the mkspec [Pass -m32 instead of -m64 in linux-g++-64 ]. This way issue is resolved.

What I wanted to know is, if we can configure Qt itself to use linux-g++-32 instead of 64, for compilation of qmake/moc etc binaries.

2
  • 3
    Try with `-platform linux-g++-32 -xplatform your-mips-mkspec' Commented Mar 27, 2013 at 9:43
  • Thanks Frank, it worked. :). if you put it in answer, I can select the answer :) Commented Mar 28, 2013 at 5:46

1 Answer 1

5

Try with -platform linux-g++-32 -xplatform your-mips-mkspec

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.