[Resolved] Qt5 native build on RPi



  • Hi,

    I'm trying to compile and install QT5 on my RPi.
    I follow this guide without any problem : http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi

    After that, I tried to compile qtmultimedia (in my folder ~/opt/qt5/qtmultimedia).
    But, when I call make, I get this error :

    @Makefile:125: recipe for target '../../lib/libQt5MultimediaQuick_p.so.5.5.0' failed
    make[2]: *** [../../lib/libQt5MultimediaQuick_p.so.5.5.0] Error 1
    make[2]: Leaving directory '/home/pi/opt/qt5/qtmultimedia/src/qtmultimediaquicktools'
    Makefile:71: recipe for target 'sub-qtmultimediaquicktools-make_first' failed
    make[1]: *** [sub-qtmultimediaquicktools-make_first] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt5/qtmultimedia/src'
    Makefile:44: recipe for target 'sub-src-make_first' failed
    make: *** [sub-src-make_first] Error 2@

    Any idea ?

    Thankss !


  • Lifetime Qt Champion

    Hi,

    You don't show enough of the backtrace, the point of failure is not visible



  • cd src/ && ( test -e Makefile || /usr/local/qt5/bin/qmake /home/pi/opt/qt5/qtmultimedia/src/src.pro -o Makefile ) && make -f Makefile
    make[1]: Entering directory '/home/pi/opt/qt5/qtmultimedia/src'
    cd multimedia/ && ( test -e Makefile || /usr/local/qt5/bin/qmake /home/pi/opt/qt5/qtmultimedia/src/multimedia/multimedia.pro -o Makefile ) && make -f Makefile
    make[2]: Entering directory '/home/pi/opt/qt5/qtmultimedia/src/multimedia'
    make[2]: Nothing to be done for 'first'.
    make[2]: Leaving directory '/home/pi/opt/qt5/qtmultimedia/src/multimedia'
    cd qtmultimediaquicktools/ && ( test -e Makefile || /usr/local/qt5/bin/qmake /home/pi/opt/qt5/qtmultimedia/src/qtmultimediaquicktools/qtmultimediaquicktools.pro -o Makefile ) && make -f Makefile
    make[2]: Entering directory '/home/pi/opt/qt5/qtmultimedia/src/qtmultimediaquicktools'
    rm -f libQt5MultimediaQuick_p.so.5.5.0 libQt5MultimediaQuick_p.so libQt5MultimediaQuick_p.so.5 libQt5MultimediaQuick_p.so.5.5
    /usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -Wl,--no-undefined -Wl,-O1 -fuse-ld=gold -Wl,-rpath,/usr/local/qt5/lib -shared -Wl,-soname,libQt5MultimediaQuick_p.so.5 -o libQt5MultimediaQuick_p.so.5.5.0 .obj/qsgvideonode_p.o .obj/qdeclarativevideooutput.o .obj/qdeclarativevideooutput_render.o .obj/qdeclarativevideooutput_window.o .obj/qsgvideonode_i420.o .obj/qsgvideonode_rgb.o .obj/qsgvideonode_texture.o .obj/moc_qdeclarativevideooutput_p.o .obj/moc_qsgvideonode_p.o .obj/moc_qdeclarativevideooutput_render_p.o -L/opt/vc/lib -L/home/pi/opt/qt5/qtmultimedia/lib -lQt5Multimedia -L/usr/local/qt5/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lpthread -lGLESv2
    .obj/qdeclarativevideooutput.o: In function QDeclarativeVideoOutput::_q_updateNativeSize()': qdeclarativevideooutput.cpp:(.text+0x300): undefined reference toQQuickItem::setImplicitWidth(double)'
    qdeclarativevideooutput.cpp:(.text+0x310): undefined reference to QQuickItem::setImplicitHeight(double)' .obj/qdeclarativevideooutput.o: In functionQDeclarativeVideoOutput::setOrientation(int)':
    qdeclarativevideooutput.cpp:(.text+0x87c): undefined reference to QQuickItem::setImplicitWidth(double)' qdeclarativevideooutput.cpp:(.text+0x88c): undefined reference toQQuickItem::setImplicitHeight(double)'
    collect2: ld returned 1 exit status
    Makefile:125: recipe for target '../../lib/libQt5MultimediaQuick_p.so.5.5.0' failed
    make[2]: *** [../../lib/libQt5MultimediaQuick_p.so.5.5.0] Error 1
    make[2]: Leaving directory '/home/pi/opt/qt5/qtmultimedia/src/qtmultimediaquicktools'
    Makefile:71: recipe for target 'sub-qtmultimediaquicktools-make_first' failed
    make[1]: *** [sub-qtmultimediaquicktools-make_first] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt5/qtmultimedia/src'
    Makefile:44: recipe for target 'sub-src-make_first' failed
    make: *** [sub-src-make_first] Error 2



  • QQuickItem is part of the qtdeclarative modul.
    Did you build and install the qtdeclarative module prior to the qtmultimedia modul?



  • I think I did, but I'm doing it again to be sure...

    To be followed :-D



  • Thank you, everything is ok now :-D


Log in to reply
 

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