diff --git a/Jamulus.pro b/Jamulus.pro index 04ea0f4c2f..3394cfe7ab 100644 --- a/Jamulus.pro +++ b/Jamulus.pro @@ -93,10 +93,22 @@ win32 { # replace ASIO with jack if requested contains(CONFIG, "jackonwindows") { - message(Using Jack instead of ASIO.) - - !exists("C:/Program Files (x86)/Jack/includes/jack/jack.h") { - message(Warning: jack.h was not found at the usual place, maybe jack is not installed) + contains(QT_ARCH, "i386") { + exists("C:/Program Files (x86)") { + message("Cross compilation build") + programfilesdir = "C:/Program Files (x86)" + } else { + message("Native i386 build") + programfilesdir = "C:/Program Files" + } + libjackname = "libjack.lib" + } else { + message("Native x86_64 build") + programfilesdir = "C:/Program Files" + libjackname = "libjack64.lib" + } + !exists("$${programfilesdir}/JACK2/include/jack/jack.h") { + message("Warning: jack.h was not found in the expected location ($${programfilesdir}). Ensure that the right JACK2 variant is installed (32bit vs. 64bit).") } HEADERS -= windows/sound.h @@ -106,9 +118,10 @@ win32 { DEFINES += WITH_JACK DEFINES += JACK_REPLACES_ASIO DEFINES += _STDINT_H # supposed to solve compilation error in systemdeps.h - INCLUDEPATH += "C:/Program Files (x86)/Jack/includes" - LIBS += "C:/Program Files (x86)/Jack/lib/libjack64.lib" + INCLUDEPATH += "$${programfilesdir}/JACK2/include" + LIBS += "$${programfilesdir}/JACK2/lib/$${libjackname}" } + } else:macx { contains(CONFIG, "server_bundle") { message(The generated application bundle will run a server instance.) @@ -151,7 +164,7 @@ win32 { !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 jack is not installed) + message("Warning: jack.h was not found at the usual place, maybe jack is not installed") } }