aqtinstall icon indicating copy to clipboard operation
aqtinstall copied to clipboard

Issue with QMediaMetaData and media format

Open pamputt opened this issue 1 year ago • 5 comments

Describe the bug I have install Qt 6.4.2 using aqt and I have the same issue that the one described in QTBUG-110883.

It seems that some media format (at least FLAC) are not supported by Qt when installed with aqt.

To reproduce

  1. Install aqt using aqt install-qt linux desktop 6.4.3 -m all
  2. Download https://bugreports.qt.io/secure/attachment/136780/QMediaMetaData_flac.zip
  3. Unzip QMediaMetaData_flac.zip
  4. cd QMediaMetaData_flac
  5. mkdir build
  6. cd build
  7. cmake ..
  8. make -j4
  9. ./QMediaMetaData_flac

It prints

QMediaMetaData::Url QVariant(QUrl, QUrl("qrc:/test.flac")) QMediaMetaData::Duration QVariant(qlonglong, 0) QMediaMetaData::FileFormat QVariant(QMediaFormat::FileFormat, QMediaFormat::UnspecifiedFormat)

Expected behavior

It should prints some usefull information related to test.flac

Desktop (please complete the following information):

  • OS: Ubuntu 22.04 LTS 64-bits
  • aqtinstall(aqt) v3.1.3 on Python 3.10.6 [CPython GCC 11.3.0]

pamputt avatar Mar 20 '23 16:03 pamputt

There's a lot of context missing here.

Please fill out the following:

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. install aqt using this command
  2. run aqt with this command
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

aqt output Add program output to help explain your problem.

paste program output here

Desktop (please complete the following information):

  • OS: [e.g. windows]
  • aqt version [paste the output from the command aqt version or python -m aqt version]

Additional context Add any other context about the problem here.

ddalcino avatar Mar 20 '23 16:03 ddalcino

I have added some information. I think it is enough to reproduce

pamputt avatar Mar 21 '23 08:03 pamputt

The response to the issue you linked suggested running lddtree against libQt6Multimedia.so.6. Can you show us the output of that command please? You should be able to find this file at INSTALL_DIR/QT_VERSION/gcc_64/lib/libQt6Multimedia.so.6.

ddalcino avatar Mar 25 '23 17:03 ddalcino

I attempted to build your QMediaMetaData_flac project, on a fresh VM of Ubuntu 22.04, and I can reproduce the problem with Qt installed via aqtinstall. I also tried to build the project using Qt installed with the official GUI Qt installer, and that causes the problem as well.

I don't know what is causing this, but I am certain that this issue has nothing to do with aqtinstall because Qt 6.4.3 installed with the official installer has the same issue.

FYI, I tried lddtree libQt6Multimedia.so.6, and it doesn't show any broken links. If I were you, I'd go back to the Qt bug tracker and tell them to try using their own installer on Ubuntu 22 instead of Arch; that should reproduce the problem.

ddalcino avatar Mar 27 '23 05:03 ddalcino

I have installed Qt 6.5.0 with aqt and the problem disappeared. Yet, it is still present for older Qt version (6.4.*). This problem has been reported upstream.

pamputt avatar Apr 04 '23 13:04 pamputt