PDA

View Full Version : QT5: Where are the multimedia libraries?



Rainer78
11th January 2013, 07:45
Hi,

I am using / trying to use QT just for a few days now. I have build QT5 from the source (for the zip file ... not from Git) as described here: http://qt-project.org/wiki/MinGW-64-bit

Building OpenSSL, ICU, Qt5 and Webkit works fine. My first Hello-World-app works fine, too.

But now I want to go a little bit in the deep and wanted to play an MP3 file. I found some examples in the qtmultimedia folder of Qt, but when I try to compile them, I get an error message: Qt Multimedia not found.

I have already tried "mingw32-make module-qtmultimedia" (as I found it on an other web page), but it still doesn't work.

Does someone have any Ideas?

Regards,

Rainer

wysota
11th January 2013, 09:46
It's likely you are missing some dependencies required to build that module. Check the output of configure to get a list of modules that are going to be built.

Rainer78
12th January 2013, 06:37
The funny thing is: at work (with Windows 7 Pro 32bit)I just needed to install the DirectX SDK, too. After that I the QT5Multimedia.dll (and some otheres DLLs files) were created.

At home (Windows 7 64bit ultimate) I installed the DirectX SDK, too. I added the "-audio-backend" flag to the configure command, but I am still missing some DLLs.

Here ist my configure command:


configure -debug-and-release -opensource -confirm-license -platform win32-g++ -developer-build -c++11 -icu -opengl desktop -openssl -plugin-sql-odbc -qt-style-windowsxp -qt-style-windowsvista -audio-backend -nomake tests

The output of this command is the following:


Environment:
INCLUDE=
C:\Qt\qt5_deps\icu\dist\include
C:\Qt\qt5_deps\openssl-1.0.1c\dist\include
LIB=
C:\Qt\qt5_deps\icu\dist\lib
C:\Qt\qt5_deps\openssl-1.0.1c\dist\lib
PATH=
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Program Files (x86)\CollabNet\Subversion Client
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files (x86)\QuickTime\QTSystem\
C:\Program Files\TortoiseSVN\bin
C:\Program Files (x86)\WinMerge
C:\strawberry\c\bin
C:\strawberry\perl\site\bin
C:\strawberry\perl\bin
C:\qt\qt5\qtbase\bin
C:\qt\qt5\gnuwin32\bin
c:\QT\mingw64-4.7.2\bin
C:\QT\Strawberry\perl\bin
c:\qt\phyton27
C:\Ruby193\bin
C:\Qt\qt5_deps\icu\dist\lib:C:\Qt\qt5_deps\openssl-1.0.1c\dist\bin
C:\Windows\System32
Configuration:
minimal-config
small-config
medium-config
large-config
full-config
pcre
debug
Qt Configuration:
private_tests
debug_and_release build_all release
debug
c++11
shared
system-zlib
icu
system-jpeg
png
system-png
freetype
build_all
accessibility
opengl
openssl
audio-backend
native-gestures
qpa
iconv
concurrent
minimal-config
small-config
medium-config
large-config
full-config

QMAKESPEC................... (commandline)
Architecture................x86_64, features: mmx sse sse2
Host Architecture...........x86_64, features: mmx sse sse2
Maketool....................mingw32-make
Debug build.................yes (combined)
Default build...............debug
Force debug info............no
C++11 support...............yes
Link Time Code Generation...no
Accessibility support.......yes
RTTI support................yes
SSE2 support................yes
SSE3 support................yes
SSSE3 support...............yes
SSE4.1 support..............yes
SSE4.2 support..............yes
AVX support.................yes
AVX2 support................no
NEON support................no
IWMMXT support..............no
OpenGL support..............yes
Large File support..........yes
NIS support.................no
Iconv support...............yes
Inotify support.............no
Glib support................no
CUPS support................no
OpenVG support..............no
OpenSSL support.............yes
QtDBus support..............no
QtWidgets module support....yes
QML debugging...............yes
DirectWrite support.........no
Use system proxies..........no

Third Party Libraries:
ZLIB support............system
GIF support.............plugin
JPEG support............plugin
PNG support.............yes
FreeType support........yes

PCRE support............qt
ICU support.............yes
ANGLE...................no
Styles:
Windows.................yes
Windows XP..............yes
Windows Vista...........yes
Fusion..................yes
Windows CE..............no
Windows Mobile..........no

Sql Drivers:
ODBC....................plugin
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................plugin (qt)
SQLite2.................no
InterBase...............no

