Unsolved Need QTMultimedia but cant find it?
-
my qt4 folder contains the following
/usr/include/qt4$ ls phonon QtDBus QtHelp QtScriptTools QtUiTools Qt QtDeclarative QtNetwork QtSql QtXml Qt3Support QtDesigner QtOpenGL QtSvg QtXmlPatterns QtCore QtGui QtScript QtTest
but the project that i am working on gives the following error:/usr/lib/i386-linux-gnu/qt4/bin/qmake -o Makefile SWipe.pro g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtMultimedia -I/usr/include/qt4 -I. -o main.o main.cpp In file included from main.cpp:2:0: swipe.h:11:10: fatal error: QAudioInput: No such file or directory #include <QAudioInput> ^~~~~~~~~~~~~
-
Did you add Qt Multimedia in your .pro file?
In my case I wrote:
QT += core gui multimedia multimediawidgets
-
Hi and welcome to devnet,
There's no QtMultimediaWidgets module in Qt 4 so you only need to add
QT += multimedia
to your .pro file.Might be a silly question but are you sure you installed the QtMultimedia development package ?
-
Qt 4 has reached EOL long ago. Please consider upgrading to Qt 5