make error building qt 4.7.4 on ubuntu gutsy



  • The build process went on quite smoothly so far, but now I'm stuck.

    I get the following error executing make:

    make[3]: Entering directory /home/roman/zips/qt-everywhere-opensource-src-4.7.4/examples/multimedia/videographicsitem' g++ -Wl,-rpath-link,/home/roman/zips/qt-everywhere-opensource-src-4.7.4/lib -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.7.4/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.7.4/lib -o videographicsitem .obj/release-shared/main.o .obj/release-shared/videoplayer.o .obj/release-shared/videoitem.o .obj/release-shared/moc_videoplayer.o .obj/release-shared/moc_videoitem.o -L/home/roman/zips/qt-everywhere-opensource-src-4.7.4/lib -lQtMultimedia -L/home/roman/zips/qt-everywhere-opensource-src-4.7.4/lib -L/usr/X11R6/lib -lQtGui -lQtCore -lpthread .obj/release-shared/videoplayer.o: In functionVideoPlayer::VideoPlayer(QWidget*, QFlagsQt::WindowType)':
    videoplayer.cpp:(.text+0x65a): undefined reference to VideoItem::VideoItem(QGraphicsItem*)' .obj/release-shared/videoplayer.o: In functionVideoPlayer::VideoPlayer(QWidget*, QFlagsQt::WindowType)':
    videoplayer.cpp:(.text+0x126a): undefined reference to VideoItem::VideoItem(QGraphicsItem*)' .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x14): undefined reference toVideoItem::~VideoItem()'
    .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x18): undefined reference to VideoItem::~VideoItem()' .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x38): undefined reference toVideoItem::supportedPixelFormats(QAbstractVideoBuffer::HandleType) const'
    .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x44): undefined reference to VideoItem::start(QVideoSurfaceFormat const&)' .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x48): undefined reference toVideoItem::stop()'
    .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x4c): undefined reference to VideoItem::present(QVideoFrame const&)' .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x50): undefined reference toVideoItem::boundingRect() const'
    .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x54): undefined reference to VideoItem::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*)' .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x60): undefined reference tonon-virtual thunk to VideoItem::~VideoItem()'
    .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x64): undefined reference to non-virtual thunk to VideoItem::~VideoItem()' .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x6c): undefined reference tonon-virtual thunk to VideoItem::boundingRect() const'
    .obj/release-shared/moc_videoitem.o:(.rodata._ZTV9VideoItem[vtable for VideoItem]+0x88): undefined reference to non-virtual thunk to VideoItem::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*)' collect2: ld returned 1 exit status make[3]: *** [videographicsitem] Error 1 make[3]: Leaving directory/home/roman/zips/qt-everywhere-opensource-src-4.7.4/examples/multimedia/videographicsitem'
    make[2]: *** [sub-videographicsitem-make_default] Error 2
    make[2]: Leaving directory /home/roman/zips/qt-everywhere-opensource-src-4.7.4/examples/multimedia' make[1]: *** [sub-multimedia-make_default] Error 2 make[1]: Leaving directory/home/roman/zips/qt-everywhere-opensource-src-4.7.4/examples'
    make: *** [sub-examples-make_default-ordered] Error 2
    roman@roman-desktop:~/zips/qt-everywhere-opensource-src-4.7.4$

    Any ideas what is causing this?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Is your problem finalizing your Qt build or just build this example. If the former, just disable building the examples and tests when building Qt.

    Out of curiosity, why use such an old version of Qt ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.