From dd0fc96053a3ef52a7420fc0cdce2816bd19a643 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 11 Sep 2021 23:38:34 +0200 Subject: fix build issues with quazip on some environments --- scribiu.pro | 10 +++++++++- 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 #include #include -#include +#include #include #include "paperreplay.h" #include "notebookmodel.h" -- cgit v1.2.3