From 3acf0e3342fc09d21a7162bf07cb47965d9df973 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Mon, 8 Jul 2024 11:55:15 +0200 Subject: [PATCH] Use version.h to set path to library --- mainwindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index c5679d2..3dedc84 100755 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -9,6 +9,7 @@ * introduced in CatGui in 2021, dec. 6. */ +#include "version.h" char MainWindow::loadPlugIn(char lade1_entlade2) @@ -22,9 +23,14 @@ char MainWindow::loadPlugIn(char lade1_entlade2) // select system: +#if defined (ARCH_WINDOWS) // Windows DT -// pluginLoader->setFileName("../../SlavePlug/CAslave.dll"); // for windows + pluginLoader->setFileName("../../SlavePlug/CAslave.dll"); // for windows +#elif defined (ARCH_DesktopLinux) + pluginLoader->setFileName("../../SlavePlug/libCAslave.so"); +#elif defined (ARCH_PTU5) pluginLoader->setFileName("/usr/lib/libCAslave.so"); // for PTU5 +#endif if (lade1_entlade2==2) {