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 make .exe file on Ubuntu
Forum Updated to NodeBB v4.3 + New Features

How to make .exe file on Ubuntu

Scheduled Pinned Locked Moved General and Desktop
17 Posts 6 Posters 20.3k 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.
  • L Offline
    L Offline
    Legnain
    wrote on last edited by
    #4

    Finaly, I found the solution in the following link
    http://stackoverflow.com/questions/10934683/how-do-i-configure-qt-for-cross-compilation-from-linux-to-windows-target

    Here is the steps

    #1 Get it:
    $ git clone https://github.com/mxe/mxe.git

    #2 Build Qt for Windows, its dependencies, and the cross-build tools; this will take about an hour on a fast machine with decent internet access; the download is about 500MB:
    $ cd mxe && make qt

    #3 Get to the directory of your app and add the cross-build tools to the PATH:
    $ export PATH=<mxe root>/usr/bin:$PATH

    #4 Run the Qt Makefile generator tool then build:
    $ <mxe root>/usr/i686-pc-mingw32/qt/bin/qmake && make

    #5 You should find the binary in the ./release directory:
    $ wine release/foo.exe

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Samanta
      wrote on last edited by
      #5
      Please provide me a complete solution to make .exe  of QT Application in Ubuntu 18.0
      
      mrjjM 1 Reply Last reply
      0
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #6

        You can't make .exe on ubuntu platform. exe extension is only for windows.

        Have you installed Qt on Ubuntu ?
        Are you able to launch Qt creator ?

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        1
        • R Rahul Samanta
          Please provide me a complete solution to make .exe  of QT Application in Ubuntu 18.0
          
          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #7

          @Rahul-Samanta
          Hi
          you have to come up with better description about what you are doing or
          nobody can really help you,
          If you are not cross compiling, an exe is made pr default.
          so can you add some details about platforms, what type of exe
          and so on you are trying to make ?

          1 Reply Last reply
          2
          • R Offline
            R Offline
            Rahul Samanta
            wrote on last edited by
            #8

            Yes sir, I'm able to launch the Qt Creator, in Ubuntu. and developed some demo Qt GUI Application, those are running fine in build mode.

            1 Reply Last reply
            0
            • dheerendraD Offline
              dheerendraD Offline
              dheerendra
              Qt Champions 2022
              wrote on last edited by
              #9

              that is good. You are able to build & run the program. It means the executable is built and it works. Now tell us what are you searching for ?

              Dheerendra
              @Community Service
              Certified Qt Specialist
              http://www.pthinks.com

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Rahul Samanta
                wrote on last edited by
                #10

                Sir, I want a single setup file of that existing QT project in Ubuntu/ Linux, that will run in other Linux machine. now I am running the application in Build mode from Qt Creator.

                1 Reply Last reply
                0
                • dheerendraD Offline
                  dheerendraD Offline
                  dheerendra
                  Qt Champions 2022
                  wrote on last edited by
                  #11

                  ok. For this you need all the dependent libraries to copied. You can some thing like deployment tools. It should help you to package all the dependent so files

                  Dheerendra
                  @Community Service
                  Certified Qt Specialist
                  http://www.pthinks.com

                  1 Reply Last reply
                  1
                  • R Offline
                    R Offline
                    Rahul Samanta
                    wrote on last edited by
                    #12

                    Sir, I tried this approach but, I am not getting the procedure rather the steps to follow. sir, can you please specify the steps to follow in detail.
                    Thanks & Regards,
                    Rahul.

                    1 Reply Last reply
                    0
                    • dheerendraD Offline
                      dheerendraD Offline
                      dheerendra
                      Qt Champions 2022
                      wrote on last edited by
                      #13

                      For any application to run you need to have all dependent libraries. So for qt you need to copy all the dependent libraries like libqtwidgets,libcore, lingui.so etc library files. Please copy all these libraries to new system along with your executable. If you run linuxdeploymet tool it will automatically to copy them. Hope it is clear

                      Dheerendra
                      @Community Service
                      Certified Qt Specialist
                      http://www.pthinks.com

                      1 Reply Last reply
                      1
                      • R Offline
                        R Offline
                        Rahul Samanta
                        wrote on last edited by
                        #14

                        Hi, Sir, inside that deployment tools [linuxdeployqt (https://github.com/probonopd/linuxdeployqt), I can't find out the "linuxdeployqt.appimage "file. Without this file how is it possible to run rather install the Liinuxdeployqt tools??
                        Thanks & Regards,
                        Rahul.

                        1 Reply Last reply
                        0
                        • dheerendraD Offline
                          dheerendraD Offline
                          dheerendra
                          Qt Champions 2022
                          wrote on last edited by
                          #15

                          @Rahul-Samanta In general you need dependent library for the program to work. Copy all the Qt*.so files along with executable. It should work.

                          Dheerendra
                          @Community Service
                          Certified Qt Specialist
                          http://www.pthinks.com

                          R 1 Reply Last reply
                          0
                          • dheerendraD dheerendra

                            @Rahul-Samanta In general you need dependent library for the program to work. Copy all the Qt*.so files along with executable. It should work.

                            R Offline
                            R Offline
                            Rahul Samanta
                            wrote on last edited by
                            #16

                            @dheerendra said in How to make .exe file on Ubuntu:

                            @Rahul-Samanta In general you need dependent library for the program to work. Copy all the Qt*.so files along with executable. It should work.

                            Hi Sir, I have fixed all those deployment issues using the linuxdeplyqt and linuxdeployqt.appimage, able to create executable for QT application. also tested the application for other Linux pc, and its working fine.
                            Thanks & Regards,
                            Rahul.

                            T 1 Reply Last reply
                            1
                            • R Rahul Samanta

                              @dheerendra said in How to make .exe file on Ubuntu:

                              @Rahul-Samanta In general you need dependent library for the program to work. Copy all the Qt*.so files along with executable. It should work.

                              Hi Sir, I have fixed all those deployment issues using the linuxdeplyqt and linuxdeployqt.appimage, able to create executable for QT application. also tested the application for other Linux pc, and its working fine.
                              Thanks & Regards,
                              Rahul.

                              T Offline
                              T Offline
                              the woft
                              wrote on last edited by the woft
                              #17

                              @Rahul-Samanta hi sir , you can guide for me using linuxdeplyqt and linuxdeployqt.appimage

                              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