0

I have seen 2 related questions:

but none of them solved mine. So the error is just what the title said and there are same 76 errors in total:

/videowidgetsurface.cpp:15: error: undefined reference to `QAbstractVideoSurface::QAbstractVideoSurface(QObject*)' 

I use Qt4.8.6, QtCreator3.3.2, Ubuntu14.04(i386).

The .pro file is like 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 and this version of Qt4 doesn't include QtMultimedia module.

This is from an example of Qt official tutorial. Any ideas? Thanks in advance.

Community
  • 1
  • 1
Henry
  • 2,819
  • 3
  • 18
  • 33

1 Answers1

0
QT += multimedia

This works on Qt5.

for Qt4 it should be like that:

CONFIG += mobility
MOBILITY = multimedia

See an example.

Marek R
  • 32,568
  • 6
  • 55
  • 140