diff --git a/LICENSE b/LICENSE index 6fa267a..75309fd 100644 --- a/LICENSE +++ b/LICENSE @@ -26,4 +26,4 @@ Copyright (c) 2009 Michal Policht All rights reserved. RtMidi: realtime MIDI i/o C++ classes -Copyright (c) 2003-2014 Gary P. Scavone +Copyright (c) 2003-2022 Gary P. Scavone diff --git a/README.md b/README.md index a4ec5aa..cce2479 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ Please see that page for information on running and using Hairless Midiserial, a Hairless uses git submodules for library dependencies, so you should use `git clone --recursive URL` when cloning from Github. Alternatively, you can run `git submodule update --init` in order to fetch the submodules to an already-cloned directory. -Hairless Midiserial Bridge release 0.4 was built with Qt 4.7.3. It's also been built and run under Qt 4.7.4 & 4.8.6. Newer Qt version 5.0 will probably require code changes in order to compile and/or run. +~~Hairless Midiserial Bridge release 0.4 was built with Qt 4.7.3. It's also been built and run under Qt 4.7.4 & 4.8.6. Newer Qt version 5.0 will probably require code changes in order to compile and/or run.~~ +This fork has been ported to Qt 6.3.1 and tested on macOS Monterey on Apple M1 Pro CPU. +I haven't tested it on Windows and Linux (yet). The Qt package should contain all dependencies, the graphical IDE "Qt Creator" or the program "qmake" can be used to compile the project hairless-midiserial.pro. diff --git a/hairless-midiserial.pro b/hairless-midiserial.pro index 78f8a25..40c3280 100644 --- a/hairless-midiserial.pro +++ b/hairless-midiserial.pro @@ -4,7 +4,7 @@ # #------------------------------------------------- -QT += core gui +QT += widgets TARGET = hairless-midiserial TEMPLATE = app @@ -40,7 +40,8 @@ INCLUDEPATH += src/ # Universal binary for OS X macx { - CONFIG += ppc x86 +# QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64 + CONFIG += x86_64 arm64 } diff --git a/libraries/rtmidi b/libraries/rtmidi index 770b572..f104ca2 160000 --- a/libraries/rtmidi +++ b/libraries/rtmidi @@ -1 +1 @@ -Subproject commit 770b57260dc7607b75776e8bee7e059aa06435dc +Subproject commit f104ca266a59ce07586cb04e3595949e3ff4e2f6 diff --git a/src/BlinkenLight.h b/src/BlinkenLight.h index b15e914..3758358 100644 --- a/src/BlinkenLight.h +++ b/src/BlinkenLight.h @@ -2,7 +2,7 @@ #define BLINKENLIGHT_H #include -#include +#include #include /* diff --git a/src/Bridge.cpp b/src/Bridge.cpp index d52fb24..f4adf91 100644 --- a/src/Bridge.cpp +++ b/src/Bridge.cpp @@ -216,7 +216,7 @@ void Bridge::sendMidiMessage() { if(msg_data.length() == 0) return; if(bufferStartsWith(MSG_DEBUG)) { - QString debug_msg = QString::fromAscii(msg_data.mid(4, msg_data[3]).data()); + QString debug_msg = QString::fromLatin1(msg_data.mid(4, msg_data[3]).data()); emit displayMessage(applyTimeStamp(QString("Serial Says: %1").arg(debug_msg))); } else { emit debugMessage(applyTimeStamp(QString("Serial In: %1").arg(describeMIDI(msg_data)))); diff --git a/src/main.cpp b/src/main.cpp index f08d1d8..d39632e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "ui/mainwindow.h" int main(int argc, char *argv[]) diff --git a/src/ui/aboutdialog.cpp b/src/ui/aboutdialog.cpp index 277521a..a08a36b 100644 --- a/src/ui/aboutdialog.cpp +++ b/src/ui/aboutdialog.cpp @@ -7,7 +7,7 @@ AboutDialog::AboutDialog(QWidget *parent) : { ui->setupUi(this); - QString text = ui->label_info->text().arg(QString::fromAscii(VERSION)).arg(QString::fromAscii(__DATE__)); + QString text = ui->label_info->text().arg(QString::fromLatin1(VERSION)).arg(QString::fromLatin1(__DATE__)); ui->label_info->setText(text); } diff --git a/src/ui/aboutdialog.h b/src/ui/aboutdialog.h index 9292f64..5d28034 100644 --- a/src/ui/aboutdialog.h +++ b/src/ui/aboutdialog.h @@ -1,7 +1,7 @@ #ifndef ABOUTDIALOG_H #define ABOUTDIALOG_H -#include +#include namespace Ui { class About; diff --git a/src/ui/mainwindow.h b/src/ui/mainwindow.h index 33e5dc6..962295d 100644 --- a/src/ui/mainwindow.h +++ b/src/ui/mainwindow.h @@ -1,11 +1,11 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H -#include -#include -#include +#include +#include +#include #include -#include +#include #include #include "RtMidi.h" #include "Bridge.h" diff --git a/src/ui/settingsdialog.h b/src/ui/settingsdialog.h index 5229726..785a34f 100644 --- a/src/ui/settingsdialog.h +++ b/src/ui/settingsdialog.h @@ -1,7 +1,7 @@ #ifndef SETTINGSDIALOG_H #define SETTINGSDIALOG_H -#include +#include namespace Ui { class SettingsDialog;