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?
Forum Updated to NodeBB v4.3 + New Features

Raspberry Pi 3: debug info, how to fix?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
59 Posts 6 Posters 28.0k 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.
  • J JiujiuTong

    @jsulm
    i just sync from raspberry, is there anyway to check if incompatible libraries are included in that path?

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #47

    @JiujiuTong My question was: does it contain that file?

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

    J 1 Reply Last reply
    0
    • jsulmJ jsulm

      @JiujiuTong My question was: does it contain that file?

      J Offline
      J Offline
      JiujiuTong
      wrote on last edited by
      #48

      @jsulm
      yes,there is a libpthread.so

      jsulmJ 1 Reply Last reply
      0
      • J JiujiuTong

        @jsulm
        yes,there is a libpthread.so

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #49

        @JiujiuTong Can you do:

        file PATH_TO/libpthread.so
        

        and post the output?

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

        J 1 Reply Last reply
        0
        • jsulmJ jsulm

          @JiujiuTong Can you do:

          file PATH_TO/libpthread.so
          

          and post the output?

          J Offline
          J Offline
          JiujiuTong
          wrote on last edited by
          #50

          @jsulm
          sorry for my late reply
          these days i have been rework the job. just following the steps again.
          now there is another error :
          /usr/include/math.h:31: error: bits/math-vector.h: No such file or directory
          #include <bits/math-vector.h>
          i try to find the file bits/math-vector.h ,but there is no such file
          and i searched that is should be included in libc6-dev package.
          but i have installed the latest package , but still no such file
          is there any other ways to fix it? thank you very much !

          J 1 Reply Last reply
          0
          • J JiujiuTong

            @jsulm
            sorry for my late reply
            these days i have been rework the job. just following the steps again.
            now there is another error :
            /usr/include/math.h:31: error: bits/math-vector.h: No such file or directory
            #include <bits/math-vector.h>
            i try to find the file bits/math-vector.h ,but there is no such file
            and i searched that is should be included in libc6-dev package.
            but i have installed the latest package , but still no such file
            is there any other ways to fix it? thank you very much !

            J Offline
            J Offline
            JiujiuTong
            wrote on last edited by
            #51

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

            @jsulm
            sorry for my late reply
            these days i have been rework the job. just following the steps again.
            now there is another error :
            /usr/include/math.h:31: error: bits/math-vector.h: No such file or directory
            #include <bits/math-vector.h>
            i try to find the file bits/math-vector.h ,but there is no such file
            and i searched that is should be included in libc6-dev package.
            but i have installed the latest package , but still no such file
            is there any other ways to fix it? thank you very much !

            @jsulm it seems that the qtcreator do not using the files specified by sysroot(~/rapi/sysroot/usr/include/math.h), it is using files on host files /usr/include/math, how can i use the files under sysroot ?thank you !

            jsulmJ 1 Reply Last reply
            0
            • J JiujiuTong

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

              @jsulm
              sorry for my late reply
              these days i have been rework the job. just following the steps again.
              now there is another error :
              /usr/include/math.h:31: error: bits/math-vector.h: No such file or directory
              #include <bits/math-vector.h>
              i try to find the file bits/math-vector.h ,but there is no such file
              and i searched that is should be included in libc6-dev package.
              but i have installed the latest package , but still no such file
              is there any other ways to fix it? thank you very much !

              @jsulm it seems that the qtcreator do not using the files specified by sysroot(~/rapi/sysroot/usr/include/math.h), it is using files on host files /usr/include/math, how can i use the files under sysroot ?thank you !

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #52

              @JiujiuTong How did you configure the kit in QtCreator? If it is set up correctly then it should work.

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

              J 1 Reply Last reply
              0
              • jsulmJ jsulm

                @JiujiuTong How did you configure the kit in QtCreator? If it is set up correctly then it should work.

                J Offline
                J Offline
                JiujiuTong
                wrote on last edited by
                #53

                @jsulm
                i think the configure is correct, i am following the steps :
                http://wiki.qt.io/RaspberryPi2EGLFS
                first create device ,then configure compiler,debug, and Qtversion. Go to Options -> Build & Run with sysroot path selected.
                i add the absolute path in the project, then it seem ok now with one problem:
                https://forum.qt.io/topic/77854/error-undefined-reference-to-std-__throw_out_of_range_fmt-char-const-glibcxx_3-4-20/3
                can you help me?

                jsulmJ 1 Reply Last reply
                0
                • J JiujiuTong

                  @jsulm
                  i think the configure is correct, i am following the steps :
                  http://wiki.qt.io/RaspberryPi2EGLFS
                  first create device ,then configure compiler,debug, and Qtversion. Go to Options -> Build & Run with sysroot path selected.
                  i add the absolute path in the project, then it seem ok now with one problem:
                  https://forum.qt.io/topic/77854/error-undefined-reference-to-std-__throw_out_of_range_fmt-char-const-glibcxx_3-4-20/3
                  can you help me?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #54

                  @JiujiuTong Did you try what @SGaist suggested?

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

                  J 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @JiujiuTong Did you try what @SGaist suggested?

                    J Offline
                    J Offline
                    JiujiuTong
                    wrote on last edited by JiujiuTong
                    #55

                    @jsulm
                    yes , i try ,but it failed
                    i add you in other post . thank you !

                    jsulmJ 1 Reply Last reply
                    0
                    • J JiujiuTong

                      @jsulm
                      yes , i try ,but it failed
                      i add you in other post . thank you !

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #56

                      @JiujiuTong Failed? Same problem?

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

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        Levy
                        wrote on last edited by Levy
                        #57

                        關於這個錯誤:
                        /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::currentContext()@Qt_5'
                        ....
                        ...

                        我是加入:
                        .pro:
                        QT += opengl

                        才解決此問題的

                        會加 qt += opengl 是因為 QGLContext::currentContext() ...etc 來自於 opengl
                        我覺得這 error 是因為 Qt5MultimediaWidgets 於 Embedded 時,會去呼叫 opengl 方法的關係

                        希望對你有幫助。

                        J 1 Reply Last reply
                        0
                        • L Levy

                          關於這個錯誤:
                          /home/tong/raspi/qt5pi/lib/libQt5MultimediaWidgets.so: undefined reference to QGLContext::currentContext()@Qt_5'
                          ....
                          ...

                          我是加入:
                          .pro:
                          QT += opengl

                          才解決此問題的

                          會加 qt += opengl 是因為 QGLContext::currentContext() ...etc 來自於 opengl
                          我覺得這 error 是因為 Qt5MultimediaWidgets 於 Embedded 時,會去呼叫 opengl 方法的關係

                          希望對你有幫助。

                          J Offline
                          J Offline
                          JiujiuTong
                          wrote on last edited by
                          #58

                          @Levy ,got it , thanks!

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            amruz
                            wrote on last edited by amruz
                            #59

                            I am also getting the error when i try to cross compile qt in raspberry pi 2 without x11.
                            When i am running console application it is running.
                            But when i am using widget application in pi touchscreen it is showing
                            "Unable to query physical screen size, defaulting to 100 dpi.
                            To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters)."
                            and the system is idle
                            can anyone help me with this

                            when i am debugging the output in qtcreator is as follows
                            Debugging starts
                            Listening on port 10000
                            Remote debugging from host 192.168.15.153
                            Process /home/pi/qtinpitry created; pid = 8079
                            File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead.
                            Unable to query physical screen size, defaulting to 100 dpi.
                            To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).

                            can anyone help me.
                            Thanks in advance

                            1 Reply Last reply
                            0

                            • Login

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