mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Make png work
This commit is contained in:
parent
1863399956
commit
ffc9c441f7
@ -19,7 +19,7 @@ TARGET = QtZint
|
||||
INCLUDEPATH += ../backend
|
||||
|
||||
#EDIT THIS !!!!
|
||||
DEFINES += ZINT_VERSION="\\\"2.5.0\\\""
|
||||
DEFINES += ZINT_VERSION="\\\"2.5.1\\\""
|
||||
|
||||
!contains(DEFINES, NO_PNG) {
|
||||
INCLUDEPATH += ../../lpng
|
||||
|
@ -61,9 +61,9 @@ QMAKE_LIBDIR += ../backend_qt/release
|
||||
|
||||
!contains(DEFINES, NO_PNG) {
|
||||
# Win
|
||||
win32:LIBS += -llibpng16 -zlib
|
||||
win32:LIBS += -llibpng16 -lzlib
|
||||
win32:QMAKE_LIBDIR+="../../lpng/projects/vstudio/Release Library"
|
||||
# Unix
|
||||
unix:LIBS += -lpng -zlib
|
||||
unix:QMAKE_LIBDIR += /usr/local/lib /usr/lib/x86_64-linux-gnu/
|
||||
#unix:LIBS += -lpng -zlib
|
||||
#unix:QMAKE_LIBDIR += /usr/local/lib /usr/lib/x86_64-linux-gnu/
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ Folder structure:
|
||||
|
||||
Build libpng:
|
||||
Open $ZH\..\lpng\projects\vstudio with VS2015 gui and convert the project
|
||||
Set Project settings->C++->Code Generation->Library: Multi-Threadded DLL /MD
|
||||
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user