MLV-App icon indicating copy to clipboard operation
MLV-App copied to clipboard

Use a newer version of Qt on Linux? (DPI issues)

Open petabyt opened this issue 6 months ago • 7 comments

Current AppImage is compiled with Ubuntu 20.04, and whatever Qt5 libraries it uses butchers the timer widget in the top left: Image

To be clear this only happens if I run it in a HiDPI display (3840x2160 27"). If I run it in gamescope (emulating a fake display) it look fine.

However if I compile the source tree from that release (QTv1.15) on Ubuntu 25.04 it works fine with the Qt 5.15.15 libraries I currently have: Image

petabyt avatar Jun 09 '25 22:06 petabyt

Thanks for your message. The github runner on Ubuntu 20.04 was deleted and it seems 22.04+ doesn't support Qt5:

Run sudo apt-get install --fix-missing --no-install-recommends make g++ qt5-qmake qtbase5-dev qtmultimedia5-dev libqt5multimedia5 libqt5multimedia5-plugins libqt5opengl5-dev libqt5designer5 libqt5svg5-dev libfuse2 libxkbcommon-x11-0 appstream
  sudo apt-get install --fix-missing --no-install-recommends make g++ qt5-qmake qtbase5-dev qtmultimedia5-dev libqt5multimedia5 libqt5multimedia5-plugins libqt5opengl5-dev libqt5designer5 libqt5svg5-dev libfuse2 libxkbcommon-x11-0 appstream
  shell: /usr/bin/bash -e {0}
  env:
    SOURCE_DIR: /home/runner/work/MLV-App/MLV-App/platform
    ARTIFACT: /home/runner/work/MLV-App/MLV-App/platform/build/MLVApp.AppImage
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:11.2.0-1ubuntu1).
make is already the newest version (4.3-4.1build1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libegl-dev : Depends: libegl1 (= 1.3.2-1~ubuntu0.20.04.2) but it is not installable
 libgl-dev : Depends: libgl1 (= 1.3.2-1~ubuntu0.20.04.2) but 1.4.0-1 is to be installed
             Depends: libglx-dev but it is not going to be installed
 libqt5designer5 : Depends: libqt5gui5 (>= 5.7.0) but it is not installable or
                            libqt5gui5-gles (>= 5.7.0) but it is not installable
 libqt5multimedia5 : Depends: libqt5gui5 (>= 5.12.8+dfsg~) but it is not installable or
                              libqt5gui5-gles (>= 5.12.8+dfsg~) but it is not installable
 libqt5multimedia5-plugins : Depends: libqt5gui5 (>= 5.12.8+dfsg~) but it is not installable or
                                      libqt5gui5-gles (>= 5.12.8+dfsg~) but it is not installable
 libqt5multimediagsttools5 : Depends: libqt5gui5 (>= 5.12.8+dfsg~) but it is not installable or
                                      libqt5gui5-gles (>= 5.12.8+dfsg~) but it is not installable
 libqt5multimediaquick5 : Depends: libqt5gui5 (>= 5.12.8+dfsg~) but it is not installable or
                                   libqt5gui5-gles (>= 5.12.8+dfsg~) but it is not installable
                          Depends: libqt5quick5 (>= 5.4.0) but it is not installable or
                                   libqt5quick5-gles (>= 5.4.0) but it is not installable
 libqt5multimediawidgets5 : Depends: libqt5gui5 (>= 5.12.8+dfsg~) but it is not installable or
                                     libqt5gui5-gles (>= 5.12.8+dfsg~) but it is not installable
 libqt5opengl5 : Depends: libqt5gui5 (>= 5.1.0) but it is not installable
                 Depends: libqt5gui5 (>= 5.12.5) but it is not installable or
                          libqt5gui5-gles (>= 5.12.5) but it is not installable
 libqt5printsupport5 : Depends: libqt5gui5 (>= 5.11.0~rc1) but it is not installable or
                                libqt5gui5-gles (>= 5.11.0~rc1) but it is not installable
 libqt5svg5 : Depends: libqt5gui5 (>= 5.12.8+dfsg~) but it is not installable or
                       libqt5gui5-gles (>= 5.12.8+dfsg~) but it is not installable
 libqt5widgets5 : Depends: libqt5gui5 (>= 5.12.5) but it is not installable or
                           libqt5gui5-gles (>= 5.12.5) but it is not installable
 libvorbisenc2 : Depends: libvorbis0a (= 1.3.6-2ubuntu1) but 1.3.7-1build2 is to be installed
 libvulkan-dev : Depends: libvulkan1 (= 1.2.131.2-1) but 1.3.204.1-2 is to be installed
 libxkbcommon-x11-0 : Depends: libxkbcommon0 (= 0.10.0-1) but 1.4.0-1 is to be installed
 qtbase5-dev : Depends: libqt5gui5 (= 5.12.8+dfsg-0ubuntu2.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
Error: Process completed with exit code 100.

I can't say what to do with this...

masc4ii avatar Jun 10 '25 15:06 masc4ii

Some trys later... the github runner hangs and doesn't build anything. I don't have any other Linux. Maybe someone else can try bringing this to life.

masc4ii avatar Jun 10 '25 15:06 masc4ii

Now it finished the runner. Please try if it is better now:

https://github.com/ilia3101/MLV-App/actions/runs/15564402783

(Support for older computers with Ubuntu 20.04: dropped.)

masc4ii avatar Jun 10 '25 16:06 masc4ii

It doesn't work at all now:

daniel@desktop:~/Downloads$ /home/daniel/Downloads/MLVApp.AppImage 
Cannot mix incompatible Qt library (5.15.15) with this library (5.15.3)

For some reason it's defaulting to my system's libraries, which should not be happening.

petabyt avatar Jun 10 '25 17:06 petabyt

I tried it again and it runs now, but still has a mangled timer widget... something spooky is going on with my system

petabyt avatar Jun 10 '25 18:06 petabyt

I compiled it in Ubuntu 24.04 and there's no difference. So it's either something it does differently on my system or there were fixes between 5.15.13 and 5.15.15?

https://code.qt.io/cgit/qt/qtreleasenotes.git/tree/qt/5.15.14/release-note.md

https://code.qt.io/cgit/qt/qtreleasenotes.git/tree/qt/5.15.15/release-note.md

petabyt avatar Jun 10 '25 19:06 petabyt

Unfortunately getting a newer Qt5 into the runner is difficult. You could also try Qt6, but I expect other bugs then, as there are bigger differences between the major Qt versions.

masc4ii avatar Jun 12 '25 17:06 masc4ii

I got it working in flatpak and it works fine on Qt 5.15. So I think it's something wrong with my system.

https://github.com/petabyt/MLV-App/tree/flatpak

BTW: Do you have any interest in adding mlvapp to flathub?

petabyt avatar Jun 22 '25 02:06 petabyt

No idea about flathub. Never heard about it...

masc4ii avatar Jun 29 '25 15:06 masc4ii

https://github.com/ilia3101/MLV-App/issues/264

https://flathub.org/

petabyt avatar Jun 29 '25 16:06 petabyt

So just another manager... hmmm. Looks like lots of work.

masc4ii avatar Jun 29 '25 16:06 masc4ii