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. Standalone application
Forum Updated to NodeBB v4.3 + New Features

Standalone application

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 2.7k 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.
  • cpperC Offline
    cpperC Offline
    cpper
    wrote on last edited by
    #1

    Hello. I'm trying to learn to build a standalone application, and am looking for a thorough tutorial. I would like to be able to run the qt app from a computer(windows) which doesn't have MSVC or Qt installed.
    I have Qt 5.7.0 msvc2015_64 and am running Win7 64bit. I have also downloaded qt-everywhere-opensource-src-5.7.0 .
    I found this tutorial but get "NMAKE : fatal error U1073: don't know how to make 'sub-src' Stop." error when trying nmake sub-src. Do you guys maybe know a good tutorial ?

    VRoninV 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      hi and welcome
      Just to be sure. Your goal is a static compiled Qt and an exe that has no need for extra
      files when deployed ? Such deployment that is not allowed to be used - unless you own licensee to Qt or that you do provide full source for the program?

      Or do you just mean a normal deployment?

      http://doc.qt.io/qt-5/deployment.html
      http://www.tripleboot.org/?p=536

      cpperC 1 Reply Last reply
      1
      • cpperC cpper

        Hello. I'm trying to learn to build a standalone application, and am looking for a thorough tutorial. I would like to be able to run the qt app from a computer(windows) which doesn't have MSVC or Qt installed.
        I have Qt 5.7.0 msvc2015_64 and am running Win7 64bit. I have also downloaded qt-everywhere-opensource-src-5.7.0 .
        I found this tutorial but get "NMAKE : fatal error U1073: don't know how to make 'sub-src' Stop." error when trying nmake sub-src. Do you guys maybe know a good tutorial ?

        VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        which doesn't have MSVC installed.

        Not completely possible. but Microsoft ships redistributable packages for this: https://www.microsoft.com/en-us/download/details.aspx?id=48145 given how popular they are they might be already installed in a lot of your targets

        which doesn't have Qt installed.

        Qt has a tool to deploy your binary: http://doc.qt.io/qt-5/windows-deployment.html#the-windows-deployment-tool

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        2
        • mrjjM mrjj

          hi and welcome
          Just to be sure. Your goal is a static compiled Qt and an exe that has no need for extra
          files when deployed ? Such deployment that is not allowed to be used - unless you own licensee to Qt or that you do provide full source for the program?

          Or do you just mean a normal deployment?

          http://doc.qt.io/qt-5/deployment.html
          http://www.tripleboot.org/?p=536

          cpperC Offline
          cpperC Offline
          cpper
          wrote on last edited by cpper
          #4

          @mrjj I want to be able to run the qt app on a computer which doesn't have qt installed. I sent an app I made, including the needed dlls(Qt5Core/Gui/Widgets.dll) to a friend and he gets following error : " The application failed to start because it could not find or load the Qt platform plugin "windows"." I'd like to make it work in such situations.

          Also, if possible, it would be nice to only have an .exe , without dlls, only because it looks nicer.
          I don't plan to sell or make any profit, so providing source code of my program is not a problem.

          @VRonin I only noticed your post now. Will check the link soon.

          1 Reply Last reply
          0
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            The windows deployment tool I linked will fix your "platform plugin" problem.

            To be able to "send just the exe" means you have to compile Qt from sources as a static library (just google build static qt but don't expect a walk in the park) and then link against those static libraries this will make your exe grow considerably in size and you'll lose the possibility to use LGPL licenses (only GPL and commercial are available)

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            1
            • cpperC Offline
              cpperC Offline
              cpper
              wrote on last edited by
              #6

              The win deploy tool solved indeed the problem, I sent my app and the generated files to a friend and the app works on his Win10 PC.
              I'll leave the static compiling, for now, because it's way too complicated for my actual knowledge.

              Thanks guys !

              1 Reply Last reply
              0
              • cpperC Offline
                cpperC Offline
                cpper
                wrote on last edited by
                #7

                Update, sent to another friend with Win10 and he gets VCRUNTIME140.dll and MSVCP140dll missing errors. That means he doesn't have the redistributable ?

                mrjjM 1 Reply Last reply
                0
                • cpperC cpper

                  Update, sent to another friend with Win10 and he gets VCRUNTIME140.dll and MSVCP140dll missing errors. That means he doesn't have the redistributable ?

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @cpper
                  hi
                  yes sounds like the VS runtime missing
                  Visual C++ 2015 runtimes
                  https://www.microsoft.com/en-us/download/details.aspx?id=48145

                  1 Reply Last reply
                  1

                  • Login

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