Qt 5.4.2 Static using MSVC2013

Posted on Posted in Qt Tutorials, Tutorials

I was able to successfully build Qt 5.4.2 Static using Microsoft Visual C++ 2013 (MSVC2013)

It is almost the same as my post on Qt 5.4.0 Static using MSVC2010

Again, please keep in mind that these are NOT some exact steps and you can change the folders to another path that suits you.

Please note that I have omitted Step 4 of the previous post so the EXE built using this kit will still depend on MSVC2013 run-time libraries. (http://www.microsoft.com/en-us/download/details.aspx?id=40784) You can still do it the other way around 🙂

1. Download and extract qt source to this path:

2. Add QtCreatr to path by changing Environment variables like this:
PATH = C:\Qt\Tools\QtCreator\bin

3. Create folder C:\Qt\5.4\Static\Qt5.4.2_msvc2013_x86

4. Using MSVC2013 cmd , run as admin, Configure using following command: (in here : C:\Qt\5.4\qt-everywhere-opensource-src-5.4.2)

configure.bat -static -debug-and-release -prefix “C:\Qt\5.4\Static\Qt5.4.2_msvc2013_x86” -platform win32-msvc2013 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite -qt-sql-odbc -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests

5. Run jom (without any parameters so that the ideal thread count is calculated automatically)

6. run jom install

7. go to every individual module folder and do jom and jom install

Leave a Reply

Your email address will not be published. Required fields are marked *