From fb7470a2a6b4a35117edea4094d3d6dde3bd1637 Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 16 Apr 2020 03:13:07 +0200 Subject: [PATCH] build: find zbar header on macOS --- monero-wallet-gui.pro | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index d76b8c2a..68158bbb 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -231,6 +231,14 @@ CONFIG(WITH_SCANNER) { LIBS += -lzbarjni -liconv } else { LIBS += -lzbar + macx { + ZBAR_DIR = $$system(brew --prefix zbar, lines, EXIT_CODE) + equals(EXIT_CODE, 0) { + INCLUDEPATH += $$ZBAR_DIR/include + } else { + INCLUDEPATH += /usr/local/include + } + } } } else { message("Skipping camera scanner because of Incompatible Qt Version !")