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. QT application building for Windows on Linux
Servers for Qt installer are currently down

QT application building for Windows on Linux

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 1.4k 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
    Athem
    wrote on 12 Sept 2023, 07:15 last edited by
    #1

    Hi,

    Please excuse me if this is a stupid question. I am not that well aware of QT cross-platform things yet. Let me get to my question: I have an application which runs on an STM32 processor (target). The application is build in a virtual machine running ubuntu with QT 5.15. I use this VM to deploy to my target which is a 32 bit arch.

    However, I also want to have the same application compiled for windows machines (exe) so that I can also deploy it on Windows machines. Is it possible to create this exe using the Linux VM, or do I have to do it on a Windows platform by installing the QT on this windows machine?

    J 1 Reply Last reply 12 Sept 2023, 07:17
    0
    • A Athem
      12 Sept 2023, 07:15

      Hi,

      Please excuse me if this is a stupid question. I am not that well aware of QT cross-platform things yet. Let me get to my question: I have an application which runs on an STM32 processor (target). The application is build in a virtual machine running ubuntu with QT 5.15. I use this VM to deploy to my target which is a 32 bit arch.

      However, I also want to have the same application compiled for windows machines (exe) so that I can also deploy it on Windows machines. Is it possible to create this exe using the Linux VM, or do I have to do it on a Windows platform by installing the QT on this windows machine?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 12 Sept 2023, 07:17 last edited by
      #2

      @Athem Building on Windows is the easiest way.
      If you really want to do cross compilation you would have to install MinGW in your Linux VM, then cross compile Qt and then cross compile your application.

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

      A 1 Reply Last reply 12 Sept 2023, 07:27
      0
      • J jsulm
        12 Sept 2023, 07:17

        @Athem Building on Windows is the easiest way.
        If you really want to do cross compilation you would have to install MinGW in your Linux VM, then cross compile Qt and then cross compile your application.

        A Offline
        A Offline
        Athem
        wrote on 12 Sept 2023, 07:27 last edited by
        #3

        @jsulm Do you have a reference which I can follow to build on Windows then? I want to make the process as easy as possible and since I have some extra libraries, I am guessing I have to cross-compile those (OPENSSL, Quazip etc) for Windows too since they are used in my projects.

        J 1 Reply Last reply 12 Sept 2023, 07:30
        0
        • A Athem
          12 Sept 2023, 07:27

          @jsulm Do you have a reference which I can follow to build on Windows then? I want to make the process as easy as possible and since I have some extra libraries, I am guessing I have to cross-compile those (OPENSSL, Quazip etc) for Windows too since they are used in my projects.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 12 Sept 2023, 07:30 last edited by
          #4

          @Athem said in QT application building for Windows on Linux:

          I am guessing I have to cross-compile those (OPENSSL, Quazip etc) for Windows too since they are used in my projects

          I don't follow you: you seem to want to build on Windows but here you talk about cross compiling these libs, why? If you want to build directly on Windows then simply also build this libs on Windows.

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

          A 1 Reply Last reply 12 Sept 2023, 07:38
          0
          • J jsulm
            12 Sept 2023, 07:30

            @Athem said in QT application building for Windows on Linux:

            I am guessing I have to cross-compile those (OPENSSL, Quazip etc) for Windows too since they are used in my projects

            I don't follow you: you seem to want to build on Windows but here you talk about cross compiling these libs, why? If you want to build directly on Windows then simply also build this libs on Windows.

            A Offline
            A Offline
            Athem
            wrote on 12 Sept 2023, 07:38 last edited by
            #5

            @jsulm As I mentioned earlier, not that well aware of how things work on windows. If I can just provide the path of the libraries on windows and build the project with it, and if it builds everything then that will be perfect. Do you know a reference post for the set of instructions so at least I can know what to expect? Would really appreciate it.

            J 1 Reply Last reply 12 Sept 2023, 07:48
            0
            • A Athem
              12 Sept 2023, 07:38

              @jsulm As I mentioned earlier, not that well aware of how things work on windows. If I can just provide the path of the libraries on windows and build the project with it, and if it builds everything then that will be perfect. Do you know a reference post for the set of instructions so at least I can know what to expect? Would really appreciate it.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 12 Sept 2023, 07:48 last edited by
              #6

              @Athem For Windows you also need these libraries built for Windows.
              To build for Windows on Windows simply install compiler and Qt. There are two compiler options:

              • Microsoft C++ compiler (you have to install it by yourself, either by installing Visual Studio or Microsoft build tools)
              • MinGW (install it using Qt Online Installer)
                After you decided which compiler to use install Qt version for that compiler using Qt Online Installer.

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

              1 Reply Last reply
              0
              • A Athem has marked this topic as solved on 18 Sept 2023, 05:46

              1/6

              12 Sept 2023, 07:15

              • Login

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