Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Resolved] Qt5 native build on RPi
Forum Updated to NodeBB v4.3 + New Features

[Resolved] Qt5 native build on RPi

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 2.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xvause
    wrote on 12 Mar 2015, 07:15 last edited by xvause
    #1

    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 !

    1 Reply Last reply
    1
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Mar 2015, 23:24 last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xvause
        wrote on 13 Mar 2015, 06:51 last edited by
        #3

        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 to QQuickItem::setImplicitWidth(double)'
        qdeclarativevideooutput.cpp:(.text+0x310): undefined reference to QQuickItem::setImplicitHeight(double)' .obj/qdeclarativevideooutput.o: In function QDeclarativeVideoOutput::setOrientation(int)':
        qdeclarativevideooutput.cpp:(.text+0x87c): undefined reference to QQuickItem::setImplicitWidth(double)' qdeclarativevideooutput.cpp:(.text+0x88c): undefined reference to QQuickItem::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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sneubert
          wrote on 13 Mar 2015, 07:03 last edited by
          #4

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

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xvause
            wrote on 13 Mar 2015, 07:11 last edited by
            #5

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

            To be followed :-D

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xvause
              wrote on 14 Mar 2015, 09:20 last edited by
              #6

              Thank you, everything is ok now :-D

              1 Reply Last reply
              0

              1/6

              12 Mar 2015, 07:15

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved