Skip to content

Use Qt 5.12.3 to work around macOS issues - #56

Closed
JulianGro wants to merge 10 commits into
overte-org:masterfrom
JulianGro:macOS_old_Qt
Closed

Use Qt 5.12.3 to work around macOS issues#56
JulianGro wants to merge 10 commits into
overte-org:masterfrom
JulianGro:macOS_old_Qt

Conversation

@JulianGro

Copy link
Copy Markdown
Member

This PR works around the issues we are experiencing when mixing macOSXSDK10.12 with Qt 5.15.2.

It is a continuation of PR vircadia/vircadia-native-core#1558

This has been CR'd up to 92907bd by @akamicah

@JulianGro JulianGro added needs CR This pull request needs to be code reviewed needs testing labels Apr 4, 2022
#include "TestCreator.h"

#include <assert.h>
#include "../../../libraries/shared/src/QtCompatibility.h"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There must be a better way of handling this.

@JulianGro

Copy link
Copy Markdown
Member Author

DrFran reports this running on macOS Monterey

@ksuprynowicz ksuprynowicz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I checked the changes and everything looks fine in my opinion.
I only have two questions:
Should libraries/avatars/src/AvatarData.h be empty?
Does libraries/networking/src/udt/SendQueue.h need #include "QtCompatibility.h"

@JulianGro

Copy link
Copy Markdown
Member Author

Should libraries/avatars/src/AvatarData.h be empty?

What happened here is that this was changed and then changed back. I assume it only shows in the diff because some end-line character changed or something.

Does libraries/networking/src/udt/SendQueue.h need #include "QtCompatibility.h"

Technically it only requires QtCompatibility.h on Qt versions lower than 5.15 because of "Q_DISABLE_COPY_MOVE"

@ksuprynowicz

Copy link
Copy Markdown
Contributor

It was just tested on M1 Mac Studio with Mac OS Monterey 12.3.1 and it works.
The executable is still called "Vircadia", even though it has Overte icon. Is there an easy way of changing it?

@JulianGro

Copy link
Copy Markdown
Member Author

It's more hard coded than it should be.
Definitely something for another PR.

@ksuprynowicz

Copy link
Copy Markdown
Contributor

It crashes on MacOS High Sierra 10.13.6
overte-log.txt

@JulianGro

Copy link
Copy Markdown
Member Author

The only clue I get from the log is that it stops logging very close to where the hifi.gl and hifi.gpu.gl should start logging.
Other than that, we would need a backtrace to get any more info.

I don't personally see a reason why this shouldn't run on High Sierra. Maybe something prebuilt like crashpad or webrtc is built for newer versions of macOS, but I don't see a warning indicating that.

@akamicah akamicah added CR approved This pull request has been successfully code reviewed and removed needs CR This pull request needs to be code reviewed labels Jun 20, 2022
@akamicah

Copy link
Copy Markdown

Putting back into work in progress due to the crashing on MacOS High Sierra 10.13.6

@akamicah akamicah added work in progress Do not merge yet and removed needs testing CR approved This pull request has been successfully code reviewed labels Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants