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. Build Win32 desktop apps for Windows 10 ARM64

Build Win32 desktop apps for Windows 10 ARM64

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.1k 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.
  • A Offline
    A Offline
    alexenv
    wrote on last edited by
    #1

    Hello,

    Is it possible to create Win32 native desktop apps for Windows 10 ARM64 using Qt?

    K 1 Reply Last reply
    0
    • A alexenv

      Hello,

      Is it possible to create Win32 native desktop apps for Windows 10 ARM64 using Qt?

      K Offline
      K Offline
      koahnig
      wrote on last edited by koahnig
      #2

      @alexenv

      Hi and welcome to devnet forum

      Your question provides room for interpretation.

      If you have two different processor architectures requiring two different compilers the answer is No.
      If the very same compiler may be used for different architectures, yes.

      The first answer is probably the correct answer for your question.

      Qt libs are wonderful and superb, but they do not fully provide "witchcraft" to developers. However, you may do miraculous things with it ;)

      However, you can in most cases simply recompile an application developed on one platform with the proper tool chain. There are many cases documented in this forum of cross-compilation for different platforms.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      5
      • A Offline
        A Offline
        alexenv
        wrote on last edited by
        #3

        I've found this patch: https://gist.github.com/tycho/3ce679850a03a39d8c174ac05af56214 and Qt seems to build just fine, but qmake & other tools are also built for ARM64, so I can't use the compiled version with Qt Creator on a x86 host.

        The winrt-arm-msvc2017 mkspec looks quite close to what I'm trying to accomplish, so I'll use it as a template for cross-compilation.

        K 1 Reply Last reply
        0
        • A alexenv

          I've found this patch: https://gist.github.com/tycho/3ce679850a03a39d8c174ac05af56214 and Qt seems to build just fine, but qmake & other tools are also built for ARM64, so I can't use the compiled version with Qt Creator on a x86 host.

          The winrt-arm-msvc2017 mkspec looks quite close to what I'm trying to accomplish, so I'll use it as a template for cross-compilation.

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @alexenv

          You want to checkout this https://doc.qt.io/qt-5/build-sources.html

          As soon as you have a cross-compiler for a host to another platform you can basically compile Qt source. This will allow you to use Qt creator on your host and cross-compile for your target platform. Currently I am using Windows 10 64 bit and I am cross-compiling for Android.

          You can cross-compile on windows also for some embedded linux devices, when you have found a cross-compiler for linux working on windows. By stating that I am typically suggesting to use linux host in virtual box and cross-compile on linux for embedded linux. However, this is more how much pain you are willing to tolerate.

          Cross-compiling Qt source is basically generating a qmake which will be only suitable for your host and hold all the required settings for each cross-compiling run of your application. The change of toolchains within Qt creator is typically a couple of clicks and you are ready to recompile your application for the next target platform.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          3
          • kafegK Offline
            kafegK Offline
            kafeg
            wrote on last edited by
            #5

            Hello guys. I was able to cross-build qt5-base part with vcpkg for arm64-osx, arm64-windows and arm-linux by using this patches: https://github.com/microsoft/vcpkg/issues/16922#issuecomment-1019371578

            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