Sources are in..............C:\QT\qt5\qtbase
Build is done in............C:\QT\qt5\qtbase
Install prefix..............C:\QT\qt5\qtbase
Headers installed to........C:\QT\qt5\qtbase\include
Libraries installed to......C:\QT\qt5\qtbase\lib
Arch-dep. data to...........C:\QT\qt5\qtbase
Plugins installed to........C:\QT\qt5\qtbase\plugins
Library execs installed to..
QML1 imports installed to...C:\QT\qt5\qtbase\imports
QML2 imports installed to...C:\QT\qt5\qtbase\qml
Binaries installed to.......C:\QT\qt5\qtbase\bin
Arch-indep. data to.........C:\QT\qt5\qtbase
Docs installed to...........C:\QT\qt5\qtbase\doc
Translations installed to...C:\QT\qt5\qtbase\translations
Examples installed to.......C:\QT\qt5\qtbase\examples
Tests installed to..........C:\QT\qt5\qtbase\tests
Using internal configuration.

Generating Makefiles...


Qt is now configured for building. Just run mingw32-make.
To reconfigure, run mingw32-make confclean and configure.

+ C:/QT/qt5/qtbase/bin/qmake C:/QT/qt5/qtsdk.pro

C:\QT\qt5>

And the listing of my files in the QTbase\bin foldes ist the following:


Volume in Laufwerk C: hat keine Bezeichnung.
Volumeseriennummer: 64A7-7777

Verzeichnis von C:\QT\qt5\qtbase\bin

12.01.2013 07:07 <DIR> .
12.01.2013 07:07 <DIR> ..
11.01.2013 23:17 284.160 dumpcpp.exe
12.01.2013 07:07 0 files.txt
18.12.2012 21:03 6.356 findtr
18.12.2012 21:03 6.198 fixqt4headers.pl
11.01.2013 20:09 20.852.230 icudt50.dll
11.01.2013 20:09 3.340.836 icuin50.dll
11.01.2013 20:09 126.478 icuio50.dll
11.01.2013 20:09 407.757 icule50.dll
11.01.2013 20:09 135.152 iculx50.dll
11.01.2013 20:09 155.945 icutest50.dll
11.01.2013 20:09 295.310 icutu50.dll
11.01.2013 20:09 1.978.215 icuuc50.dll
11.01.2013 23:13 33.280 idc.exe
11.01.2013 19:43 1.655.808 libeay32.dll
11.01.2013 22:35 1.273.856 moc.exe
11.01.2013 22:36 2.655.232 qdoc.exe
11.01.2013 22:33 4.604.928 qmake.exe
11.01.2013 22:33 29 qt.conf
11.01.2013 22:39 29.696 Qt5Concurrent.dll
11.01.2013 22:39 551.477 Qt5Concurrentd.dll
11.01.2013 22:38 4.816.384 Qt5Core.dll
11.01.2013 22:39 81.579.316 Qt5Cored.dll
11.01.2013 22:44 3.661.824 Qt5Gui.dll
11.01.2013 22:45 145.383.770 Qt5Guid.dll
11.01.2013 22:42 1.313.792 Qt5Network.dll
11.01.2013 22:42 33.500.144 Qt5Networkd.dll
11.01.2013 22:51 377.344 Qt5OpenGL.dll
11.01.2013 22:51 12.084.335 Qt5OpenGLd.dll
11.01.2013 22:51 272.384 Qt5PrintSupport.dll
11.01.2013 22:51 7.176.203 Qt5PrintSupportd.dll
12.01.2013 00:12 1.797.120 Qt5Script.dll
12.01.2013 00:09 86.139.600 Qt5Scriptd.dll
12.01.2013 00:36 700.928 Qt5ScriptTools.dll
12.01.2013 00:38 22.316.791 Qt5ScriptToolsd.dll
11.01.2013 22:40 221.184 Qt5Sql.dll
11.01.2013 22:40 5.199.078 Qt5Sqld.dll
11.01.2013 23:03 304.128 Qt5Svg.dll
11.01.2013 23:03 7.494.250 Qt5Svgd.dll
11.01.2013 22:40 147.968 Qt5Test.dll
11.01.2013 22:40 2.360.828 Qt5Testd.dll
11.01.2013 22:49 5.526.528 Qt5Widgets.dll
11.01.2013 22:50 145.616.118 Qt5Widgetsd.dll
11.01.2013 22:39 212.480 Qt5Xml.dll
11.01.2013 22:39 1.732.176 Qt5Xmld.dll
12.01.2013 00:31 5.440.000 Qt5XmlPatterns.dll
12.01.2013 00:30 150.414.298 Qt5XmlPatternsd.dll
11.01.2013 22:35 1.082.368 rcc.exe
11.01.2013 19:43 377.856 ssleay32.dll
18.12.2012 21:03 52.802 syncqt
18.12.2012 21:03 2.128 syncqt.bat
11.01.2013 22:36 1.475.584 uic.exe
12.01.2013 00:34 1.071.569 xmlpatterns.exe
12.01.2013 00:34 300.734 xmlpatternsvalidator.exe
53 Datei(en), 768.544.955 Bytes
2 Verzeichnis(se), 77.468.102.656 Bytes frei


Can you see any reason why it doesn't work?

wysota
12th January 2013, 09:33
Please read the whole output of configure and find the part responsible for checking multimedia support.