diff --git a/Software/PC_Application/LibreVNA-GUI/Calibration/LibreCAL/usbdevice.h b/Software/PC_Application/LibreVNA-GUI/Calibration/LibreCAL/usbdevice.h index c351c737..e1c78cf2 100644 --- a/Software/PC_Application/LibreVNA-GUI/Calibration/LibreCAL/usbdevice.h +++ b/Software/PC_Application/LibreVNA-GUI/Calibration/LibreCAL/usbdevice.h @@ -3,7 +3,11 @@ #include "Util/usbinbuffer.h" +#ifdef Q_OS_MACOS +#include +#else #include +#endif #include #include #include diff --git a/Software/PC_Application/LibreVNA-GUI/Device/LibreVNA/librevnausbdriver.h b/Software/PC_Application/LibreVNA-GUI/Device/LibreVNA/librevnausbdriver.h index 39a99e02..8a7614d9 100644 --- a/Software/PC_Application/LibreVNA-GUI/Device/LibreVNA/librevnausbdriver.h +++ b/Software/PC_Application/LibreVNA-GUI/Device/LibreVNA/librevnausbdriver.h @@ -4,7 +4,11 @@ #include "librevnadriver.h" #include "Util/usbinbuffer.h" +#ifdef Q_OS_MACOS +#include +#else #include +#endif #include #include diff --git a/Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.pro b/Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.pro index 7e58790a..f5b0f8b4 100644 --- a/Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.pro +++ b/Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.pro @@ -315,6 +315,12 @@ win32:LIBS += -L"$$_PRO_FILE_PWD_" # Github actions placed libusb here osx:INCPATH += /usr/local/include osx:LIBS += -L/usr/local/lib $(shell pkg-config --libs libusb-1.0) +mac{ + QT_CONFIG -= no-pkg-config + CONFIG += link_pkgconfig + PKGCONFIG += libusb-1.0 +} + QT += widgets network FORMS += \ diff --git a/Software/PC_Application/LibreVNA-GUI/Util/usbinbuffer.h b/Software/PC_Application/LibreVNA-GUI/Util/usbinbuffer.h index 21b4ef0c..5f1f5c39 100644 --- a/Software/PC_Application/LibreVNA-GUI/Util/usbinbuffer.h +++ b/Software/PC_Application/LibreVNA-GUI/Util/usbinbuffer.h @@ -1,7 +1,11 @@ #ifndef USBINBUFFER_H #define USBINBUFFER_H +#ifdef Q_OS_MACOS +#include +#else #include +#endif #include #include