How to run ARM64(aarch64) Qt auto tests on x86_64

Assume you have a host(x86_64) build of qtbase, like following:

Some extra work to setup system:

Create a prefix.sh file for cross compile:

Contents like:

Build qtbase for arm64:

Build auto tests in qtbase for arm64:

Now we can see tst_qwindow is a aarch64 binary:

Run it!

Reference:

Did you like this? Share it:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.