From 5634aa93bf783362267f4de1967b430dd8bcc765 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Wed, 25 Mar 2020 23:00:47 +0100 Subject: [PATCH] Use pkg-config to find Jack The hardcoded directories for jack are not always correct. It is more flexible to use pkg-config to find Jack. --- Jamulus.pro | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Jamulus.pro b/Jamulus.pro index f00a9bb1..c594288a 100755 --- a/Jamulus.pro +++ b/Jamulus.pro @@ -113,17 +113,12 @@ win32 { nosoundoption = $$find(CONFIG, "nosound") count(nosoundoption, 0) { message(Jack Audio Interface Enabled.) - - !exists(/usr/include/jack/jack.h) { - !exists(/usr/local/include/jack/jack.h) { - message("Warning: jack.h was not found at the usual place, maybe the jack dev packet is missing") - } - } + CONFIG += link_pkgconfig + PKGCONFIG += jack HEADERS += linux/sound.h SOURCES += linux/sound.cpp DEFINES += WITH_SOUND - LIBS += -ljack } # Linux is our source distribution, include sources from other OSs