Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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.


  • Moderators

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



  • 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?.



  • 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.



  • 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...



  • 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.



  • oops. bad timing.. Pls ignore prev post.



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



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



  • 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.



  • [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.



  • @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 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.



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



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



  • [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!


Log in to reply