I deployed my application. I hope those dll's are enough for deploying the "SimpleMainWindow" on any computers:
libgcc_s_dw2-1.dll
libstdc++-6.dll
libwinpthread-1.dll
mingwm10.dll
QtCore4.dll
QtGui4.dll
I deployed my application. I hope those dll's are enough for deploying the "SimpleMainWindow" on any computers:
libgcc_s_dw2-1.dll
libstdc++-6.dll
libwinpthread-1.dll
mingwm10.dll
QtCore4.dll
QtGui4.dll
The requirements beyond the basic QtX4.dlls are spelled out in the Deploying an Application on Windows. If your application uses images in formats other than PNG, SQL, CJK text processing, etc. then you may well need to deploy plugins with your program.
8Observer8 (14th October 2013)
I will read it through carefully. Thanks!
My "Step by Step" instruction how to build applications without libstdc++-6.dll, libgcc_s_dw2-1.dll, Qt5Core.dll, Qt5Gui.dll and so on.
Tools:
Version of Qt: Qt 5.2.0 for Windows 32-bit (MinGW 4.8, OpenGL, 689 MB)
OS: Window 7
- download and install Qt 5.2.0 for Windows 32-bit (MinGW 4.8, OpenGL, 689 MB) (check Source Components) from here http://qt-project.org/downloads
- move to C:\Qt\Qt5.2.0\5.2.0\Src\qtbase\mkspecs\win32-g++ and open qmake.conf
- find QMAKE_LFLAGS in qmake.conf and rewrite it:
- open console Start -> All Programs -> Qt 5.2.0 -> 5.2.0 -> MinGW 4.8 (32-bit) -> Qt 5.2.0 for Desktop (MinGW 4.8 32 bit)QMAKE_LFLAGS = -static -static-libgcc
cd c:\Qt\Qt5.2.0\5.2.0\Src\qtbaseconfigure -static -prefix "C:\Qt\Qt5.2.0_static" -opengl desktop -nomake examples -nomake testsmingw32-make- run QtCreatormingw32-make install
- in menu "Tools" -> "Options..."
- Build & Run -> Qt Versions -> click "Add..." button -> select "C:\Qt\Qt5.2.0_static\bin\qmake.exe" -> click "Apply" button
- go to "Kits" tab -> click "Add" button
- write in the field "Name": Desktop Qt 5.2.0 Static MinGW 32 bit
- select in "Qt version": static Qt virsion
- click Ok
- create a test project, for this:
- in menu "File" -> "New File or Project" -> "Applications" -> "Qt Widgets Application" -> click "Choose" button
- enter the "Name": Hello_Static_Qt -> enter the "Create in": D:\QtProjects -> click "Next" -> select "Desktop Qt 5.2.0 Static MinGW 32 bit" -> click "Next" -> click "Next" -> click "Finish"
- click "Projects" in the right panel
- click "Desktop Qt 5.2.0 Static MinGW 32 bit" on the top
- select "Edit build configuration": Release
- in the "Build Steps" in "qmake" expend "Details"
- select "qmake build configuration": Release
- enter "Additional arguments": "CONFIG += release" (in double quotes)
- in "Menu" -> click "Build" -> "Build Project 'Hello_static_Qt'"
- go to "D:\QtProjects\build-Hello_Static_Qt-Desktop_Qt_5_2_0_Static_MinGW_32bit-Release\release"
- run your static application: Hello_Static_Qt.exe
Last edited by 8Observer8; 17th December 2013 at 19:27.
Bookmarks