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. Problems about Native build Qt5.7 on raspberry pi3
Forum Updated to NodeBB v4.3 + New Features

Problems about Native build Qt5.7 on raspberry pi3

Scheduled Pinned Locked Moved Mobile and Embedded
56 Posts 3 Posters 26.4k Views 2 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
    yes you are right!
    to be honest i don't know much about Qtwayland, if disabled , is there any other side-effects as EGL-X11 is disabled ?
    thank you every much!

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

    @JiujiuTong If you don't want to use Wayland then there are no side effects if you don't build it. You need support for what ever graphics you want to use. Do you want to use X11?

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

    J 1 Reply Last reply
    0
    • jsulmJ jsulm

      @JiujiuTong If you don't want to use Wayland then there are no side effects if you don't build it. You need support for what ever graphics you want to use. Do you want to use X11?

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

      @jsulm
      thanks for your rapid reply!
      i try to install the QT5.7 on rpi3 because i want to learn developing qt application on rpi3 with OS(RASPBIAN JESSIE WITH PIXEL), the main purpose is playing multimedia.
      as i'm a fresher to linux, i don't know much about X11, from the internet information, it seems there is no need to have this feature for my usage, am I right ?

      jsulmJ 1 Reply Last reply
      0
      • J JiujiuTong

        @jsulm
        thanks for your rapid reply!
        i try to install the QT5.7 on rpi3 because i want to learn developing qt application on rpi3 with OS(RASPBIAN JESSIE WITH PIXEL), the main purpose is playing multimedia.
        as i'm a fresher to linux, i don't know much about X11, from the internet information, it seems there is no need to have this feature for my usage, am I right ?

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

        @JiujiuTong Per default Raspbian is using X11. So, if you want to test GUI applications you need X11. You most probably already have it as you're running Pixel. If Qt configure complains about OpenGL then you need to install OpenGL devel packages.

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

        J 1 Reply Last reply
        0
        • jsulmJ jsulm

          @JiujiuTong Per default Raspbian is using X11. So, if you want to test GUI applications you need X11. You most probably already have it as you're running Pixel. If Qt configure complains about OpenGL then you need to install OpenGL devel packages.

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

          @jsulm
          sorry, i don't understand.
          do you mean i need to enable EGL-X11?
          from the configure log it seems that "OpenGL ES 2.0 enabled".
          what should i do then ?
          thank you!

          jsulmJ 1 Reply Last reply
          0
          • J JiujiuTong

            @jsulm
            sorry, i don't understand.
            do you mean i need to enable EGL-X11?
            from the configure log it seems that "OpenGL ES 2.0 enabled".
            what should i do then ?
            thank you!

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

            @JiujiuTong then disable QtWayland and try again

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

            J 1 Reply Last reply
            0
            • jsulmJ jsulm

              @JiujiuTong then disable QtWayland and try again

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

              @jsulm
              OK, I will have a try! hope it works
              thank you very much.
              i will tell you the result later!

              jsulmJ 1 Reply Last reply
              0
              • J JiujiuTong

                @jsulm
                OK, I will have a try! hope it works
                thank you very much.
                i will tell you the result later!

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

                @JiujiuTong add -skip wayland to your configure call

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

                J 2 Replies Last reply
                0
                • jsulmJ jsulm

                  @JiujiuTong add -skip wayland to your configure call

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

                  @jsulm
                  got it !

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @JiujiuTong add -skip wayland to your configure call

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

                    @jsulm
                    the problem is solved with -skip wayland option
                    but another problem happens:
                    the make install output error
                    /usr/bin/ld: cannot find -lclip2tri
                    /usr/bin/ld: cannot find -lpoly2tri
                    /usr/bin/ld: cannot find -lclipper
                    I know it means that three libs are not find, but there are tips above:
                    cd poly2tri/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
                    make[4]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'
                    make[4]: Nothing to be done for 'install'.
                    make[4]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'
                    cd clipper/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper/clipper.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
                    make[4]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'
                    make[4]: Nothing to be done for 'install'.
                    make[4]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'
                    cd clip2tri/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri/clip2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
                    make[4]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'
                    make[4]: Nothing to be done for 'install'.
                    make[4]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'
                    make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty'

                    it seams that the install process skip producing the libs,but later it need the libs, can you give any suggestions? thank you !

                    jsulmJ 1 Reply Last reply
                    0
                    • J JiujiuTong

                      @jsulm
                      the problem is solved with -skip wayland option
                      but another problem happens:
                      the make install output error
                      /usr/bin/ld: cannot find -lclip2tri
                      /usr/bin/ld: cannot find -lpoly2tri
                      /usr/bin/ld: cannot find -lclipper
                      I know it means that three libs are not find, but there are tips above:
                      cd poly2tri/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
                      make[4]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'
                      make[4]: Nothing to be done for 'install'.
                      make[4]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'
                      cd clipper/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper/clipper.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
                      make[4]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'
                      make[4]: Nothing to be done for 'install'.
                      make[4]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'
                      cd clip2tri/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri/clip2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
                      make[4]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'
                      make[4]: Nothing to be done for 'install'.
                      make[4]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'
                      make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty'

                      it seams that the install process skip producing the libs,but later it need the libs, can you give any suggestions? thank you !

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

                      @JiujiuTong I don't know why those libs are not installed, but you can try to copy them manually

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

                      J 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @JiujiuTong I don't know why those libs are not installed, but you can try to copy them manually

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

                        @jsulm
                        where can i find these libs? it seems that there are no libs created.....

                        jsulmJ 1 Reply Last reply
                        0
                        • J JiujiuTong

                          @jsulm
                          where can i find these libs? it seems that there are no libs created.....

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

                          @JiujiuTong They actually should be built:

                          cd poly2tri/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile
                          

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

                          J 3 Replies Last reply
                          0
                          • jsulmJ jsulm

                            @JiujiuTong They actually should be built:

                            cd poly2tri/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile
                            
                            J Offline
                            J Offline
                            JiujiuTong
                            wrote on last edited by
                            #27

                            @jsulm
                            OK, I will double confirm it.
                            after copy them manually, i would reinstalll again. thanks a lot!

                            1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @JiujiuTong They actually should be built:

                              cd poly2tri/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile
                              
                              J Offline
                              J Offline
                              JiujiuTong
                              wrote on last edited by
                              #28
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • jsulmJ jsulm

                                @JiujiuTong They actually should be built:

                                cd poly2tri/ && ( test -e Makefile || /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile
                                
                                J Offline
                                J Offline
                                JiujiuTong
                                wrote on last edited by
                                #29

                                @jsulm
                                i checked the files , there are three files:
                                libclip2tri.prl
                                libclipper.prl
                                libpoly2tri.prl

                                but no lib files. it's strange...
                                do you have any other suggestions ? thankyou!

                                jsulmJ 1 Reply Last reply
                                0
                                • J JiujiuTong

                                  @jsulm
                                  i checked the files , there are three files:
                                  libclip2tri.prl
                                  libclipper.prl
                                  libpoly2tri.prl

                                  but no lib files. it's strange...
                                  do you have any other suggestions ? thankyou!

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

                                  @JiujiuTong You can try to build those libraries manually:

                                  cd poly2tri
                                  /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile
                                  

                                  then make and make install

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

                                  J 3 Replies Last reply
                                  0
                                  • jsulmJ jsulm

                                    @JiujiuTong You can try to build those libraries manually:

                                    cd poly2tri
                                    /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile
                                    

                                    then make and make install

                                    J Offline
                                    J Offline
                                    JiujiuTong
                                    wrote on last edited by
                                    #31
                                    This post is deleted!
                                    1 Reply Last reply
                                    0
                                    • jsulmJ jsulm

                                      @JiujiuTong You can try to build those libraries manually:

                                      cd poly2tri
                                      /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile
                                      

                                      then make and make install

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

                                      @jsulm
                                      yes , i have create the libs,thank you !!

                                      1 Reply Last reply
                                      0
                                      • jsulmJ jsulm

                                        @JiujiuTong You can try to build those libraries manually:

                                        cd poly2tri
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile
                                        

                                        then make and make install

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

                                        @jsulm
                                        after i've create the archives(libclip2tri.a, libclipper.a,libpoly2tri.a ) ,then copy them to /usr/lib
                                        and restart the QT configuer and make then make install, is it right ?

                                        jsulmJ 1 Reply Last reply
                                        0
                                        • J JiujiuTong

                                          @jsulm
                                          after i've create the archives(libclip2tri.a, libclipper.a,libpoly2tri.a ) ,then copy them to /usr/lib
                                          and restart the QT configuer and make then make install, is it right ?

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

                                          @JiujiuTong *.a are static libraries, those are usually not in /usr/lib as they are only needed during linking, but you can try.
                                          Actually you should copy them to the directory where you want to install your Qt.

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

                                          J 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