Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build Qt 6.5.2 from source - QtMultiMedia not found
Forum Updated to NodeBB v4.3 + New Features

Build Qt 6.5.2 from source - QtMultiMedia not found

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 1.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DL5EU
    wrote on last edited by
    #1

    Dear all,

    I am currently trying to build Qt 6.5.2 from source on Ubuntu 22.04.3. I have installed the required packages according to the documentation I have found but when I execute the command

    cmake ../qt6/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/qt-host

    I get the following error message during the configuration step:

    -- Could NOT find Qt6MultiMedia (missing: Qt6MultiMedia_DIR)
    CMake Warning at /home/ralfg/qt-hostbuild/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (message):
    Failed to find optional Qt component "MultiMedia".

    Expected Config file at
    "/home/ralfg/qt-hostbuild/qtbase/lib/cmake/Qt6MultiMedia/Qt6MultiMediaConfig.cmake"
    does NOT exist

    The indicated file does indeed not exist but the file "/home/ralfg/qt-hostbuild/qtbase/lib/cmake/Qt6Multimedia/Qt6MultimediaConfig.cmake" does exist. Is there perhaps a typo somewhere (Media instead of media) and if so, can somebody tell me where I have to correct it?

    Thank you very much for your help!

    Ralf

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you download the source archives or cloned with git ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DL5EU
        wrote on last edited by DL5EU
        #3

        Hi SGaist,

        I have downloaded the sources, not cloned with git.

        After quite a long search I have found that the problem seems to be in the sources of the QtCharts module.

        The file qtcharts/CMakeLists.txt contains the line

        find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Gui Widgets OpenGL OpenGLWidgets MultiMedia Quick Qml QuickTest Test) # special case
        

        When I replace MultiMedia with Multimedia the error during the configure step disappears. Now I need to test if the compile step passes.

        Ralf

        SGaistS 1 Reply Last reply
        1
        • D DL5EU

          Hi SGaist,

          I have downloaded the sources, not cloned with git.

          After quite a long search I have found that the problem seems to be in the sources of the QtCharts module.

          The file qtcharts/CMakeLists.txt contains the line

          find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Gui Widgets OpenGL OpenGLWidgets MultiMedia Quick Qml QuickTest Test) # special case
          

          When I replace MultiMedia with Multimedia the error during the configure step disappears. Now I need to test if the compile step passes.

          Ralf

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @DL5EU nice catch !

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved