Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Creating a single-file 64-bit executable with Qt
Forum Updated to NodeBB v4.3 + New Features

Creating a single-file 64-bit executable with Qt

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 1.5k 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.
  • M Offline
    M Offline
    mchome
    wrote on last edited by
    #1

    I've created a program that I distribute for Windows as a single exe: to do this I've created a few years ago a static version of Qt. At those times I used Qt 5.7.0, with Mingw53_32, and everything worked well, so I remained loyal to Qt 5.7.0 and Mingw53_32.

    Now some users ask me to get a 64 bit (Windows) version of my program. So I've to create a new version of static Qt libraries. I would prefer to stick with Qt 5.7, but could also change version, in case of need.
    Similarly I can use either MinGW or MSVC (I have 2010 and 2013), whichever works.

    I've searched a lot on the Internet, but found nothing useful for me: all I found referred to win32. But I cannot think that nobody has crated yet a single-file 64 bit Win executable!
    Can anyone address me to some source of information for this?

    Thanks to anyone.

    A 1 Reply Last reply
    0
    • M mchome

      I've created a program that I distribute for Windows as a single exe: to do this I've created a few years ago a static version of Qt. At those times I used Qt 5.7.0, with Mingw53_32, and everything worked well, so I remained loyal to Qt 5.7.0 and Mingw53_32.

      Now some users ask me to get a 64 bit (Windows) version of my program. So I've to create a new version of static Qt libraries. I would prefer to stick with Qt 5.7, but could also change version, in case of need.
      Similarly I can use either MinGW or MSVC (I have 2010 and 2013), whichever works.

      I've searched a lot on the Internet, but found nothing useful for me: all I found referred to win32. But I cannot think that nobody has crated yet a single-file 64 bit Win executable!
      Can anyone address me to some source of information for this?

      Thanks to anyone.

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @mchome You can build Qt with the mingw 64 bit compiler. And you can tell Qt to build static. In the past it has been difficult to get a 64-bit mingw build of Qt for me. So my advice there is to make sure you use the exact version that Qt uses to build whatever your target version of Qt is. It will come with some headaches (what in Windows doesn't though) but it should be buildable.

      Lastly, be aware of licensing constraints with doing that. You need a commercial license of Qt in order to distribute statically linked binaries. You can't use the open source version. Of course that is true of your 32-bit one as well, so you probably already knew that. Just warning you in case you didn't know.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      sierdzioS 1 Reply Last reply
      2
      • A ambershark

        @mchome You can build Qt with the mingw 64 bit compiler. And you can tell Qt to build static. In the past it has been difficult to get a 64-bit mingw build of Qt for me. So my advice there is to make sure you use the exact version that Qt uses to build whatever your target version of Qt is. It will come with some headaches (what in Windows doesn't though) but it should be buildable.

        Lastly, be aware of licensing constraints with doing that. You need a commercial license of Qt in order to distribute statically linked binaries. You can't use the open source version. Of course that is true of your 32-bit one as well, so you probably already knew that. Just warning you in case you didn't know.

        sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        @ambershark said in Creating a single-file 64-bit executable with Qt:

        You can't use the open source version

        Not unless the application is licensed under LGPL/GPL as well, that is.

        (Z(:^

        1 Reply Last reply
        4

        • Login

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