Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create a native arm64 app
Forum Updated to NodeBB v4.3 + New Features

Create a native arm64 app

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 826 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Ceraolo_gmail
    wrote on last edited by
    #1

    On a Mac laptop with MacOS 13.2.1 with chip M1 I've installed Qt 5.15.2, which I use through Qt creator.

    I would like to create a native Arm4 app.

    It seems that the installed Qt libraries are all x86_64, and therefore the created apps are run emulation, with efficiency loss.

    I tried to create a new kit using as compiler an apple Clang (arm64), but Qt creator complains that is is impossible to use this compiler with my Qt libraries, and says:

    The complier "Apple Clang (arm64)" (arm-darwin-generic-mach_o-64bit) cannot produce code for the Qt version "Qt 5.15.2 clang 64 bit" (x86-darwin-generic-mach_o-64 bit).

    So, the issue is clearly that the Qt libraries are compiled for intel. I tried to see whether, through the maintenance tool, I could download arm64 libraries, but I saw that just "MacOS" libraries are available, without possibility to choose the CPU architecture.

    What can I do to solve this and be able to create native arm64 apps?

    Thank you all.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      For the Qt 5 series, you will have to build Qt yourself. For Qt 6, the recent versions are universal architecture and contains both architectures.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        For the Qt 5 series, you will have to build Qt yourself. For Qt 6, the recent versions are universal architecture and contains both architectures.

        C Offline
        C Offline
        Ceraolo_gmail
        wrote on last edited by
        #3

        @SGaist aha, that's the reason.
        I tried Qt 6 libraries and found arm architecture, very good!
        Thanks a lot

        1 Reply Last reply
        0
        • SGaistS SGaist has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved