kopia lustrzana https://gitlab.com/eliggett/wfview
Various fixes to allow Qt6 compiling on mac
rodzic
c3ba36ebfd
commit
120899e9f8
|
@ -27,8 +27,11 @@ loggingWindow::loggingWindow(QString logFilename, QWidget *parent) :
|
||||||
connect(socket, SIGNAL(connected()), this, SLOT(connectedToHost()));
|
connect(socket, SIGNAL(connected()), this, SLOT(connectedToHost()));
|
||||||
connect(socket, SIGNAL(disconnected()), this, SLOT(disconnectedFromHost()));
|
connect(socket, SIGNAL(disconnected()), this, SLOT(disconnectedFromHost()));
|
||||||
connect(socket, SIGNAL(readyRead()), this, SLOT(handleDataFromLoggingHost()));
|
connect(socket, SIGNAL(readyRead()), this, SLOT(handleDataFromLoggingHost()));
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||||
|
connect(socket, SIGNAL(errorOccurred(QAbstractSocket::SocketError)), this, SLOT(handleLoggingHostError(QAbstractSocket::SocketError)));
|
||||||
|
#else
|
||||||
connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(handleLoggingHostError(QAbstractSocket::SocketError)));
|
connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(handleLoggingHostError(QAbstractSocket::SocketError)));
|
||||||
|
#endif
|
||||||
vertLogScroll = ui->logTextDisplay->verticalScrollBar();
|
vertLogScroll = ui->logTextDisplay->verticalScrollBar();
|
||||||
horizLogScroll = ui->logTextDisplay->horizontalScrollBar();
|
horizLogScroll = ui->logTextDisplay->horizontalScrollBar();
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ QLedLabel::QLedLabel(QWidget* parent) :
|
||||||
|
|
||||||
void QLedLabel::setState(State state)
|
void QLedLabel::setState(State state)
|
||||||
{
|
{
|
||||||
qDebug() << "LED: setState" << state;
|
//Debug() << "LED: setState" << state;
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case StateOk:
|
case StateOk:
|
||||||
setStyleSheet(greenSS);
|
setStyleSheet(greenSS);
|
||||||
|
|
|
@ -96,11 +96,11 @@ static void speex_free(void* ptr) { free(ptr); }
|
||||||
#define UINT32_MAX 4294967295U
|
#define UINT32_MAX 4294967295U
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SSE
|
#if defined(USE_SSE) && !defined(__aarch64__)
|
||||||
#include "resample_sse.h"
|
#include "resample_sse.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_NEON
|
#if defined(USE_NEON) || defined(__aarch64__)
|
||||||
#include "resample_neon.h"
|
#include "resample_neon.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1246,4 +1246,4 @@ EXPORT const char* speex_resampler_strerror(int err)
|
||||||
default:
|
default:
|
||||||
return "Unknown error. Bad error code or strange version mismatch.";
|
return "Unknown error. Bad error code or strange version mismatch.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ static inline float interpolate_product_single(const float* a, const float* b, u
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_SSE2
|
#if defined(USE_SSE2) && !defined(__aarch64__)
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#define OVERRIDE_INNER_PRODUCT_DOUBLE
|
#define OVERRIDE_INNER_PRODUCT_DOUBLE
|
||||||
|
|
||||||
|
@ -125,4 +125,4 @@ static inline double interpolate_product_double(const float* a, const float* b,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
28
wfview.pro
28
wfview.pro
|
@ -10,7 +10,7 @@ QT += core gui serialport network multimedia xml
|
||||||
#DEFINES += USESQL
|
#DEFINES += USESQL
|
||||||
|
|
||||||
#Uncomment The following line to enable USB controllers (Shuttle/RC-28 etc.)
|
#Uncomment The following line to enable USB controllers (Shuttle/RC-28 etc.)
|
||||||
#DEFINES += USB_CONTROLLER
|
DEFINES += USB_CONTROLLER
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
||||||
|
|
||||||
|
@ -87,16 +87,18 @@ isEmpty(PREFIX) {
|
||||||
DEFINES += PREFIX=\\\"$$PREFIX\\\"
|
DEFINES += PREFIX=\\\"$$PREFIX\\\"
|
||||||
|
|
||||||
macx:INCLUDEPATH += /usr/local/include /opt/local/include
|
macx:INCLUDEPATH += /usr/local/include /opt/local/include
|
||||||
macx:LIBS += -L/usr/local/lib -L/opt/local/lib -L../qcustomplot
|
macx:LIBS += -L/usr/local/lib -L/opt/local/lib
|
||||||
|
|
||||||
macx:ICON = ../wfview/resources/wfview.icns
|
macx:ICON = ../wfview/resources/wfview.icns
|
||||||
win32:RC_ICONS = ../wfview/resources/wfview.ico
|
win32:RC_ICONS = ../wfview/resources/wfview.ico
|
||||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
|
macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
|
||||||
|
macx:QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
|
||||||
|
macx:MY_ENTITLEMENTS.name = CODE_SIGN_ENTITLEMENTS
|
||||||
|
macx:MY_ENTITLEMENTS.value = ../wfview/resources/wfview.entitlements
|
||||||
|
macx:QMAKE_MAC_XCODE_SETTINGS += MY_ENTITLEMENTS
|
||||||
|
macx:QMAKE_INFO_PLIST = ../wfview/resources/Info.plist
|
||||||
|
|
||||||
QMAKE_TARGET_BUNDLE_PREFIX = org.wfview
|
QMAKE_TARGET_BUNDLE_PREFIX = org.wfview
|
||||||
MY_ENTITLEMENTS.name = CODE_SIGN_ENTITLEMENTS
|
|
||||||
MY_ENTITLEMENTS.value = ../wfview/resources/wfview.entitlements
|
|
||||||
QMAKE_MAC_XCODE_SETTINGS += MY_ENTITLEMENTS
|
|
||||||
QMAKE_INFO_PLIST = ../wfview/resources/Info.plist
|
|
||||||
|
|
||||||
!win32:DEFINES += HOST=\\\"`hostname`\\\" UNAME=\\\"`whoami`\\\"
|
!win32:DEFINES += HOST=\\\"`hostname`\\\" UNAME=\\\"`whoami`\\\"
|
||||||
|
|
||||||
|
@ -136,7 +138,7 @@ macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus
|
||||||
# CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|
# CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|
||||||
|
|
||||||
CONFIG(debug, release|debug) {
|
CONFIG(debug, release|debug) {
|
||||||
linux: QCPLIB = qcustomplotd
|
!win32: QCPLIB = qcustomplotd
|
||||||
win32: QCPLIB = qcustomplotd2
|
win32: QCPLIB = qcustomplotd2
|
||||||
win32 {
|
win32 {
|
||||||
contains(QMAKE_TARGET.arch, x86_64) {
|
contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
|
@ -154,7 +156,7 @@ CONFIG(debug, release|debug) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
linux: QCPLIB = qcustomplot
|
!win32: QCPLIB = qcustomplot
|
||||||
win32: QCPLIB = qcustomplot2
|
win32: QCPLIB = qcustomplot2
|
||||||
win32 {
|
win32 {
|
||||||
contains(QMAKE_TARGET.arch, x86_64) {
|
contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
|
@ -173,7 +175,7 @@ CONFIG(debug, release|debug) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
linux:LIBS += -L./ -l$$QCPLIB -lopus
|
!win32:LIBS += -L./ -l$$QCPLIB -lopus
|
||||||
win32:LIBS += -l$$QCPLIB -lopus
|
win32:LIBS += -l$$QCPLIB -lopus
|
||||||
|
|
||||||
contains(DEFINES,USB_CONTROLLER){
|
contains(DEFINES,USB_CONTROLLER){
|
||||||
|
@ -183,10 +185,10 @@ contains(DEFINES,USB_CONTROLLER){
|
||||||
win32:SOURCES += ../hidapi/windows/hid.c
|
win32:SOURCES += ../hidapi/windows/hid.c
|
||||||
}
|
}
|
||||||
|
|
||||||
macx:SOURCES += ../qcustomplot/qcustomplot.cpp
|
#macx:SOURCES += ../qcustomplot/qcustomplot.cpp
|
||||||
macx:HEADERS += ../qcustomplot/qcustomplot.h
|
#macx:HEADERS += ../qcustomplot/qcustomplot.h
|
||||||
|
|
||||||
!linux:INCLUDEPATH += ../qcustomplot
|
win32:INCLUDEPATH += ../qcustomplot
|
||||||
!linux:INCLUDEPATH += ../opus/include
|
!linux:INCLUDEPATH += ../opus/include
|
||||||
|
|
||||||
!linux:INCLUDEPATH += ../eigen
|
!linux:INCLUDEPATH += ../eigen
|
||||||
|
|
Ładowanie…
Reference in New Issue