Execute the following commands in the directory where Qt is installed (for example: C:\6.3\): Otherwise you may get errors due to wrong or missing paths. Start the Visual Studio 2008 Command Prompt. Make sure that Microsoft Visual Studio is installed. More information on static builds with mingw can be found here Using Microsoft Visual Studio Using MinGW > configure -static -release -no-exceptions The commands that should be executed depend on the desired platform MinGW ( win32-g ) or Microsoft Visual Studio ( win32-msvc). The first step is to build a static version of Qt. Please note that the size of the executable file will be larger. To create such a standalone version of a Qt application all required libraries should be embedded into the application using static linking. This is an executable file that has no dependencies (aka does not require any dynamic linking to libraries). The goal of this article is to show how to build a standalone executable file of a Qt application for Microsoft Windows.
0 Comments
Leave a Reply. |