-
Notifications
You must be signed in to change notification settings - Fork 112
patch for Qt6 build #1224
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
base: master
Are you sure you want to change the base?
patch for Qt6 build #1224
Conversation
|
Thank you so much. Unfortunately it fails to compile in my computer (Ubuntu, Qt 6.2.4): And a lot of similar errors. |
|
Qt 6.2 is too different from recent Qt releases such as Qt 6.8.x. The reason why I used Qt 6.8 is that It's the latest LTS. |
|
I've just applied your patch and fixed the compiling problems with Qt 6.2 in this branch: |
|
Ricardo, I am assuming you chose Qt 6.2 for better compatibility with Qt 5.15 as explained in this article. But the problem is that Qt 6.2 LTS went out of support on September 2024, no bug fixes or security patches since then, so we are back in the same boat as we were with Qt 5.15! It would be better to choose Qt 6.8 LTS released on October 2024, as it will be supported for 5 years until September 2029. A little effort now will ensure next 5 years of peace 😉 |
|
It's not a matter of choice, it's just that Linux distros include old versions of Qt. |
|
@smplayer-dev These distro (versions) are unlikely to ever package a future Qt6-based version of smplayer and they won't drop the Qt5-based version either. If you are looking at release-based distributions for Qt support choice, near-term upcoming distro releases should be your target. That gives you the freedom to straighten up at least the latest ifdef offshoots in an ever-growing jungle. |
|
I am not a developer, but for an open source software like smplayer, you should be able to download Qt 6.8 LTS for Linux directly from the Qt website. You should not have to depend on your Linux distros built-in Qt. Just go to the official open source Qt download site. Choose the online installer, it will guide you step-by-step, choose Qt 6.8.x and required modules, and since smplayer is open source, licensing should be taken care of as well. That should be all one needs to compile smplayer with Qt 6.8.x, unless I am missing something, as I mentioned previously, I am not a developer. |
I'm with @a17r on this! Supporting the last LTS does make sense, but older than that is crazy! If a distro wants to keep software that old it should be their job to do so! Or they can always use the last player version that was compatible with it! Software devs, from my pov, should only care about the latest stable release and latest LTS! (naturally, while developing, the target is always master/vanilla)... but this is "my" view of it! I'm not dictating anything! Each dev chooses! |
|
I posted a brief feedback for the Qt 6.8 version of smplayer for Windows OS in Qt6 Roadmap thread, I thought I should link it here as well in case someone is following this thread and not the other one. |
Why replace tabs with spaces in patch? |
Oh, no special reason, just due to my preference for QtCreator("Default tab policy"). |
|
@Sportacandy Formatting changes should never be intermingled with substantial changes. Existing formatting, indendation, basic coding style, should be adhered to, just as we expect uniform line endings. Ideally of course, the upstream project would define an |
Quick patch for Qt6 build. Confirmed that SMPlayer can be built with Qt6.8.3+minGW13.1.0 and Qt5.15.2+minGW12.0.0, and both are working well.