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. Building Standalone exe file for PCs without QT
Forum Updated to NodeBB v4.3 + New Features

Building Standalone exe file for PCs without QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 463 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.
  • J Offline
    J Offline
    JDZ52118
    wrote on last edited by
    #1

    First of all, apologies, I am extremely new to QT and programming in general, so this may be incredibly basic or even not-possible.

    I have built a QT Creator project that I would like to package and send to people (who don't have QT) so they can use them. On my own computer it works by copying all the necessary .dll files to a folder containing my exe file. But when I tried to send this folder to other people it has had runtime errors.

    I have read about building static libraries and even the Visual Studios 2015 plug in to build an exe that can work without QT, but I have no experience building static libraries and my attempts have all failed so far.

    My question is: Is there a way to build a QT Creator project that will automatically include all the files and libraries needed to run as a standalone exe?

    Apologies again for a silly question,

    JD

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      No, you first have to build Qt statically also modifying its configuration to use the VS static runtime. If you want to use a static build you also have to abide by the LGPL/GPL license constraints unless you are using a commercial license for Qt.

      On the other hand, you have the windowsdeployqt helper to prepare a package to deploy on other computers.

      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
      2

      • Login

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