Build Qt 6.5.2 from source - QtMultiMedia not found
-
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 existThe 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
-
Hi,
Did you download the source archives or cloned with git ?
-
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
-
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