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

Support Qt6 on MacOS #589

Merged
merged 4 commits into from
Oct 30, 2021
Merged

Support Qt6 on MacOS #589

merged 4 commits into from
Oct 30, 2021

Conversation

shlyakpavel
Copy link
Contributor

Hello!
Since Qt6 build is not supported on MacOS, I decided to make this pull request. It has been tested only with make on m1 Mac running macOS Montery and it has some issues. I'll try to resolve them and then it will be ready for merge

@shlyakpavel
Copy link
Contributor Author

To begin with, if I open two Featherpad instances at once, the second one alarms me that the previous one crashed (even if it didn't)
image

@shlyakpavel
Copy link
Contributor Author

In fact, when I did installation I was kind of dumb. I wanted it to be a macOS-like app. Maybe I should rework that to be unix-like app somewhere in /usr/local/ in a separate pull request. Installation works, but it is screwed not to install icons and help files. Also, it cannot find Qt on my system since it is not in library path.

@shlyakpavel
Copy link
Contributor Author

shlyakpavel commented Oct 30, 2021

image

WAT
It previously worked

@shlyakpavel
Copy link
Contributor Author

image

"Start Dictation" and "Emoji & Symbols" are not translated into Russian for some reason

@shlyakpavel
Copy link
Contributor Author

Print dialog untranslated
image
How it looks in other apps
image

@shlyakpavel
Copy link
Contributor Author

I manually disabled "system file dialog" and now it opens Qt file dialog. But I am 99% sure macOS system dialog worked well previously
image

@shlyakpavel shlyakpavel changed the title WIP: Support Qt6 on MacOS Support Qt6 on MacOS Oct 30, 2021
@shlyakpavel
Copy link
Contributor Author

@tsujan I think you can merge it now squashing all commits in one. As for the bugs described above, I think it's better to discuss and address them one by one in separate pull requests

@shlyakpavel
Copy link
Contributor Author

Opened issues: #591 #592 #593

${Qt5Network_INCLUDE_DIRS}
${Qt5PrintSupport_INCLUDE_DIRS}
${HUNSPELL_INCLUDE_DIRS})
if(QT_VERSION_MAJOR EQUAL 6)
Copy link
Owner

Choose a reason for hiding this comment

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

Oh, how did I miss these?! Perhaps because I was tired last night.

You could use Qt${QT_VERSION_MAJOR}... here (like ${Qt${QT_VERSION_MAJOR}Core_INCLUDE_DIRS} and the same for others) because they're basically the same for Qt5 and Qt6. In other places, I separated them from each other because some include dirs weren't common.

And the same for the other block...

Would you please do it?

@tsujan
Copy link
Owner

tsujan commented Oct 30, 2021

I merge your PR — it fixes a bad mistake of mine — and make those changes later.

Thanks a lot!

@tsujan tsujan merged commit 04c6268 into tsujan:master Oct 30, 2021
@shlyakpavel shlyakpavel deleted the macos_qt6 branch October 30, 2021 17:56
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.

2 participants