MAking Jomtobo as Static Compilation - Ezeer/JomTobo GitHub Wiki

Static in QT 5.5.1:

This is a transcript of the following video tutorial: https://www.youtube.com/watch?v=Oyb20BAgx0U

1.- Download:

http://qt.mirror.constant.com/archive/qt/5.5/5.5.1/qt-opensource-windows-x86-mingw492-5.5.1.exe

https://www.python.org/ftp/python/3.4.3/python-3.4.3.amd64.msi

http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.2.3-x64.exe

http://strawberryperl.com/download/5.22.0.1/strawberry-perl-5.22.0.1-64bit.msi

note: For x86 look for the correct phyton, pearl and ruby releases. .

2.- install QT first complete with all options checked, them the rest of the above. .

3.- Go to C:\Qt\Qt5.5.1\5.5\Src\qtbase\mkspecs\win32-g++ and edit the qmake.conf file:

look the "QMAKE_LFLAGS = " and add "-static -static-libgcc". It should read something like this: .

QMAKE_LFLAGS = -static -static-libgcc .

4.- Rum the QT CMD in the start menu:

-

5.- Set paths:

Once in the CMD console go back one directory using cd.. and then to the src\qtbase directory (type cd src and then cd qtbase to get there )

type set Path=C:\Qt\Qt5.5.1\Tools\mingw492_32\bin;C:\Windows\System32;C:\Windows;C:\Python34;C:\Ruby22-x64;C:\Strawberry\perl

Be careful to set your own paths. The ones above may be different.

6.- Next type configure -static -release -opengl desktop -opensource and wait until the process finishes....

7.- Next type mingw32-make sub-src and wait. It can take from 30 minutes to hours to finish!

8.- Run QT and go to the tools-> Options menu. In the QT versions tab, select Add and select the file qmake.exe from this directory C:\Qt\Qt5.5.1\5.5\Src\qtbase\bin

9.- Now go to the Kits tab and select ADD. Change the following settings:

a) Name : QT5. b) Device : Local PC (default) c) Compiler : Mingw 4.9.2 32bit d) Debugger : GNU gdb 7.8 e) Qt version: Qt 5.5.1 (Src)