<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QMediaPlayer cmake not found in Qt 6]]></title><description><![CDATA[<p dir="auto">QMediaPlayer cmake not found in Qt 6</p>
<pre><code>cmake_minimum_required(VERSION 3.5)

project(main VERSION 0.1 LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
find_package(Qt6 REQUIRED COMPONENTS Multimedia)

set(PROJECT_SOURCES
        mainwindow.cpp
        mainwindow.h
        mainwindow.ui
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
    qt_add_executable(main
        MANUAL_FINALIZATION
        ${PROJECT_SOURCES}
    )
else()
    if(ANDROID)
        add_library(main SHARED
            ${PROJECT_SOURCES}
        )
    else()
        add_executable(main
            ${PROJECT_SOURCES}
        )
    endif()
endif()

target_link_libraries(main PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
target_link_libraries(main PRIVATE Qt6::Multimedia)

set_target_properties(main PROPERTIES
    MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
    MACOSX_BUNDLE TRUE
    WIN32_EXECUTABLE TRUE
)

install(TARGETS main
    BUNDLE DESTINATION .
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

if(QT_VERSION_MAJOR EQUAL 6)
    qt_finalize_executable(main)
endif()

</code></pre>
<p dir="auto"><img src="https://i.ibb.co/qgHGVMt/Untitled.png" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/140185/qmediaplayer-cmake-not-found-in-qt-6</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 18:42:30 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/140185.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Oct 2022 18:27:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QMediaPlayer cmake not found in Qt 6 on Wed, 19 Oct 2022 19:48:36 GMT]]></title><description><![CDATA[<p dir="auto">You can mark the thread as solved yourself :-)<br />
You can use the "Topic Tools" button or the three dotted menu beside the answer you deem correct.</p>
]]></description><link>https://forum.qt.io/post/733383</link><guid isPermaLink="true">https://forum.qt.io/post/733383</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 19 Oct 2022 19:48:36 GMT</pubDate></item><item><title><![CDATA[Reply to QMediaPlayer cmake not found in Qt 6 on Wed, 19 Oct 2022 19:29:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Thank you, digging deeper founded that I need to install the multimedia codec manually. Thanks again, please mark it as SOLVED :)</p>
]]></description><link>https://forum.qt.io/post/733377</link><guid isPermaLink="true">https://forum.qt.io/post/733377</guid><dc:creator><![CDATA[Lunnis]]></dc:creator><pubDate>Wed, 19 Oct 2022 19:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to QMediaPlayer cmake not found in Qt 6 on Wed, 19 Oct 2022 19:15:38 GMT]]></title><description><![CDATA[<p dir="auto">That's normal, it's a class. You need to check for the module itself.</p>
]]></description><link>https://forum.qt.io/post/733375</link><guid isPermaLink="true">https://forum.qt.io/post/733375</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 19 Oct 2022 19:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to QMediaPlayer cmake not found in Qt 6 on Wed, 19 Oct 2022 19:11:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/733369">QMediaPlayer cmake not found in Qt 6</a>:</p>
<blockquote>
<p dir="auto">maintenance tool</p>
</blockquote>
<p dir="auto">Thank you, but there is no QMediaPLayer trace in the installer/maintenance.exe programs.</p>
]]></description><link>https://forum.qt.io/post/733374</link><guid isPermaLink="true">https://forum.qt.io/post/733374</guid><dc:creator><![CDATA[Lunnis]]></dc:creator><pubDate>Wed, 19 Oct 2022 19:11:58 GMT</pubDate></item><item><title><![CDATA[Reply to QMediaPlayer cmake not found in Qt 6 on Wed, 19 Oct 2022 18:43:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Are you sure you installed Qt Multimedia ?<br />
Double check with the maintenance tool.</p>
]]></description><link>https://forum.qt.io/post/733369</link><guid isPermaLink="true">https://forum.qt.io/post/733369</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 19 Oct 2022 18:43:45 GMT</pubDate></item></channel></rss>