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. Raspberry Pi 3: debug info, how to fix?
QtWS25 Last Chance

Raspberry Pi 3: debug info, how to fix?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
59 Posts 6 Posters 27.7k Views
  • 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.
  • J JiujiuTong
    7 Mar 2017, 15:41

    @jsulm
    my project compile output is :
    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::currentContext()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setAttributeArray(char const*, float const*, int, int)@Qt_5'
    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::hasOpenGLShaderPrograms(QGLContext const*)@Qt_5' /home/tong/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to QStaticTextItem::setFontEngine(QFontEngine*)'
    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::addShaderFromSourceCode(QFlags<QGLShader::ShaderTypeBit>, char const*)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::contextHandle() const@Qt_5'
    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::removeAllShaders()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::enableAttributeArray(char const*)@Qt_5'
    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::link()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::QGLShaderProgram(QGLContext const*, QObject*)@Qt_5'
    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::release()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, QMatrix4x4 const&)@Qt_5'
    /home/tong/raspi/sysroot/usr/lib/libactivemq-cpp.so: undefined reference to std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::~QGLShaderProgram()@Qt_5'
    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::log() const@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, float const (*) [4])@Qt_5'
    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, int)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::bind()@Qt_5'
    collect2: error: ld returned 1 exit status
    make: *** [FMT] Error 1
    23:37:26: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project FMT (kit: rpi3)
    When executing step "Make"
    do you know what's wrong with it ? thank you very much!! my project is cross complier project, my host is centos 7 64bit ,my target device is rpi3 following the steps :
    http://wiki.qt.io/RaspberryPi2E
    the difference is that my QT5.7.1 source code is download form QT not from git, and i run the configure command (./configure -release -opengl es2 -skip webengine -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v) under Qt5.7.1 directory not under Qtbase, so i think all modules except webengine are installed. and i configure QT creator with raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/ /arm-linux-gnueabihf-g++
    and i skipped the "11. Still on the device, fix the EGL/GLES library nonsense:"
    the error informations seems to relative with qtmultimedia and qtthread. i really don't know how to fix with this. please help me,thank you!

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 8 Mar 2017, 05:19 last edited by
    #15

    @JiujiuTong It doesn't matter whether the compiler itself is 32bit or 64bit.
    Regarding errors: were QtMultimedia and Qt OpenGL modules built?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    J 1 Reply Last reply 8 Mar 2017, 09:22
    0
    • J jsulm
      8 Mar 2017, 05:19

      @JiujiuTong It doesn't matter whether the compiler itself is 32bit or 64bit.
      Regarding errors: were QtMultimedia and Qt OpenGL modules built?

      J Offline
      J Offline
      JiujiuTong
      wrote on 8 Mar 2017, 09:22 last edited by
      #16

      @jsulm
      do you mean QtMultimedia and Qt OpenGL were not built ?
      in qt-everywhere-opensource Qt5.7.1, with "./configure -release -opengl es2 -skip webengine -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v ", i think these module should be built , how to check if these modules were built or not ?

      J 1 Reply Last reply 8 Mar 2017, 10:29
      0
      • J JiujiuTong
        8 Mar 2017, 09:22

        @jsulm
        do you mean QtMultimedia and Qt OpenGL were not built ?
        in qt-everywhere-opensource Qt5.7.1, with "./configure -release -opengl es2 -skip webengine -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v ", i think these module should be built , how to check if these modules were built or not ?

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 8 Mar 2017, 10:29 last edited by
        #17

        @JiujiuTong Are the libraries there?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        J 2 Replies Last reply 8 Mar 2017, 13:35
        0
        • J jsulm
          8 Mar 2017, 10:29

          @JiujiuTong Are the libraries there?

          J Offline
          J Offline
          JiujiuTong
          wrote on 8 Mar 2017, 13:35 last edited by JiujiuTong 3 Aug 2017, 13:42
          #18

          @jsulm
          Qt OpenGL modules? it seems no this module there.
          and i rebuild QtMultimedia module, it's no problem
          there is no need to install OpenGL in raspberry 3 ,right?
          in my host i have install openGL now ,it still doesn't work

          1 Reply Last reply
          0
          • J jsulm
            8 Mar 2017, 10:29

            @JiujiuTong Are the libraries there?

            J Offline
            J Offline
            JiujiuTong
            wrote on 9 Mar 2017, 06:53 last edited by
            #19

            @jsulm
            i can find libQt5MultimediaWidgets.so , but i don't know where to find openGL related files...

            J 1 Reply Last reply 9 Mar 2017, 06:55
            0
            • J JiujiuTong
              9 Mar 2017, 06:53

              @jsulm
              i can find libQt5MultimediaWidgets.so , but i don't know where to find openGL related files...

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 9 Mar 2017, 06:55 last edited by
              #20

              @JiujiuTong What about libQt5OpenGL.so ?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 2 Replies Last reply 9 Mar 2017, 07:46
              0
              • J jsulm
                9 Mar 2017, 06:55

                @JiujiuTong What about libQt5OpenGL.so ?

                J Offline
                J Offline
                JiujiuTong
                wrote on 9 Mar 2017, 07:46 last edited by JiujiuTong 3 Sept 2017, 07:48
                #21

                @jsulm
                I reconfigure and reinstall the QT,and find the opengl related files in the source qtbase ,
                I also find the libQt5OpenGL.so after reinstall. I will retry the project later. thank you for your informs.

                1 Reply Last reply
                0
                • J jsulm
                  9 Mar 2017, 06:55

                  @JiujiuTong What about libQt5OpenGL.so ?

                  J Offline
                  J Offline
                  JiujiuTong
                  wrote on 9 Mar 2017, 13:09 last edited by
                  #22

                  @jsulm
                  i have check the files , both ligQt5OpenGL.so and libQt5Multimedia.so exists,
                  and the build output is still:
                  /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
                  /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
                  /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
                  /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::currentContext()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setAttributeArray(char const*, float const*, int, int)@Qt_5'
                  /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::hasOpenGLShaderPrograms(QGLContext const*)@Qt_5' /home/tong/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to QStaticTextItem::setFontEngine(QFontEngine*)'
                  /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::addShaderFromSourceCode(QFlags<QGLShader::ShaderTypeBit>, char const*)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::contextHandle() const@Qt_5'
                  /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::removeAllShaders()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::enableAttributeArray(char const*)@Qt_5'
                  /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::link()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::QGLShaderProgram(QGLContext const*, QObject*)@Qt_5'
                  /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::release()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, QMatrix4x4 const&)@Qt_5'
                  /home/tong/raspi/sysroot/usr/lib/libactivemq-cpp.so: undefined reference to std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::~QGLShaderProgram()@Qt_5'
                  /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::log() const@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, float const (*) [4])@Qt_5'
                  /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, int)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::bind()@Qt_5'
                  collect2: error: ld returned 1 exit status
                  make: *** [FMT] Error 1
                  20:57:20: The process "/usr/bin/make" exited with code 2.
                  Error while building/deploying project FMT (kit: rpi3)
                  The kit rpi3 has configuration issues which might be the root cause for this problem.
                  When executing step "Make"

                  J 1 Reply Last reply 16 Mar 2017, 01:19
                  0
                  • J JiujiuTong
                    9 Mar 2017, 13:09

                    @jsulm
                    i have check the files , both ligQt5OpenGL.so and libQt5Multimedia.so exists,
                    and the build output is still:
                    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
                    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
                    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::currentContext()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setAttributeArray(char const*, float const*, int, int)@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::hasOpenGLShaderPrograms(QGLContext const*)@Qt_5' /home/tong/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to QStaticTextItem::setFontEngine(QFontEngine*)'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::addShaderFromSourceCode(QFlags<QGLShader::ShaderTypeBit>, char const*)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::contextHandle() const@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::removeAllShaders()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::enableAttributeArray(char const*)@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::link()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::QGLShaderProgram(QGLContext const*, QObject*)@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::release()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, QMatrix4x4 const&)@Qt_5'
                    /home/tong/raspi/sysroot/usr/lib/libactivemq-cpp.so: undefined reference to std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::~QGLShaderProgram()@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::log() const@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, float const (*) [4])@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, int)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::bind()@Qt_5'
                    collect2: error: ld returned 1 exit status
                    make: *** [FMT] Error 1
                    20:57:20: The process "/usr/bin/make" exited with code 2.
                    Error while building/deploying project FMT (kit: rpi3)
                    The kit rpi3 has configuration issues which might be the root cause for this problem.
                    When executing step "Make"

                    J Offline
                    J Offline
                    JiujiuTong
                    wrote on 16 Mar 2017, 01:19 last edited by
                    #23

                    @JiujiuTong said in Qt on rpi3 , debug info ,how to fix?:

                    @jsulm
                    i have check the files , both ligQt5OpenGL.so and libQt5Multimedia.so exists,
                    and the build output is still:
                    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
                    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
                    /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::currentContext()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setAttributeArray(char const*, float const*, int, int)@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::hasOpenGLShaderPrograms(QGLContext const*)@Qt_5' /home/tong/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to QStaticTextItem::setFontEngine(QFontEngine*)'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::addShaderFromSourceCode(QFlags<QGLShader::ShaderTypeBit>, char const*)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::contextHandle() const@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::removeAllShaders()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::enableAttributeArray(char const*)@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::link()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::QGLShaderProgram(QGLContext const*, QObject*)@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::release()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, QMatrix4x4 const&)@Qt_5'
                    /home/tong/raspi/sysroot/usr/lib/libactivemq-cpp.so: undefined reference to std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::~QGLShaderProgram()@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::log() const@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, float const (*) [4])@Qt_5'
                    /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, int)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::bind()@Qt_5'
                    collect2: error: ld returned 1 exit status
                    make: *** [FMT] Error 1
                    20:57:20: The process "/usr/bin/make" exited with code 2.
                    Error while building/deploying project FMT (kit: rpi3)
                    The kit rpi3 has configuration issues which might be the root cause for this problem.
                    When executing step "Make"
                    @jsulm ,do you have any ideas? thank you !

                    J J 2 Replies Last reply 16 Mar 2017, 05:20
                    0
                    • J JiujiuTong
                      16 Mar 2017, 01:19

                      @JiujiuTong said in Qt on rpi3 , debug info ,how to fix?:

                      @jsulm
                      i have check the files , both ligQt5OpenGL.so and libQt5Multimedia.so exists,
                      and the build output is still:
                      /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
                      /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
                      /home/tong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
                      /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::currentContext()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setAttributeArray(char const*, float const*, int, int)@Qt_5'
                      /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::hasOpenGLShaderPrograms(QGLContext const*)@Qt_5' /home/tong/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to QStaticTextItem::setFontEngine(QFontEngine*)'
                      /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::addShaderFromSourceCode(QFlags<QGLShader::ShaderTypeBit>, char const*)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::contextHandle() const@Qt_5'
                      /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::removeAllShaders()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::enableAttributeArray(char const*)@Qt_5'
                      /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::link()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::QGLShaderProgram(QGLContext const*, QObject*)@Qt_5'
                      /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::release()@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, QMatrix4x4 const&)@Qt_5'
                      /home/tong/raspi/sysroot/usr/lib/libactivemq-cpp.so: undefined reference to std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::~QGLShaderProgram()@Qt_5'
                      /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::log() const@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, float const (*) [4])@Qt_5'
                      /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::setUniformValue(char const*, int)@Qt_5' /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLShaderProgram::bind()@Qt_5'
                      collect2: error: ld returned 1 exit status
                      make: *** [FMT] Error 1
                      20:57:20: The process "/usr/bin/make" exited with code 2.
                      Error while building/deploying project FMT (kit: rpi3)
                      The kit rpi3 has configuration issues which might be the root cause for this problem.
                      When executing step "Make"
                      @jsulm ,do you have any ideas? thank you !

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 16 Mar 2017, 05:20 last edited by
                      #24

                      @JiujiuTong said in Qt on rpi3 , debug info ,how to fix?:

                      skipping incompatible /usr/lib/libpthread.so

                      You are linking against x86 libraries installed in your host machine! You need to link against libraries for your target device since you're cross-compiling.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      J 1 Reply Last reply 16 Mar 2017, 05:39
                      0
                      • J jsulm
                        16 Mar 2017, 05:20

                        @JiujiuTong said in Qt on rpi3 , debug info ,how to fix?:

                        skipping incompatible /usr/lib/libpthread.so

                        You are linking against x86 libraries installed in your host machine! You need to link against libraries for your target device since you're cross-compiling.

                        J Offline
                        J Offline
                        JiujiuTong
                        wrote on 16 Mar 2017, 05:39 last edited by
                        #25

                        @jsulm
                        my host machine is x64 , i don't kown what to do.
                        can you tell me how to link it please? i'm following the instructures descripted by :
                        http://wiki.qt.io/RaspberryPi2EGLFS
                        can you give me some instructions please!,thank you very much

                        J 1 Reply Last reply 16 Mar 2017, 05:41
                        0
                        • J JiujiuTong
                          16 Mar 2017, 05:39

                          @jsulm
                          my host machine is x64 , i don't kown what to do.
                          can you tell me how to link it please? i'm following the instructures descripted by :
                          http://wiki.qt.io/RaspberryPi2EGLFS
                          can you give me some instructions please!,thank you very much

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 16 Mar 2017, 05:41 last edited by
                          #26

                          @JiujiuTong How are you building? Can you show your configure call? Does your sysroot contain all needed libraries?

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          J 1 Reply Last reply 16 Mar 2017, 05:58
                          0
                          • J jsulm
                            16 Mar 2017, 05:41

                            @JiujiuTong How are you building? Can you show your configure call? Does your sysroot contain all needed libraries?

                            J Offline
                            J Offline
                            JiujiuTong
                            wrote on 16 Mar 2017, 05:58 last edited by
                            #27

                            @jsulm
                            i,m using cross compile,and my configure is :
                            ./configure -release -opengl es2 -skip webengine -device linux-rasp-pi2-g++
                            -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
                            -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs
                            -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v

                            and i sysroot all the directory under raspi with "./sysroot-relativelinks.py sysroot"

                            J 1 Reply Last reply 16 Mar 2017, 06:03
                            0
                            • J JiujiuTong
                              16 Mar 2017, 05:58

                              @jsulm
                              i,m using cross compile,and my configure is :
                              ./configure -release -opengl es2 -skip webengine -device linux-rasp-pi2-g++
                              -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
                              -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs
                              -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v

                              and i sysroot all the directory under raspi with "./sysroot-relativelinks.py sysroot"

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 16 Mar 2017, 06:03 last edited by
                              #28

                              @JiujiuTong said in Qt on rpi3 , debug info ,how to fix?:

                              ~/raspi/sysroot

                              Did you check that your sysroot really contains what is needed (for example ~/raspi/sysroot/usr/lib)?

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              J 1 Reply Last reply 16 Mar 2017, 06:06
                              0
                              • J jsulm
                                16 Mar 2017, 06:03

                                @JiujiuTong said in Qt on rpi3 , debug info ,how to fix?:

                                ~/raspi/sysroot

                                Did you check that your sysroot really contains what is needed (for example ~/raspi/sysroot/usr/lib)?

                                J Offline
                                J Offline
                                JiujiuTong
                                wrote on 16 Mar 2017, 06:06 last edited by
                                #29

                                @jsulm
                                i really don't know what libs are needed, so i do not check the Dir, the folder is created by :
                                mkdir sysroot sysroot/usr sysroot/opt
                                rsync -avz pi@raspberrypi.local:/lib sysroot
                                rsync -avz pi@raspberrypi.local:/usr/include sysroot/usr
                                rsync -avz pi@raspberrypi.local:/usr/lib sysroot/usr
                                rsync -avz pi@raspberrypi.local:/opt/vc sysroot/opt
                                and i checked that the output is right with no error.

                                J 1 Reply Last reply 16 Mar 2017, 06:10
                                0
                                • J JiujiuTong
                                  16 Mar 2017, 06:06

                                  @jsulm
                                  i really don't know what libs are needed, so i do not check the Dir, the folder is created by :
                                  mkdir sysroot sysroot/usr sysroot/opt
                                  rsync -avz pi@raspberrypi.local:/lib sysroot
                                  rsync -avz pi@raspberrypi.local:/usr/include sysroot/usr
                                  rsync -avz pi@raspberrypi.local:/usr/lib sysroot/usr
                                  rsync -avz pi@raspberrypi.local:/opt/vc sysroot/opt
                                  and i checked that the output is right with no error.

                                  J Offline
                                  J Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 16 Mar 2017, 06:10 last edited by
                                  #30

                                  @JiujiuTong Maybe you should try to call configure from a clean Qt source directory? Did you try to build Qt before for x86? Even better would be to do out of source build see http://stackoverflow.com/questions/1245011/how-to-build-qt-out-of-source

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  J 2 Replies Last reply 16 Mar 2017, 06:18
                                  0
                                  • J jsulm
                                    16 Mar 2017, 06:10

                                    @JiujiuTong Maybe you should try to call configure from a clean Qt source directory? Did you try to build Qt before for x86? Even better would be to do out of source build see http://stackoverflow.com/questions/1245011/how-to-build-qt-out-of-source

                                    J Offline
                                    J Offline
                                    JiujiuTong
                                    wrote on 16 Mar 2017, 06:18 last edited by
                                    #31

                                    @jsulm
                                    i confirm the source file is clean ,it is download from QT. i have built the QT under windows and centos x64, but not for x86.

                                    J 1 Reply Last reply 16 Mar 2017, 06:20
                                    0
                                    • J JiujiuTong
                                      16 Mar 2017, 06:18

                                      @jsulm
                                      i confirm the source file is clean ,it is download from QT. i have built the QT under windows and centos x64, but not for x86.

                                      J Offline
                                      J Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on 16 Mar 2017, 06:20 last edited by
                                      #32

                                      @JiujiuTong What I mean with this "Did you try to build Qt before for x86?" is - did you build for x86 OR x86_64 before from the SAME source code tree? Because currently you're linking against your host libraries.

                                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      0
                                      • J jsulm
                                        16 Mar 2017, 06:10

                                        @JiujiuTong Maybe you should try to call configure from a clean Qt source directory? Did you try to build Qt before for x86? Even better would be to do out of source build see http://stackoverflow.com/questions/1245011/how-to-build-qt-out-of-source

                                        J Offline
                                        J Offline
                                        JiujiuTong
                                        wrote on 16 Mar 2017, 06:24 last edited by
                                        #33

                                        @jsulm
                                        and i have tried to start a simple qt application(just a page with nothing showed ). it works well .
                                        the source file is clean every time i try to build the QT, i will delete the source file and extract it from source file.

                                        1 Reply Last reply
                                        0
                                        • J Offline
                                          J Offline
                                          JiujiuTong
                                          wrote on 17 Mar 2017, 03:15 last edited by
                                          #34

                                          @crasskitty
                                          sorry , i don't understand what's your meanings

                                          1 Reply Last reply
                                          0

                                          24/59

                                          16 Mar 2017, 05:20

                                          • Login

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