Qt 6.4.1 Static Build using Mingw
Unsolved
General and Desktop
-
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