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 24.7k 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.
  • 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
                                    • jsulmJ jsulm

                                      @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.

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

                                      @jsulm
                                      thank you!
                                      this problem solved, but another issue happened:
                                      make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src/script'
                                      /usr/bin/g++ -c -include .pch/Qt5Script -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -fno-strict-aliasing -Wall -Wreturn-type -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -D_REENTRANT -fPIC -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DBUILDING_QT__=1 -DWTF_USE_ACCELERATED_COMPOSITING -DNDEBUG -DLOG_DISABLED=1 -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DJS_NO_EXPORT -DQT_BUILD_SCRIPT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I../3rdparty/javascriptcore/JavaScriptCore/wtf/symbian -I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode -I../3rdparty/javascriptcore/JavaScriptCore/yarr -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -I../3rdparty/javascriptcore/JavaScriptCore/generated -I/opt/vc/include -I/opt/vc/include/interface/vcos -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src/3rdparty/javascriptcore/WebKit/qt/Api -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/tmp -I. -Iparser -I../../include -I../../include/QtScript -I../../include/QtScript/5.7.1 -I../../include/QtScript/5.7.1/QtScript -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/5.7.1 -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/5.7.1/QtCore -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore -I.moc -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/mkspecs/devices/linux-rpi3-g++ -o obj/release/pcre_compile.o ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp
                                      In file included from ../3rdparty/javascriptcore/JavaScriptCore/config.h:26:0,
                                      from ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:44:
                                      ../3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:370:6: error: #error "Not supported ARM architecture"

                                      error "Not supported ARM architecture"

                                      I am frustrated..i am following the steps :
                                      http://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi
                                      why so many problems ? do you have any good ideas ? thank you !

                                      J 1 Reply Last reply
                                      0
                                      • J JiujiuTong

                                        @jsulm
                                        thank you!
                                        this problem solved, but another issue happened:
                                        make[3]: Entering directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src/script'
                                        /usr/bin/g++ -c -include .pch/Qt5Script -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -fno-strict-aliasing -Wall -Wreturn-type -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -D_REENTRANT -fPIC -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DBUILDING_QT__=1 -DWTF_USE_ACCELERATED_COMPOSITING -DNDEBUG -DLOG_DISABLED=1 -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DJS_NO_EXPORT -DQT_BUILD_SCRIPT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I../3rdparty/javascriptcore/JavaScriptCore/wtf/symbian -I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode -I../3rdparty/javascriptcore/JavaScriptCore/yarr -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -I../3rdparty/javascriptcore/JavaScriptCore/generated -I/opt/vc/include -I/opt/vc/include/interface/vcos -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src/3rdparty/javascriptcore/WebKit/qt/Api -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/tmp -I. -Iparser -I../../include -I../../include/QtScript -I../../include/QtScript/5.7.1 -I../../include/QtScript/5.7.1/QtScript -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/5.7.1 -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/5.7.1/QtCore -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore -I.moc -I/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/mkspecs/devices/linux-rpi3-g++ -o obj/release/pcre_compile.o ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp
                                        In file included from ../3rdparty/javascriptcore/JavaScriptCore/config.h:26:0,
                                        from ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:44:
                                        ../3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:370:6: error: #error "Not supported ARM architecture"

                                        error "Not supported ARM architecture"

                                        I am frustrated..i am following the steps :
                                        http://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi
                                        why so many problems ? do you have any good ideas ? thank you !

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

                                        @JiujiuTong said in problems about Native build Qt5.7 on raspberry pi3:

                                        @jsulm
                                        thank you!

                                        more infos:
                                        error "Not supported ARM architecture"
                                        ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp: In function ‘JSRegExp* jsRegExpCompile(const UChar*, int, JSRegExpIgnoreCaseOption, JSRegExpMultilineOption, unsigned int*, const char**)’:
                                        ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:2590:62: warning: cast from ‘char*’ to ‘JSRegExp*’ increases required alignment of target type [-Wcast-align]
                                        JSRegExp* re = reinterpret_cast<JSRegExp*>(new char[size]);
                                        ^
                                        In file included from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qlist.h:1:0,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:49,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qobject.h:1,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:43,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qabstractanimation.h:1,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/QtCore:4,
                                        from ../../include/QtScript/QtScriptDepends:3:
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h: In instantiation of ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QVariant]’:
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:811:58: required from ‘QList<T>::QList(const QList<T>&) [with T = QVariant]’
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/statemachine/qstatemachine.h:77:59: required from here
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:471:17: warning: cast from ‘QList<QVariant>::Node*’ to ‘QVariant*’ increases required alignment of target type [-Wcast-align]
                                        new (current) T(reinterpret_cast<T>(src));
                                        ^
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:477:17: warning: cast from ‘QList<QVariant>::Node*’ to ‘QVariant*’ increases required alignment of target type [-Wcast-align]
                                        (reinterpret_cast<T*>(current))->~T();
                                        ^
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h: In instantiation of ‘void QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T = QVariant]’:
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:862:68: required from ‘void QList<T>::dealloc(QListData::Data*) [with T = QVariant]’
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:823:18: required from ‘QList<T>::~QList() [with T = QVariant]’
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:762:30: required from here
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:492:34: warning: cast from ‘QList<QVariant>::Node*’ to ‘QVariant*’ increases required alignment of target type [-Wcast-align]
                                        while (from != to) --to, reinterpret_cast<T*>(to)->~T();
                                        ^
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h: In instantiation of ‘void QList<T>::node_destruct(QList<T>::Node*) [with T = QVariant]’:
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:600:36: required from ‘void QList<T>::append(const T&) [with T = QVariant]’
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:382:15: required from ‘QList<T>& QList<T>::operator<<(const T&) [with T = QVariant]’
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:765:27: required from here
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:448:39: warning: cast from ‘QList<QVariant>::Node*’ to ‘QVariant*’ increases required alignment of target type [-Wcast-align]
                                        else if (QTypeInfo<T>::isComplex) reinterpret_cast<T*>(n)->~T();
                                        ^
                                        In file included from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qhash.h:1:0,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:48,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qvariant.h:1,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/animation/qvariantanimation.h:46,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qvariantanimation.h:1,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/animation/qpropertyanimation.h:43,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qpropertyanimation.h:1,
                                        from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/QtCore:8,
                                        from ../../include/QtScript/QtScriptDepends:3:
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h: In instantiation of ‘static QHash<K, V>::Node* QHash<K, V>::concrete(QHashData::Node*) [with Key = QString; T = QVariant; QHash<K, V>::Node = QHashNode<QString, QVariant>]’:
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:533:18: required from ‘static void QHash<K, V>::deleteNode2(QHashData::Node*) [with Key = QString; T = QVariant]’
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:573:5: required from ‘void QHash<K, V>::freeData(QHashData*) [with Key = QString; T = QVariant]’
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:252:47: required from ‘QHash<K, V>::~QHash() [with Key = QString; T = QVariant]’
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:779:30: required from here
                                        /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:235:45: warning: cast from ‘QHashData::Node*’ to ‘QHash<QString, QVariant>::Node* {aka QHashNode<QString, QVariant>*}’ increases required alignment of target type [-Wcast-align]
                                        return reinterpret_cast<Node *>(node);
                                        ^
                                        Makefile:3214: recipe for target 'obj/release/pcre_compile.o' failed
                                        make[3]: *** [obj/release/pcre_compile.o] Error 1
                                        make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src/script'
                                        Makefile:67: recipe for target 'sub-script-install_subtargets-ordered' failed
                                        make[2]: *** [sub-script-install_subtargets-ordered] Error 2
                                        make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src'
                                        Makefile:56: recipe for target 'sub-src-install_subtargets' failed
                                        make[1]: *** [sub-src-install_subtargets] Error 2
                                        make[1]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript'
                                        Makefile:894: recipe for target 'module-qtscript-install_subtargets' failed
                                        make: *** [module-qtscript-install_subtargets] Error 2

                                        jsulmJ 1 Reply Last reply
                                        0
                                        • J JiujiuTong

                                          @JiujiuTong said in problems about Native build Qt5.7 on raspberry pi3:

                                          @jsulm
                                          thank you!

                                          more infos:
                                          error "Not supported ARM architecture"
                                          ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp: In function ‘JSRegExp* jsRegExpCompile(const UChar*, int, JSRegExpIgnoreCaseOption, JSRegExpMultilineOption, unsigned int*, const char**)’:
                                          ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:2590:62: warning: cast from ‘char*’ to ‘JSRegExp*’ increases required alignment of target type [-Wcast-align]
                                          JSRegExp* re = reinterpret_cast<JSRegExp*>(new char[size]);
                                          ^
                                          In file included from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qlist.h:1:0,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:49,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qobject.h:1,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:43,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qabstractanimation.h:1,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/QtCore:4,
                                          from ../../include/QtScript/QtScriptDepends:3:
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h: In instantiation of ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QVariant]’:
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:811:58: required from ‘QList<T>::QList(const QList<T>&) [with T = QVariant]’
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/statemachine/qstatemachine.h:77:59: required from here
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:471:17: warning: cast from ‘QList<QVariant>::Node*’ to ‘QVariant*’ increases required alignment of target type [-Wcast-align]
                                          new (current) T(reinterpret_cast<T>(src));
                                          ^
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:477:17: warning: cast from ‘QList<QVariant>::Node*’ to ‘QVariant*’ increases required alignment of target type [-Wcast-align]
                                          (reinterpret_cast<T*>(current))->~T();
                                          ^
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h: In instantiation of ‘void QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T = QVariant]’:
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:862:68: required from ‘void QList<T>::dealloc(QListData::Data*) [with T = QVariant]’
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:823:18: required from ‘QList<T>::~QList() [with T = QVariant]’
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:762:30: required from here
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:492:34: warning: cast from ‘QList<QVariant>::Node*’ to ‘QVariant*’ increases required alignment of target type [-Wcast-align]
                                          while (from != to) --to, reinterpret_cast<T*>(to)->~T();
                                          ^
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h: In instantiation of ‘void QList<T>::node_destruct(QList<T>::Node*) [with T = QVariant]’:
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:600:36: required from ‘void QList<T>::append(const T&) [with T = QVariant]’
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:382:15: required from ‘QList<T>& QList<T>::operator<<(const T&) [with T = QVariant]’
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:765:27: required from here
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:448:39: warning: cast from ‘QList<QVariant>::Node*’ to ‘QVariant*’ increases required alignment of target type [-Wcast-align]
                                          else if (QTypeInfo<T>::isComplex) reinterpret_cast<T*>(n)->~T();
                                          ^
                                          In file included from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qhash.h:1:0,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:48,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qvariant.h:1,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/animation/qvariantanimation.h:46,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qvariantanimation.h:1,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/animation/qpropertyanimation.h:43,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qpropertyanimation.h:1,
                                          from /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/QtCore:8,
                                          from ../../include/QtScript/QtScriptDepends:3:
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h: In instantiation of ‘static QHash<K, V>::Node* QHash<K, V>::concrete(QHashData::Node*) [with Key = QString; T = QVariant; QHash<K, V>::Node = QHashNode<QString, QVariant>]’:
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:533:18: required from ‘static void QHash<K, V>::deleteNode2(QHashData::Node*) [with Key = QString; T = QVariant]’
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:573:5: required from ‘void QHash<K, V>::freeData(QHashData*) [with Key = QString; T = QVariant]’
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:252:47: required from ‘QHash<K, V>::~QHash() [with Key = QString; T = QVariant]’
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:779:30: required from here
                                          /home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:235:45: warning: cast from ‘QHashData::Node*’ to ‘QHash<QString, QVariant>::Node* {aka QHashNode<QString, QVariant>*}’ increases required alignment of target type [-Wcast-align]
                                          return reinterpret_cast<Node *>(node);
                                          ^
                                          Makefile:3214: recipe for target 'obj/release/pcre_compile.o' failed
                                          make[3]: *** [obj/release/pcre_compile.o] Error 1
                                          make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src/script'
                                          Makefile:67: recipe for target 'sub-script-install_subtargets-ordered' failed
                                          make[2]: *** [sub-script-install_subtargets-ordered] Error 2
                                          make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript/src'
                                          Makefile:56: recipe for target 'sub-src-install_subtargets' failed
                                          make[1]: *** [sub-src-install_subtargets] Error 2
                                          make[1]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.7.1/qtscript'
                                          Makefile:894: recipe for target 'module-qtscript-install_subtargets' failed
                                          make: *** [module-qtscript-install_subtargets] Error 2

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

                                          @JiujiuTong In the description how to build Qt for RPi they use this for device: -device linux-rasp-pi-g++
                                          You use -device linux-pi3-g++.
                                          -march=armv8-a -mtune=cortex-a53 - this does not look correct for RPi.
                                          Please try with -device linux-rasp-pi-g++

                                          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