Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix QML build regressions on macOS #13334

Merged
merged 8 commits into from
Jun 7, 2024
Merged

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Jun 6, 2024

This fixes a few minor regressions introduced by #11407 when building with -DQML=ON on macOS and re-enables QML in the CI build for macOS.

fwcd added 3 commits June 6, 2024 15:35
Instead of include <GL/gl.h>, which is unavailable on macOS and not used
elsewhere in the codebase either, we include the Qt OpenGL headers.
@fwcd fwcd added the macos label Jun 6, 2024
fwcd added a commit to fwcd/m1xxx that referenced this pull request Jun 6, 2024
This should hopefully fix the other build issues
Copy link
Contributor

@acolombier acolombier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

My fault for not testing On MacOS after doing all the nits addressing on that beast PR

@fwcd
Copy link
Member Author

fwcd commented Jun 6, 2024

Hm, it looks like std::bit_cast might be unavailable too on the older macOS 11 runners we're building on (see https://github.com/mixxxdj/mixxx/actions/runs/9402107656/job/25895415853). This seems to have been implemented/stabilized, at least I couldn't reproduce it with Xcode 15 on macOS 14, but I don't know how that would affect backwards compatibility here.

@@ -660,7 +654,7 @@ void ControllerScriptEngineLegacy::handleScreenFrame(
emit previewRenderedScreen(screenInfo, screenDebug);
}

QByteArray input(std::bit_cast<const char*>(frame.constBits()), frame.sizeInBytes());
QByteArray input(reinterpret_cast<const char*>(frame.constBits()), frame.sizeInBytes());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I understand, casting between const char * and const unsigned char * using reinterpret_cast seems to be fine, stackoverflow confirms that. This would fix the build on some older compilers where std::bit_cast isn't available, such as the macOS 11 runners we are building on in CI.

Would appreciate a second pair of eyes checking that this is fine though.

@@ -660,7 +654,7 @@ void ControllerScriptEngineLegacy::handleScreenFrame(
emit previewRenderedScreen(screenInfo, screenDebug);
}

QByteArray input(std::bit_cast<const char*>(frame.constBits()), frame.sizeInBytes());
QByteArray input(reinterpret_cast<const char*>(frame.constBits()), frame.sizeInBytes());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIR, this is what I was using, but I was requested to change it to bit_cast. Perhaps you could keep this cast specific to Mac?

Copy link
Member Author

@fwcd fwcd Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My gut feeling would be that it would be better not to have different code paths here to avoid introducing subtle semantic differences here. From what I understand the semantics shouldn't differ, but I think it would be better to hit a bug on all platforms rather than just one (that isn't as well-tested as e.g. Linux).

Perhaps a comment that this should be refactored to a std::bit_cast once we drop support for macOS 11 (or build on a newer runner)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment sounds good yeah!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a comment that this should be refactored to a std::bit_cast once we drop support for macOS 11 (or build on a newer runner)?

is this specific to the build environment or to the runner? Cuz the runner was recently updated #13296.

Here's a little more context for reinterpret_cast vs std::bit_cast: https://stackoverflow.com/a/53402217

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be specific to the compiler, i.e. the Xcode version that the runner uses. macOS 12 is two years old too, so my best guess would be that it doesn't support bit_cast either yet.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.apple.com/xcode/cpp/ says bit-casting requires XCode 14.3. Seems like that's only available on MacOS 13...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay, thanks for checking. I think as long as we're building against an SDK older than that (in CI), we are going to get an error, regardless of whether we use a newer runner. I'll update the comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a neat site btw, have to bookmark that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even better: https://en.cppreference.com/w/cpp/compiler_support

Apparently they also track apple clang now, which they previously haven't which is why I defaulted to the apple site.

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. waiting for CI. Thank you.

@fwcd
Copy link
Member Author

fwcd commented Jun 6, 2024

Any ideas on the test failure? That it only fails on x64 makes it pretty strange

