2017-01-19 03:53:50 +13:00
|
|
|
Harald Oehlmann
|
2017-03-30 06:21:49 +13:00
|
|
|
2017-03-29
|
2017-01-19 03:53:50 +13:00
|
|
|
|
|
|
|
How to build qzint.exe using:
|
2020-08-05 01:49:25 +12:00
|
|
|
- QT 5.15.0 source package
|
2017-01-19 03:53:50 +13:00
|
|
|
- MS Visual Studio 2015 (VC12)
|
|
|
|
|
2017-03-30 06:21:49 +13:00
|
|
|
Build static Qt:
|
|
|
|
---------------
|
2020-08-05 01:49:25 +12:00
|
|
|
- Go to: https://www.qt.io/offline-installers
|
|
|
|
- Download the zip "Qt 5.15.x source packages" (nearly 1 GB):
|
|
|
|
http://download.qt.io/official_releases/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.zip
|
|
|
|
- Unzip to C:\qt resulting in having the source in c:\qt\qt-everywhere-src-5.15.0
|
|
|
|
- Install Python (ActivePython-3.7.4.0000-win64-x64-e0b99d60.msi) and make it available within the path.
|
2017-03-30 06:21:49 +13:00
|
|
|
|
|
|
|
- Start the VS2015 x86 native console by the start menu entry:
|
|
|
|
Visual Studio 2015\Visual Studio Tools\Windows Desktop Command Prompts\VS2015 x86 Native Tools-Eingabeaufforderung
|
|
|
|
|
2020-08-05 01:49:25 +12:00
|
|
|
- cd C:\qt\qt-everywhere-src-5.15.0
|
|
|
|
- configure.bat -static -release -prefix c:\qt\5.15.0static -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests -mp
|
2017-03-30 06:21:49 +13:00
|
|
|
One may set another destination folder after the -prefix option.
|
|
|
|
Attention, the upper command is one long line.
|
|
|
|
- nmake
|
|
|
|
- nmake install
|
2020-08-05 01:49:25 +12:00
|
|
|
The last 3 commands run around 3 hours.
|
|
|
|
Make sure, that python may be found in the path.
|
|
|
|
- the huge source folder may be deleted to save around 6GB of space.
|
2017-03-30 06:21:49 +13:00
|
|
|
|
|
|
|
Zint Folder structure:
|
|
|
|
----------------------
|
2017-01-19 03:53:50 +13:00
|
|
|
- zint source files in $ZH
|
|
|
|
-> this file is in $ZH\frontend_qt
|
|
|
|
- png1620.zip unzipped in $ZH\..\lpng
|
|
|
|
-> $ZH\..\lpng\png.h exists
|
|
|
|
- zlib128.zip unzipped in folder $ZH\..\zlib
|
|
|
|
-> $ZH\..\zlib\zlib.h exists
|
|
|
|
|
2017-01-19 05:39:41 +13:00
|
|
|
Build libpng:
|
2017-03-30 06:21:49 +13:00
|
|
|
-------------
|
2017-01-19 05:39:41 +13:00
|
|
|
Open $ZH\..\lpng\projects\vstudio with VS2015 gui and convert the project
|
2017-01-19 06:07:17 +13:00
|
|
|
Set Project settings->C++->Code Generation->Library: Multi-Threadded DLL /MD
|
2017-01-19 05:39:41 +13:00
|
|
|
Copy the zlib source as required by the make file (in my case: zlib-1.2.8)
|
|
|
|
Build targets "Release Library" for zlib and libpng.
|
|
|
|
|
2017-03-30 06:21:49 +13:00
|
|
|
Build zint:
|
|
|
|
-----------
|
|
|
|
- Start in the start menu: "VS2015 x86 Native Tools-Eingabeaufforderung"
|
2020-08-05 01:49:25 +12:00
|
|
|
- set QTDIR=C:\Qt\5.15.0static
|
|
|
|
- set PATH=C:\Qt\5.15.0static\bin;%PATH%
|
|
|
|
- set QMAKESPEC=win32-msvc
|
2017-01-19 03:53:50 +13:00
|
|
|
- cd $ZH
|
|
|
|
- cd backend_qt
|
|
|
|
- qmake backend_qt.pro
|
|
|
|
- nmake clean
|
|
|
|
- nmake release
|
2020-08-05 01:49:25 +12:00
|
|
|
|
2017-01-19 03:53:50 +13:00
|
|
|
- cd ..\frontend_qt
|
|
|
|
- qmake frontend_qt.pro
|
|
|
|
- nmake clean
|
|
|
|
- nmake release
|
|
|
|
-> qzint.exe is in the release folder
|
2020-08-05 01:49:25 +12:00
|
|
|
|
|
|
|
Note:
|
|
|
|
For me, qt5core.lib was not found in the last step.
|
|
|
|
I only found the solution to add:
|
|
|
|
|
|
|
|
QMAKE_LIBDIR += C:/qt/5.15.0static/lib
|
|
|
|
|
|
|
|
into frontend_qt.pro
|
|
|
|
|
|
|
|
There is for sure a better solution.
|