c++ - Qt4 undefined reference to `QAbstractVideoSurface::QAbstractVideoSurface(QObject*)' in Ubuntu 14.04 -


i have seen 2 related questions:

but none of them solved mine. error title said , there same 76 errors in total:

/videowidgetsurface.cpp:15: error: undefined reference `qabstractvideosurface::qabstractvideosurface(qobject*)'  

i use qt4.8.6, qtcreator3.3.2, ubuntu14.04(i386).

the .pro file this:

qt       += core gui multimediakwidgets widgets  greaterthan(qt_major_version, 4): qt += widgets  target = test1 template = app   sources += main.cpp \     videowidgetsurface.cpp \     videoplayer.cpp \     videowidget.cpp  headers  += \     videowidgetsurface.h \     videoplayer.h \     videowidget.h 

i tried

qt       += core gui multimedia  

didn't work , version of qt4 doesn't include qtmultimedia module.

this example of qt official tutorial. ideas? in advance.

qt += multimedia 

this works on qt5.

for qt4 should that:

config += mobility mobility = multimedia 

see example.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -