On 20/01/2017 03:42, Joe Taylor wrote:
> After installing the program I get the following error when launching
> "Program has stopped working "looking for a Qt platform plugin "windows".

Hi Joe,

the way this works is that a Qt development tools install patches the 
path, to the plugin libraries and other resources located at run time, 
into the, Qt libraries. This means that during development you do not 
have to worry about how these run time dependencies are found. When you 
deploy to other systems there has to be another mechanism which is the 
qt.conf file. The Qt libraries look for a qt.conf file in a specified, 
platform dependent, list of locations. In the qt.conf you can specify 
the path to the plugins root directory, the path can be relative so a 
moveable installation is possible.

So bottom line, when building a deployable package, you must include the 
required plugin libraries and other runtime loaded resources in a 
suitable directory structure and generate a matching qt.conf file so 
that the Qt libraries can find the plugins and resources.

If you are using qmake to make deployable packages there is a tool 
called qtdeploy to do this stuff, with CMake there are helper scripts 
although generating the qt.conf file and picking the required plugin 
components is a manual process.

http://doc.qt.io/qt-5/qt-conf.html

73
Bill
G4WJS.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to