libqt5multimedia5-plugins is not installable together with -GLES variant of Qt
So, we at UBports are porting Ubuntu Touch to be based on Ubuntu 20.04 (the project started before Ubuntu 22.04 is released). And to provide enough functionalities to Qt/QML applications, we need to install libqt5multimedi
Which leads to this error:
$ sudo apt install libqt5gui5-gles libqt5multimedi
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
libqt5gui5-gles : Conflicts: libqt5gui5 but 5.12.8+
E: Unable to correct problems, you have held broken packages.
This seems to be due to the following dependency chain:
i ubuntu-
i A ubuntu-touch-core Depends ubuntu-sdk-libs
i A ubuntu-sdk-libs Depends libqt5multimedi
i A libqt5multimedi
i A libqt5multimedi
i A libqt5multimedi
i A libqt5opengl5 Depends libqt5gui5 (>= 5.1.0)
And, for some reason, libqt5opengl5 doesn't have a -gles variant. I'm not sure why it's not provided, since the fact that libqt5opengl5 exists on armhf means that this package has a working -gles variant. And from a quick look in qtmultimedia code I don't think there's anything inherently OpenGL-only about it. The code seems to require libqt5opengl5 in order to support the use of QGL* deprecated classes.
Now, I'm not sure what we should do next. We have ability to fork and compile certain packages in our environment, which is what we planned to do with qtmultimedia to disable libqt5opengl5 support. However, I wonder if there's a better approach to this. I understand that at this point in 20.04 release, having the new package probably isn't the best idea. But perhaps this could be fixed officially in Ubuntu 22.10 and/or Debian 12, and then we can copy what's being done into our repository.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ratchanan Srirattanamet for more information if necessary.