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. [Solved]How to create Executable for windows based environment?
Forum Updated to NodeBB v4.3 + New Features

[Solved]How to create Executable for windows based environment?

Scheduled Pinned Locked Moved General and Desktop
16 Posts 7 Posters 6.0k 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.
  • M Offline
    M Offline
    Maheshwara
    wrote on last edited by
    #1

    Dear Friends,
    I'm beginner in Qt/QML. I have a qml project and i've developed in linux. How to create an executable file for windows based environment?. Please explain how to solve this?. I'm expecting a clear answers from u friends... Thanks in advance.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      You grab yourself a windows box, install the Qt SDK there and then do exactly as you do on Linux.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Maheshwara
        wrote on last edited by
        #3

        I can't understand. I'm developed this for desktop. I want to create like an application and to install this or run this on windows platform. is any way to clear this?.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          To generate a Windows executable you'll have to compile your application with a Windows toolchain (the same way you did with a Linux toolchain to generate a Linux binary).

          This can be done either

          • using a native toolchain on the target platform (as Tobias suggested) or
          • using a cross-compile toolchain on the Linux platform (like MinGW).

          There is no way to generate a single binary which runs on both, Linux and Windows. You will have to compile your application twice with different toolchains.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Maheshwara
            wrote on last edited by
            #5

            I'm cleared...

            bq. "There is no way to generate a single binary which runs on both, Linux and Windows. You will have to compile your application twice with different toolchains."

            I got my solution. Thank u friends. Within an hours all the Qt based problems are solved here. That's y Qt teams and this forum still rocks...

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Rahul Das
              wrote on last edited by
              #6

              bq. to install this or run this on windows platform

              5mahesh is looking for a deployment solution ? Read "here":to install this or run this on windows platform.


              Declaration of (Platform) independence.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Rahul Das
                wrote on last edited by
                #7

                oops. bad timing.. Pls ignore prev post.


                Declaration of (Platform) independence.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Maheshwara
                  wrote on last edited by
                  #8

                  yeah rahul.. now only i'm seeing this link. Thank u.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Maheshwara
                    wrote on last edited by
                    #9

                    No rahul.. Some peoples like me will see this converse and clear their problems.

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

                      prev post, i put this link actually : http://developer.qt.nokia.com/doc/qt-4.8/deployment-windows.html

                      But it points to invalid link now! And cant edit also.. Anyway, happy coding.


                      Declaration of (Platform) independence.

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #11

                        [quote author="Rahul Das" date="1324630440"]And cant edit also.. Anyway, happy coding.[/quote]

                        Everyone can edit ones own posts. The edit link is right to the post, below username and avatar.

                        http://www.catb.org/~esr/faqs/smart-questions.html

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

                          @Volker : Some times its happening to me. Even now, i cant edit. Ie the 'edit' link is not appearing as a link to me and can't click.
                          Even 'quote' and 'link' are same.


                          Declaration of (Platform) independence.

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            goetz
                            wrote on last edited by
                            #13

                            [quote author="Rahul Das" date="1324647877"]@Volker : Some times its happening to me. Even now, i cant edit. Ie the 'edit' link is not appearing as a link to me and can't click.
                            Even 'quote' and 'link' are same.[/quote]

                            Ouch - time to open a "bug report":http://bugreports.qt.nokia.com/ :-) Seriously, this is a bug - everyone should be able to edit ones posts. You should indicate your operating system and browser (including versions). The Trolls will surely have a look.

                            http://www.catb.org/~esr/faqs/smart-questions.html

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

                              :) Sure.. and Thank u for the 'bug report' link..


                              Declaration of (Platform) independence.

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mgran
                                wrote on last edited by
                                #15

                                Thanks Rahul Das, we will check this out when we're back in action.

                                Project Manager - Qt Development Frameworks

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  Seba84
                                  wrote on last edited by
                                  #16

                                  [quote author="5mahesh" date="1324629988"] I got my solution. Thank u friends. Within an hours all the Qt based problems are solved here. That's y Qt teams and this forum still rocks...[/quote]

                                  I agree. And not only Qt based problems!

                                  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