diff options
author | Javier <dev.git@javispedro.com> | 2021-09-11 23:38:34 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2021-09-11 23:38:34 +0200 |
commit | dd0fc96053a3ef52a7420fc0cdce2816bd19a643 (patch) | |
tree | 29cc67977b750668d1a3f150a1c500b90bbc4436 | |
parent | f41de1f894c30927fa1eb6e400614c1f441d8ef4 (diff) | |
download | scribiu-dd0fc96053a3ef52a7420fc0cdce2816bd19a643.tar.gz scribiu-dd0fc96053a3ef52a7420fc0cdce2816bd19a643.zip |
fix build issues with quazip on some environments
-rw-r--r-- | scribiu.pro | 10 | ||||
-rw-r--r-- | smartpensyncer.cc | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/scribiu.pro b/scribiu.pro index 8735caa..2393158 100644 --- a/scribiu.pro +++ b/scribiu.pro @@ -7,7 +7,15 @@ QT += phonon4qt5 CONFIG += c++11 CONFIG += link_pkgconfig -PKGCONFIG += libudev libusb-1.0 openobex quazip1-qt5 +PKGCONFIG += libudev libusb-1.0 openobex + +packagesExist(quazip1-qt5) { + PKGCONFIG += quazip1-qt5 +} else { + # Some "distributions" forgot to distribute the pkg-config file... + LIBS += -lquazip5 + INCLUDEPATH += /usr/include/quazip5 +} SOURCES += main.cc \ mainwindow.cc \ diff --git a/smartpensyncer.cc b/smartpensyncer.cc index d0c472e..9149f33 100644 --- a/smartpensyncer.cc +++ b/smartpensyncer.cc @@ -20,7 +20,7 @@ #include <QtCore/QScopedArrayPointer> #include <QtCore/QThread> #include <QtCore/QDebug> -#include <quazip/quazipfile.h> +#include <quazipfile.h> #include <cstdio> #include "paperreplay.h" #include "notebookmodel.h" |