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. How to build Qt C++ application for M1 chip macbook from Intel chip macbook

How to build Qt C++ application for M1 chip macbook from Intel chip macbook

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 1.1k Views
  • 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.
  • V Offline
    V Offline
    Vishal-Ahir
    wrote on last edited by
    #1

    Hi,

    My existing C++ desktop application which is having x86_64 platform but this application is run only on Intel processor of macbook. Now I want to build my Qt application with arm64 which can run on M1 processor of macbook.

    My system configuration as Qt version is,
    macOS: BigSur
    Qt: 5.12.3

    Please anyone have any idea for this, then please let me know.
    Thanks in advance.
    :)

    jsulmJ 1 Reply Last reply
    0
    • V Vishal-Ahir

      Hi,

      My existing C++ desktop application which is having x86_64 platform but this application is run only on Intel processor of macbook. Now I want to build my Qt application with arm64 which can run on M1 processor of macbook.

      My system configuration as Qt version is,
      macOS: BigSur
      Qt: 5.12.3

      Please anyone have any idea for this, then please let me know.
      Thanks in advance.
      :)

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Vishal-Ahir said in How to build Qt C++ application for M1 chip macbook from Intel chip macbook:

      but this application is run only on Intel processor of macbook

      It should also run just fine on M1 as Apple has a very good emulation for x86_64.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • V Offline
        V Offline
        Vishal-Ahir
        wrote on last edited by
        #3

        Thanks @jsulm for your reply,
        But I need to build my Qt desktop application with ARM64 platform on Intel macbook.
        And my application has two version one is for Intel processor and one which I need to build for M1 processor
        Like Visual Code https://code.visualstudio.com/download

        Please any help on this?

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

          Hi,

          You have to rebuild your Qt version on your M1 machine. You should also consider building universal binaries, they are heavier but you can distribute only one package which can run on both platforms.

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

          K 1 Reply Last reply
          2
          • SGaistS SGaist

            Hi,

            You have to rebuild your Qt version on your M1 machine. You should also consider building universal binaries, they are heavier but you can distribute only one package which can run on both platforms.

            K Offline
            K Offline
            kyosold
            wrote on last edited by
            #5

            @SGaist If I have to buy a macbook pro m1? The virtual machine can be installed? Someone met and solve this problem?

            jsulmJ 1 Reply Last reply
            0
            • K kyosold

              @SGaist If I have to buy a macbook pro m1? The virtual machine can be installed? Someone met and solve this problem?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @kyosold said in How to build Qt C++ application for M1 chip macbook from Intel chip macbook:

              The virtual machine can be installed?

              What virtual machine do you mean? What should run there?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

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