From e9c55847cf0876c46fb2470bd3d082853a36ab69 Mon Sep 17 00:00:00 2001 From: Harald Oehlmann Date: Tue, 5 Jan 2021 17:34:50 +0100 Subject: [PATCH] make qtzint on WIndows: Instructions updated. Martin provided the attached frontend_qt.pro file which includes the zint library (Thanks !) --- frontend_qt/frontend_qt.pro | 95 ++++++++++++++++++- .../howto_build_qzint_using_msvs2015.txt | 9 +- 2 files changed, 93 insertions(+), 11 deletions(-) diff --git a/frontend_qt/frontend_qt.pro b/frontend_qt/frontend_qt.pro index c1ec8a28..58dd44c8 100644 --- a/frontend_qt/frontend_qt.pro +++ b/frontend_qt/frontend_qt.pro @@ -2,6 +2,11 @@ TEMPLATE = app TARGET = qtZint DEPENDPATH += . debug release INCLUDEPATH += . +INCLUDEPATH += ../backend +!contains(DEFINES, NO_PNG) { + INCLUDEPATH += ../../lpng + INCLUDEPATH += ../../zlib +} QT += gui QT += uitools QT += widgets @@ -13,7 +18,40 @@ HEADERS += barcodeitem.h \ exportwindow.h \ mainwindow.h \ sequencewindow.h \ - qzint.h + qzint.h \ + ..\backend\aztec.h \ + ..\backend\bmp.h \ + ..\backend\channel_precalcs.h \ + ..\backend\code1.h \ + ..\backend\code128.h \ + ..\backend\code49.h \ + ..\backend\common.h \ + ..\backend\composite.h \ + ..\backend\dmatrix.h \ + ..\backend\eci.h \ + ..\backend\emf.h \ + ..\backend\font.h \ + ..\backend\gb18030.h \ + ..\backend\gb2312.h \ + ..\backend\general_field.h \ + ..\backend\gridmtx.h \ + ..\backend\gs1.h \ + ..\backend\hanxin.h \ + ..\backend\large.h \ + ..\backend\maxicode.h \ + ..\backend\ms_stdint.h \ + ..\backend\output.h \ + ..\backend\pcx.h \ + ..\backend\pdf417.h \ + ..\backend\qr.h \ + ..\backend\reedsol.h \ + ..\backend\reedsol_logs.h \ + ..\backend\rss.h \ + ..\backend\sjis.h \ + ..\backend\stdint_msvc.h \ + ..\backend\tif.h \ + ..\backend\zint.h \ + ..\backend\zintconfig.h \ FORMS += extData.ui \ extExport.ui \ @@ -30,6 +68,7 @@ FORMS += extData.ui \ grpCodablockF.ui \ grpDBExtend.ui \ grpDM.ui \ + grpDotCode.ui \ grpGrid.ui \ grpHX.ui \ grpLOGMARS.ui \ @@ -43,8 +82,7 @@ FORMS += extData.ui \ grpUPCA.ui \ grpUPCEAN.ui \ grpVIN.ui \ - mainWindow.ui \ - grpDotCode.ui + mainWindow.ui SOURCES += barcodeitem.cpp \ datawindow.cpp \ @@ -52,7 +90,55 @@ SOURCES += barcodeitem.cpp \ main.cpp \ mainwindow.cpp \ sequencewindow.cpp \ - qzint.cpp + qzint.cpp \ + ..\backend\2of5.c \ + ..\backend\auspost.c \ + ..\backend\aztec.c \ + ..\backend\bmp.c \ + ..\backend\codablock.c \ + ..\backend\code.c \ + ..\backend\code1.c \ + ..\backend\code128.c \ + ..\backend\code16k.c \ + ..\backend\code49.c \ + ..\backend\common.c \ + ..\backend\composite.c \ + ..\backend\dllversion.c \ + ..\backend\dmatrix.c \ + ..\backend\dotcode.c \ + ..\backend\eci.c \ + ..\backend\emf.c \ + ..\backend\gb18030.c \ + ..\backend\gb2312.c \ + ..\backend\general_field.c \ + ..\backend\gif.c \ + ..\backend\gridmtx.c \ + ..\backend\gs1.c \ + ..\backend\hanxin.c \ + ..\backend\imail.c \ + ..\backend\large.c \ + ..\backend\library.c \ + ..\backend\mailmark.c \ + ..\backend\maxicode.c \ + ..\backend\medical.c \ + ..\backend\output.c \ + ..\backend\pcx.c \ + ..\backend\pdf417.c \ + ..\backend\plessey.c \ + ..\backend\png.c \ + ..\backend\postal.c \ + ..\backend\ps.c \ + ..\backend\qr.c \ + ..\backend\raster.c \ + ..\backend\reedsol.c \ + ..\backend\rss.c \ + ..\backend\sjis.c \ + ..\backend\svg.c \ + ..\backend\telepen.c \ + ..\backend\tif.c \ + ..\backend\ultra.c \ + ..\backend\upcean.c \ + ..\backend\vector.c TRANSLATIONS = frontend_de.ts @@ -68,6 +154,7 @@ CONFIG += warn_on thread qt INCLUDEPATH += ../backend LIBS += -lQt5Core +QMAKE_LIBDIR += C:/qt/5.15.1static/lib !contains(DEFINES, NO_PNG) { # Win diff --git a/frontend_qt/howto_build_qzint_using_msvs2015.txt b/frontend_qt/howto_build_qzint_using_msvs2015.txt index 44605080..afec89c1 100644 --- a/frontend_qt/howto_build_qzint_using_msvs2015.txt +++ b/frontend_qt/howto_build_qzint_using_msvs2015.txt @@ -1,5 +1,5 @@ Harald Oehlmann -2017-03-29 +2020-01-05 How to build qzint.exe using: - QT 5.15.0 source package @@ -49,12 +49,7 @@ Build zint: - set PATH=C:\Qt\5.15.0static\bin;%PATH% - set QMAKESPEC=win32-msvc - cd $ZH -- cd backend_qt -- qmake backend_qt.pro -- nmake clean -- nmake release - -- cd ..\frontend_qt +- cd frontend_qt - qmake frontend_qt.pro - nmake clean - nmake release