Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.
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 ?
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?
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
cpper last edited by cpper
@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.
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)
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 !
Update, sent to another friend with Win10 and he gets VCRUNTIME140.dll and MSVCP140dll missing errors. That means he doesn't have the redistributable ?
yes sounds like the VS runtime missing
Visual C++ 2015 runtimes