@acolombier
Copy link
Contributor

Yep, that's the part that is failing:

warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 9 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9:1: module "Qt5Compat.GraphicalEffects" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9: module \"Qt5Compat.GraphicalEffects\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 7 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line -1 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml: module "QtQuick.Controls.macOS" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:-1: module \"QtQuick.Controls.macOS\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 2 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 9 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9:1: module "Qt5Compat.GraphicalEffects" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9: module \"Qt5Compat.GraphicalEffects\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 7 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line -1 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml: module "QtQuick.Controls.macOS" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:-1: module \"QtQuick.Controls.macOS\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 2 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 9 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9:1: module "Qt5Compat.GraphicalEffects" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9: module \"Qt5Compat.GraphicalEffects\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 7 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line -1 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml: module "QtQuick.Controls.macOS" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:-1: module \"QtQuick.Controls.macOS\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 2 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 9 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9:1: module "Qt5Compat.GraphicalEffects" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9: module \"Qt5Compat.GraphicalEffects\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 7 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line -1 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml: module "QtQuick.Controls.macOS" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:-1: module \"QtQuick.Controls.macOS\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 2 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 9 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9:1: module "Qt5Compat.GraphicalEffects" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9: module \"Qt5Compat.GraphicalEffects\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 7 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line -1 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml: module "QtQuick.Controls.macOS" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:-1: module \"QtQuick.Controls.macOS\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 2 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 9 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9:1: module "Qt5Compat.GraphicalEffects" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9: module \"Qt5Compat.GraphicalEffects\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 7 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line -1 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml: module "QtQuick.Controls.macOS" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:-1: module \"QtQuick.Controls.macOS\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 2 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 9 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9:1: module "Qt5Compat.GraphicalEffects" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9: module \"Qt5Compat.GraphicalEffects\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 7 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line -1 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml: module "QtQuick.Controls.macOS" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:-1: module \"QtQuick.Controls.macOS\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 2 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 9 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9:1: module "Qt5Compat.GraphicalEffects" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:9: module \"Qt5Compat.GraphicalEffects\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 7 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:7: module \"QtQuick.Window\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line -1 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml: module "QtQuick.Controls.macOS" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:-1: module \"QtQuick.Controls.macOS\" is not installed"
warning [0x7fc842d082d0] Unable to load the QML scene: QUrl("file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml") at line 2 , error:  file:///Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2:1: module "QtQuick.Window" is not installed
warning [0x7fc842d082d0] ControllerScriptHandlerBase: "Uncaught exception: /Users/runner/work/mixxx/mixxx/res/qml/DummyDeviceDefaultScreen.qml:2: module \"QtQuick.Window\" is not installed"
info [0x7fc842d082d0]   Shutting down engine
./src/test/controller_mapping_validation_test.cpp:261: Failure

This is likely because the QML dependencies aren't included in the VCPKG, or aren't installed properly in the build environment, basically meaning that QML doesn't work on Mixxx out of the box. This was tracked in #12267 and should have been fixed in #12604 but not sure this was tested on Mac x64

@fwcd
Copy link
Member Author

fwcd commented Jun 6, 2024

Hm okay, so maybe disabling QML in x64 CI would be a temporary fix, not ideal, but at least we'd get QML CI on macOS.

@acolombier
Copy link
Contributor

Do you mind creating an issue for macOS x64 /w QML just so we keep track of this?

@fwcd
Copy link
Member Author

fwcd commented Jun 6, 2024

-> #13336

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welp, at least QML on arm macos is better than not on macos at all.

@Swiftb0y Swiftb0y merged commit 91e16fa into mixxxdj:main Jun 7, 2024
13 checks passed
@Swiftb0y
Copy link
Member

Swiftb0y commented Jun 7, 2024

Thank you for looking into the issue this quickly.

@fwcd fwcd deleted the fix-macos-qml-build branch June 7, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants