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. is it possible to run application on windows which developed on linux platform ?
Forum Updated to NodeBB v4.3 + New Features

is it possible to run application on windows which developed on linux platform ?

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 6 Posters 791 Views 4 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    I have knowledge related to qt more than 2.5 years. i have developed many applications on linux .

    so i want to know

    Will my same application run on windows ?

    To run same application on windows what other changes i need to do ?

    jsulmJ 1 Reply Last reply
    0
    • Q Qt embedded developer

      I have knowledge related to qt more than 2.5 years. i have developed many applications on linux .

      so i want to know

      Will my same application run on windows ?

      To run same application on windows what other changes i need to do ?

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

      @Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:

      Will my same application run on windows ?

      If you do not use Linux specific API, yes it will.
      Simply build it on Windows.

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

      Q 2 Replies Last reply
      1
      • jsulmJ jsulm

        @Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:

        Will my same application run on windows ?

        If you do not use Linux specific API, yes it will.
        Simply build it on Windows.

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by Qt embedded developer
        #3

        @jsulm

        I have build the application on linux.

        So without build on windows, will my application run on windows.

        Is there way to generate application for windows on linux ?

        JonBJ SGaistS 2 Replies Last reply
        0
        • Q Qt embedded developer

          @jsulm

          I have build the application on linux.

          So without build on windows, will my application run on windows.

          Is there way to generate application for windows on linux ?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:

          So without build on windows, will my application run on windows.

          No.

          Is there way to generate application for windows on linux ?

          No.

          Or at minimum in practice you need to compile separately on each target for each target.

          As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.

          Q JonBJ 2 Replies Last reply
          2
          • Q Qt embedded developer

            @jsulm

            I have build the application on linux.

            So without build on windows, will my application run on windows.

            Is there way to generate application for windows on linux ?

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            @Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:

            @jsulm

            I have build the application on linux.

            So without build on windows, will my application run on windows.

            No unless you execute it in the context of WSL (Windows Subsystem for Linux).

            Is there way to generate application for windows on linux ?

            Cross-compilation using MinGW could work but requires to first cross-compile Qt and the dependencies you are using. A virtual machine with Windows on it would likely be simpler.

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

            1 Reply Last reply
            1
            • JonBJ JonB

              @Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:

              So without build on windows, will my application run on windows.

              No.

              Is there way to generate application for windows on linux ?

              No.

              Or at minimum in practice you need to compile separately on each target for each target.

              As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.

              Q Offline
              Q Offline
              Qt embedded developer
              wrote on last edited by
              #6

              @JonB means its possible by generating such type of python script.

              1 Reply Last reply
              0
              • JonBJ JonB

                @Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:

                So without build on windows, will my application run on windows.

                No.

                Is there way to generate application for windows on linux ?

                No.

                Or at minimum in practice you need to compile separately on each target for each target.

                As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by JonB
                #7

                @JonB said in is it possible to run application on windows which developed on linux platform ?:

                As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.

                It is your decision whether you wish to code with Qt in C++ or in Python.

                Q 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:

                  Will my same application run on windows ?

                  If you do not use Linux specific API, yes it will.
                  Simply build it on Windows.

                  Q Offline
                  Q Offline
                  Qt embedded developer
                  wrote on last edited by
                  #8

                  @jsulm Means i need to install qt on windows and then i need to make that application on it. which will create .exe for my application. And then then that .exe will work on any windows os.

                  1 Reply Last reply
                  0
                  • JonBJ JonB

                    @JonB said in is it possible to run application on windows which developed on linux platform ?:

                    As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.

                    It is your decision whether you wish to code with Qt in C++ or in Python.

                    Q Offline
                    Q Offline
                    Qt embedded developer
                    wrote on last edited by Qt embedded developer
                    #9

                    @JonB

                    If install qt on windows and then generated .exe .

                    then is it possible .exe on qt which can run on any windows without installing qt or mingw for qt terminal ?

                    if not then what extra stuff needed with less amount to run .exe on any windows simply for user ?

                    artwawA mrjjM 2 Replies Last reply
                    0
                    • Q Qt embedded developer

                      @JonB

                      If install qt on windows and then generated .exe .

                      then is it possible .exe on qt which can run on any windows without installing qt or mingw for qt terminal ?

                      if not then what extra stuff needed with less amount to run .exe on any windows simply for user ?

                      artwawA Offline
                      artwawA Offline
                      artwaw
                      wrote on last edited by
                      #10

                      @Qt-embedded-developer you can get all dependencies (excluding your own) by using windeployqt tool on the freshly created executable. The process is described here:
                      https://doc.qt.io/qt-5/windows-deployment.html

                      For more information please re-read.

                      Kind Regards,
                      Artur

                      1 Reply Last reply
                      3
                      • Q Qt embedded developer

                        @JonB

                        If install qt on windows and then generated .exe .

                        then is it possible .exe on qt which can run on any windows without installing qt or mingw for qt terminal ?

                        if not then what extra stuff needed with less amount to run .exe on any windows simply for user ?

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:

                        then is it possible .exe on qt which can run on any windows without installing qt or mingw for qt terminal ?

                        Not any Windows. but 8 and 10. Might win 7 but Xp is stone dead.

                        Also it will need some DLLS with the exe as artwaw explains.

                        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