Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building a Release for Windows 10 from Mac OS
Forum Updated to NodeBB v4.3 + New Features

Building a Release for Windows 10 from Mac OS

Scheduled Pinned Locked Moved Solved Installation and Deployment
18 Posts 4 Posters 4.5k Views 2 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.
  • ResistorInTheDarkR ResistorInTheDark

    @jsulm That is accurate. Any idea how to build a release version for Windows 10?

    J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #8

    @ResistorInTheDark
    You're going to have a tough time setting up a cross compile chain from MacOS to Windows. It's possible, this StackOverflow thread may help you.
    Besides the obvious hassels, you'll also have to crosscompile the whole Qt libabry, in the end, you're much better of by simply creating a vm and runnning windows & compiling of from that.


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    1 Reply Last reply
    4
    • jsulmJ jsulm

      @ResistorInTheDark Somehow I don't really understand - "I built a release version that could run on my Mac and sent it to a friend to try it out. He uses Windows 7. It works.". How can a MacOS build of your app work on Windows?

      To get a Windows build you will need to build on Windows. Either use a machine with Windows or a Virtual Machine.

      ResistorInTheDarkR Offline
      ResistorInTheDarkR Offline
      ResistorInTheDark
      wrote on last edited by
      #9

      Thanks for the quick replies.

      @jsulm I'm not entirely sure how he did it. He told me he pulled it out of the zip file using WinZip and it ran fine.

      @J.Hilk Okay then, I think I might run and compile from Windows. I've told my friend to download Qt. Hopefully everything goes well then.

      jsulmJ 1 Reply Last reply
      0
      • ResistorInTheDarkR ResistorInTheDark

        Thanks for the quick replies.

        @jsulm I'm not entirely sure how he did it. He told me he pulled it out of the zip file using WinZip and it ran fine.

        @J.Hilk Okay then, I think I might run and compile from Windows. I've told my friend to download Qt. Hopefully everything goes well then.

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

        @ResistorInTheDark Your friend should not download Qt to run your app, instead you should deploy it to create a package containing all needed libraries. See here for Windows: https://doc.qt.io/Qt-5/windows-deployment.html

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

        ResistorInTheDarkR 1 Reply Last reply
        1
        • jsulmJ jsulm

          @ResistorInTheDark Your friend should not download Qt to run your app, instead you should deploy it to create a package containing all needed libraries. See here for Windows: https://doc.qt.io/Qt-5/windows-deployment.html

          ResistorInTheDarkR Offline
          ResistorInTheDarkR Offline
          ResistorInTheDark
          wrote on last edited by
          #11

          @jsulm I can't seem to find the windeployqt executable in the Qt folders. I've found a macdeployqt, but no windeployqt. Is there a direct download link for this, perhaps?

          jsulmJ 1 Reply Last reply
          0
          • ResistorInTheDarkR ResistorInTheDark

            @jsulm I can't seem to find the windeployqt executable in the Qt folders. I've found a macdeployqt, but no windeployqt. Is there a direct download link for this, perhaps?

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

            @ResistorInTheDark Yes, that's because you're on a Mac with Mac version of Qt. As I said you need a Windows machine.

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

            ResistorInTheDarkR 1 Reply Last reply
            1
            • jsulmJ jsulm

              @ResistorInTheDark Yes, that's because you're on a Mac with Mac version of Qt. As I said you need a Windows machine.

              ResistorInTheDarkR Offline
              ResistorInTheDarkR Offline
              ResistorInTheDark
              wrote on last edited by
              #13

              @jsulm Okay. So right now I have access to my friend's computer (Windows 10). He doesn't have Qt installed (as you have advised). But he also doesn't seem to have the windeployqt.exe.

              jsulmJ 1 Reply Last reply
              0
              • ResistorInTheDarkR ResistorInTheDark

                @jsulm Okay. So right now I have access to my friend's computer (Windows 10). He doesn't have Qt installed (as you have advised). But he also doesn't seem to have the windeployqt.exe.

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

                @ResistorInTheDark Why should your friend have windeployqt? It's your job to deploy the app for all platforms/OS you want to support.
                So, again: you need Windows machine with a compiler (MinGW or VC++) and Qt. Then build your app there and use windeployqt to deploy your app and then send the result to your friend.
                And I did NOT adviced that your friend needs to install Qt! You should read more careful what others write...

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

                ResistorInTheDarkR 1 Reply Last reply
                2
                • jsulmJ jsulm

                  @ResistorInTheDark Why should your friend have windeployqt? It's your job to deploy the app for all platforms/OS you want to support.
                  So, again: you need Windows machine with a compiler (MinGW or VC++) and Qt. Then build your app there and use windeployqt to deploy your app and then send the result to your friend.
                  And I did NOT adviced that your friend needs to install Qt! You should read more careful what others write...

                  ResistorInTheDarkR Offline
                  ResistorInTheDarkR Offline
                  ResistorInTheDark
                  wrote on last edited by
                  #15

                  @jsulm Thanks for your comments. Perhaps my post caused a misunderstanding. I meant that you advised to not have Qt installed.

                  Right now, I'll continue installing Qt for Windows.

                  jsulmJ 1 Reply Last reply
                  0
                  • ResistorInTheDarkR ResistorInTheDark

                    @jsulm Thanks for your comments. Perhaps my post caused a misunderstanding. I meant that you advised to not have Qt installed.

                    Right now, I'll continue installing Qt for Windows.

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

                    @ResistorInTheDark said in Building a Release for Windows 10 from Mac OS:

                    I meant that you advised to not have Qt installed

                    Yes, you should deploy your app with everything it needs to run, including Qt libraries. Then your users do not have to install Qt. This is how applications are distributed.

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

                    ResistorInTheDarkR 1 Reply Last reply
                    1
                    • jsulmJ jsulm

                      @ResistorInTheDark said in Building a Release for Windows 10 from Mac OS:

                      I meant that you advised to not have Qt installed

                      Yes, you should deploy your app with everything it needs to run, including Qt libraries. Then your users do not have to install Qt. This is how applications are distributed.

                      ResistorInTheDarkR Offline
                      ResistorInTheDarkR Offline
                      ResistorInTheDark
                      wrote on last edited by
                      #17

                      @jsulm That makes sense then. My friend is not a user, he's a tester. So his computer is technically part of my assets. Perhaps that helps clarify something.

                      I apologise for my inexperience in this field.

                      1 Reply Last reply
                      0
                      • ResistorInTheDarkR Offline
                        ResistorInTheDarkR Offline
                        ResistorInTheDark
                        wrote on last edited by ResistorInTheDark
                        #18

                        Alright, after installing Qt on Windows and building from a Windows machine, the application was able to be compiled and ran successfully with very minor differences compared to the deployment on Mac.

                        Marking as solved. Thanks @SGaist @jsulm @J-Hilk @Ratzz. :-)

                        1 Reply Last reply
                        2

                        • Login

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