Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 6.4.1 Static Build using Mingw
Forum Update on Monday, May 27th 2025

Qt 6.4.1 Static Build using Mingw

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 358 Views
  • 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
    dr3mro
    wrote on 13 Dec 2022, 22:23 last edited by dr3mro
    #1

    I have been using Qt for long time and I want to create a simple audio player for windows that uses Qt static linked, I simply created a Qt static build and it works fine with msvc 2019 but when I try to build Qt static with same config with Mingw11.2 on windows I get this error , and what ever I do it failt to build my player statically even if it works fine with qt 5.x

    C:\Users\Amr\repos\SimpleAudioPlayer\CMakeLists.txt:86: error: 
    Found package configuration file: C:/Users/Amr/Qt/6.4.1/mingw112_64_static/lib/cmake/Qt6/Qt6Config.cmake 
    but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. 
    Reason given by package: Failed to find required Qt component "Multimedia".
    Expected Config file at "C:/Users/Amr/Qt/6.4.1/mingw112_64_static/lib/cmake/Qt6Multimedia/Qt6MultimediaConfig.cmake" exists
    

    here is the relevant part of Qt configuration summary

    Qt Multimedia:
      Spatial Audio .......................... yes
      Spatial Audio (Quick3D) ................ no
      Low level Audio Backend:
        ALSA (experimental) .................. no
        PulseAudio ........................... no
        MMRenderer ........................... no
        CoreAudio ............................ no
        Windows Media SDK .................... yes
        Open SLES (Android) .................. no
        Web Assembly ......................... no
      Plugin:
        GStreamer 1.0 ........................ no
        FFmpeg ............................... no
        MMRenderer ........................... no
        AVFoundation ......................... no
        Windows Media Foundation ............. yes
      Hardware acceleration and features:
        Video for Linux ...................... no
        VAAPI support ........................ no
        Linux DMA buffer support ............. no
        VideoToolbox ......................... no
    

    and this is my config

    -release
    -opensource
    -confirm-license
    -platform
    win32-g++
    -opengl
    desktop
    -no-dbus
    -no-icu
    -no-fontconfig
    -qt-freetype
    -qt-harfbuzz
    -qt-doubleconversion
    -nomake
    examples
    -nomake
    tests
    -static
    -static-runtime
    -feature-relocatable
    -ssl
    -no-sql-psql
    -sql-sqlite
    -sql-odbc
    -qt-zlib
    -qt-pcre
    -qt-libpng
    -qt-libjpeg
    -no-warnings-are-errors
    -make
    libs
    -skip
    qtmqtt
    -skip
    qtvirtualkeyboard
    -skip
    qtsensors
    -skip
    qtcoap
    -skip
    qtconnectivity
    -skip
    qtdatavis3d
    -skip
    qtdoc
    -skip
    qtlottie
    -skip
    qtnetworkauth
    -skip
    qtopcua
    -skip
    qtserialport
    -skip
    qtpositioning
    -skip
    qtquicktimeline
    -skip
    qtquick3d
    -skip
    qtremoteobjects
    -skip
    qtscxml
    -skip
    qtserialbus
    -skip
    qtwayland
    -skip
    qtwebchannel
    -skip
    qtwebengine
    -skip
    qtwebview
    -skip
    qtquick3dphysics
    -skip
    qtspeech
    -schannel
    -no-openssl
    -prefix
    C:\Users\Amr\Qt\6.4.1\mingw112_64_static
    

    any help is appreciated
    Thanks
    Amr

    1 Reply Last reply
    0

    1/1

    13 Dec 2022, 22:23

    • Login

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