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. Cross compile QT5.7 for ARM

Cross compile QT5.7 for ARM

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
17 Posts 2 Posters 7.2k 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.
  • B Offline
    B Offline
    Biswajit_1984
    wrote on last edited by
    #1

    Hi ,
    I am trying to cross compile qt-everywhere-opensource-src-5.7.1 .
    While compiling the code i am getting error like:

    libQt5Core.so.5.7.1: version node not found for symbol qt_version_tag@Qt_5.6
    /home/antriksh/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: failed to set dynamic section sizes: Bad value
    collect2: error: ld returned 1 exit status

    Let me know the probable root cause for the same and how can i solve this.

    Regards,
    Biswajit

    jsulmJ 1 Reply Last reply
    0
    • B Biswajit_1984

      Hi ,
      I am trying to cross compile qt-everywhere-opensource-src-5.7.1 .
      While compiling the code i am getting error like:

      libQt5Core.so.5.7.1: version node not found for symbol qt_version_tag@Qt_5.6
      /home/antriksh/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: failed to set dynamic section sizes: Bad value
      collect2: error: ld returned 1 exit status

      Let me know the probable root cause for the same and how can i solve this.

      Regards,
      Biswajit

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

      @Biswajit_1984 Looks like you're mixing Qt 5.7 and 5.6.
      Do you have Qt 5.6 stuff in your PATH, LD_LIBRARY_PATH?
      How do you configure?

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

      B 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Biswajit_1984 Looks like you're mixing Qt 5.7 and 5.6.
        Do you have Qt 5.6 stuff in your PATH, LD_LIBRARY_PATH?
        How do you configure?

        B Offline
        B Offline
        Biswajit_1984
        wrote on last edited by
        #3

        @jsulm
        Thanks a lot for your reply.
        ./configure -xplatform linux-arm-gnueabihf-g++ -prefix /usr/local/Qt5.7.1_opengl -opengl es2 -confirm-license -opensource -no-cups -no-largefile -optimized-qmake -nomake tools -no-pch -v -no-icu -no-openvg -sysroot /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -I/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/am57xx-evm/usr/include/
        as per my knowledge Qt5.6 is not SET in PATH & LD_LIBRARY_PATH.

        Regards,
        Biswajit

        jsulmJ 1 Reply Last reply
        0
        • B Biswajit_1984

          @jsulm
          Thanks a lot for your reply.
          ./configure -xplatform linux-arm-gnueabihf-g++ -prefix /usr/local/Qt5.7.1_opengl -opengl es2 -confirm-license -opensource -no-cups -no-largefile -optimized-qmake -nomake tools -no-pch -v -no-icu -no-openvg -sysroot /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -I/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/am57xx-evm/usr/include/
          as per my knowledge Qt5.6 is not SET in PATH & LD_LIBRARY_PATH.

          Regards,
          Biswajit

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

          @Biswajit_1984 Did you try to build Qt 5.6 before and do you still have build artefacts from that build?

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

          B 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Biswajit_1984 Did you try to build Qt 5.6 before and do you still have build artefacts from that build?

            B Offline
            B Offline
            Biswajit_1984
            wrote on last edited by
            #5

            @jsulm
            I have n't tried to build qt5...
            But to cross check Can you please let me know which path i should cross check?
            If the sysroot path already have qt related library will it create problem.
            To avoid the confusion,i have moved all the qt related library from that and compiling the same.
            i will update on the same.

            Regards,
            Biswajit

            B 1 Reply Last reply
            0
            • B Biswajit_1984

              @jsulm
              I have n't tried to build qt5...
              But to cross check Can you please let me know which path i should cross check?
              If the sysroot path already have qt related library will it create problem.
              To avoid the confusion,i have moved all the qt related library from that and compiling the same.
              i will update on the same.

              Regards,
              Biswajit

              B Offline
              B Offline
              Biswajit_1984
              wrote on last edited by
              #6

              @jsulm
              I have cross checked and got to know that while installing the SDK which i have received from TI ,qt5 is already installed in the sysroot.
              Even after removing the same from there still the error persists.

              Regards,
              Biswajit

              jsulmJ 1 Reply Last reply
              0
              • B Biswajit_1984

                @jsulm
                I have cross checked and got to know that while installing the SDK which i have received from TI ,qt5 is already installed in the sysroot.
                Even after removing the same from there still the error persists.

                Regards,
                Biswajit

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

                @Biswajit_1984 Try to build from a clean state after removing old Qt from SDK

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

                B 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @Biswajit_1984 Try to build from a clean state after removing old Qt from SDK

                  B Offline
                  B Offline
                  Biswajit_1984
                  wrote on last edited by
                  #8

                  @jsulm I have tried as you said like removing all qt related files from sysroot

                  antriksh@antriksh:~/qt-everywhere-opensource-src-5.7.1$ sudo find ../ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/ -iname "libqt*"
                  antriksh@antriksh:~/qt-everywhere-opensource-src-5.7.1$

                  Then I did make clean followed by find . -name "*.o" -exec rm -rf {} ;

                  Then again i configured and started compilation once again.
                  But still the error is there.
                  Is there any way by which i can disable version checking ?

                  Regards,
                  Biswajit

                  jsulmJ 1 Reply Last reply
                  0
                  • B Biswajit_1984

                    @jsulm I have tried as you said like removing all qt related files from sysroot

                    antriksh@antriksh:~/qt-everywhere-opensource-src-5.7.1$ sudo find ../ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/ -iname "libqt*"
                    antriksh@antriksh:~/qt-everywhere-opensource-src-5.7.1$

                    Then I did make clean followed by find . -name "*.o" -exec rm -rf {} ;

                    Then again i configured and started compilation once again.
                    But still the error is there.
                    Is there any way by which i can disable version checking ?

                    Regards,
                    Biswajit

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

                    @Biswajit_1984 You should not disable version checking you should fix your setup to use correct libs.

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

                    B 1 Reply Last reply
                    1
                    • jsulmJ jsulm

                      @Biswajit_1984 You should not disable version checking you should fix your setup to use correct libs.

                      B Offline
                      B Offline
                      Biswajit_1984
                      wrote on last edited by
                      #10

                      @jsulm
                      Ok.So can you please guide which other files may create problem.
                      Because Now I have removed any files related to qt also from sysroot.
                      sudo find ../ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/ -iname "qt*" -exec rm -rf {} ;

                      Even though the issue persists.
                      I am not able to move further.

                      Regards,
                      Biswajit

                      jsulmJ 1 Reply Last reply
                      0
                      • B Biswajit_1984

                        @jsulm
                        Ok.So can you please guide which other files may create problem.
                        Because Now I have removed any files related to qt also from sysroot.
                        sudo find ../ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/ -iname "qt*" -exec rm -rf {} ;

                        Even though the issue persists.
                        I am not able to move further.

                        Regards,
                        Biswajit

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

                        @Biswajit_1984 Can you please post the whole compiler/linker output here, not only the error message?

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

                        B 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Biswajit_1984 Can you please post the whole compiler/linker output here, not only the error message?

                          B Offline
                          B Offline
                          Biswajit_1984
                          wrote on last edited by
                          #12

                          @jsulm while configuring now i am ending with error like:
                          To test i have modified in order to avoid version checking qversiontagging.cpp but it gave error like:fatal error: stdlib.h: No such file or directory.
                          Then after even though i revert back the changes this error persists even while configuring.
                          I have searched in the internet regarding the same but didn't find any solution.
                          Please help me in order to solve this issue.

                          Regards,
                          Biswajit

                          jsulmJ 1 Reply Last reply
                          0
                          • B Biswajit_1984

                            @jsulm while configuring now i am ending with error like:
                            To test i have modified in order to avoid version checking qversiontagging.cpp but it gave error like:fatal error: stdlib.h: No such file or directory.
                            Then after even though i revert back the changes this error persists even while configuring.
                            I have searched in the internet regarding the same but didn't find any solution.
                            Please help me in order to solve this issue.

                            Regards,
                            Biswajit

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

                            @Biswajit_1984 Maybe you should start from a clean state? Your setup seems to be broken.

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

                            B 2 Replies Last reply
                            0
                            • jsulmJ jsulm

                              @Biswajit_1984 Maybe you should start from a clean state? Your setup seems to be broken.

                              B Offline
                              B Offline
                              Biswajit_1984
                              wrote on last edited by
                              #14

                              @jsulm I have freshly extracted the new qt-everywhere-opensource-src-5.7.1.tar file and tried to configure also.But still "fatal error: stdlib.h: No such file or directory"

                              Compiler Output:
                              checking for FreeType...
                              /home/antriksh/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -O3 -march=armv7-a -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -mword-relocations -fpermissive --sysroot=/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -O2 -Wall -W -fPIC -I. -I/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/am57xx-evm/usr/include -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/libxml2 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/freetype2 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/drm -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/gbm -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/GLES -I../../../mkspecs/linux-arm-gnueabihf-g++ -o freetype.o freetype.cpp
                              In file included from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/cstdlib:75:0,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/stdlib.h:36,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/freetype2/freetype/config/ftstdlib.h:120,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/freetype2/freetype/config/ftconfig.h:43,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/freetype2/freetype/freetype.h:33,
                              from freetype.cpp:41:
                              /home/antriksh/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/6.2.1/stdlib.h:30:26: fatal error: stdlib.h: No such file or directory

                              include_next <stdlib.h>

                                                    ^
                              

                              compilation terminated.
                              Makefile:186: recipe for target 'freetype.o' failed
                              make: *** [freetype.o] Error 1
                              FreeType disabled.
                              checking for HarfBuzz...
                              /home/antriksh/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -O3 -march=armv7-a -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -mword-relocations -fpermissive --sysroot=/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -O2 -Wall -W -fPIC -I. -I/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/am57xx-evm/usr/include -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/libxml2 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/freetype2 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/drm -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/gbm -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/GLES -I../../../mkspecs/linux-arm-gnueabihf-g++ -o harfbuzz.o harfbuzz.cpp
                              /home/antriksh/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -Wl,-O1 -o harfbuzz harfbuzz.o -L/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/lib -L/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/lib -lz -lfreetype -lexpat -lrt -ldl -lfontconfig -lpng -lpthread --sysroot=/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -lharfbuzz
                              HarfBuzz enabled.
                              checking for STL...
                              /home/antriksh/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -O3 -march=armv7-a -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -mword-relocations -fpermissive --sysroot=/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -O2 -Wall -W -fPIC -I. -I/home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/am57xx-evm/usr/include -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/libxml2 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/freetype2 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/drm -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/gbm -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1 -isystem /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/GLES -I../../../mkspecs/linux-arm-gnueabihf-g++ -o stltest.o stltest.cpp
                              In file included from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/cstdlib:75:0,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/ext/string_conversions.h:41,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/bits/basic_string.h:5402,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/string:52,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/bits/locale_classes.h:40,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/bits/ios_base.h:41,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/ios:42,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/ostream:38,
                              from /home/antriksh/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/c++/6.2.1/iterator:64,
                              from stltest.cpp:45:
                              /home/antriksh/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/6.2.1/stdlib.h:30:26: fatal error: stdlib.h: No such file or directory

                              If you can figure out and can find the root cause then it will be really grateful.
                              Is there any patch for solving this issue.Since I have found a simillar issue in GIT Hub.
                              https://github.com/voidlinux/void-packages/issues/5254

                              Regards,
                              Biswajit

                              1 Reply Last reply
                              0
                              • jsulmJ jsulm

                                @Biswajit_1984 Maybe you should start from a clean state? Your setup seems to be broken.

                                B Offline
                                B Offline
                                Biswajit_1984
                                wrote on last edited by
                                #15

                                @jsulm
                                I have solved the issue.
                                The mistake was :I have given am57xx-evm path in which already qt was installed.
                                so after removed and then compiled .
                                After that,the earlier error didn't come.
                                But it ended with another error.
                                I am not able to figure out the root cause.Please help me in solving the same.

                                configure parameter:

                                ./configure -xplatform linux-arm-gnueabihf-g++ -prefix /usr/local/Qt5.7.1_opengl -opengl es2 -confirm-license -opensource -no-cups -no-largefile -optimized-qmake -nomake tools -no-pch -v -no-icu -no-openvg -sysroot /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -qt-pcre -no-xcb -no-sm -no-glib -no-libinput -no-mtdev -nomake examples

                                Error Log:

                                Entering directory `/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core/Release'
                                [9/10383] ACTION make_core_generated: CSSPropertyNames_1dd3bbd1830ec3803de4b986e6e77be9
                                FAILED: cd /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/core; python ../build/scripts/make_css_property_names.py css/CSSProperties.in --output_dir /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core/Release/gen/blink/core --gperf gperf
                                Traceback (most recent call last):
                                File "../build/scripts/make_css_property_names.py", line 238, in <module>
                                in_generator.Maker(CSSPropertyNamesWriter).main(sys.argv)
                                File "/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py", line 95, in main
                                writer.write_files(options.output_dir)
                                File "/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py", line 71, in write_files
                                self._write_file_if_changed(output_dir, generator(), file_name)
                                File "../build/scripts/make_css_property_names.py", line 233, in generate_implementation
                                gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True)
                                File "/usr/lib/python2.7/subprocess.py", line 711, in init
                                errread, errwrite)
                                File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
                                raise child_exception
                                OSError: [Errno 2] No such file or directory
                                [9/10383] ACTION make_core_generated: StylePropertyShorthand_1dd3bbd1830ec3803de4b986e6e77be9
                                ninja: build stopped: subcommand failed.
                                Makefile.gyp_run:923: recipe for target 'invoke_ninja' failed
                                make[4]: *** [invoke_ninja] Error 1
                                make[4]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core'
                                Makefile:116: recipe for target 'sub-gyp_run-pro-make_first' failed
                                make[3]: *** [sub-gyp_run-pro-make_first] Error 2
                                make[3]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core'
                                Makefile:49: recipe for target 'sub-core-make_first' failed
                                make[2]: *** [sub-core-make_first] Error 2
                                make[2]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src'
                                Makefile:44: recipe for target 'sub-src-make_first' failed
                                make[1]: *** [sub-src-make_first] Error 2
                                make[1]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine'
                                Makefile:859: recipe for target 'module-qtwebengine-make_first' failed
                                make: *** [module-qtwebengine-make_first] Error 2

                                jsulmJ 1 Reply Last reply
                                0
                                • B Biswajit_1984

                                  @jsulm
                                  I have solved the issue.
                                  The mistake was :I have given am57xx-evm path in which already qt was installed.
                                  so after removed and then compiled .
                                  After that,the earlier error didn't come.
                                  But it ended with another error.
                                  I am not able to figure out the root cause.Please help me in solving the same.

                                  configure parameter:

                                  ./configure -xplatform linux-arm-gnueabihf-g++ -prefix /usr/local/Qt5.7.1_opengl -opengl es2 -confirm-license -opensource -no-cups -no-largefile -optimized-qmake -nomake tools -no-pch -v -no-icu -no-openvg -sysroot /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -qt-pcre -no-xcb -no-sm -no-glib -no-libinput -no-mtdev -nomake examples

                                  Error Log:

                                  Entering directory `/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core/Release'
                                  [9/10383] ACTION make_core_generated: CSSPropertyNames_1dd3bbd1830ec3803de4b986e6e77be9
                                  FAILED: cd /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/core; python ../build/scripts/make_css_property_names.py css/CSSProperties.in --output_dir /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core/Release/gen/blink/core --gperf gperf
                                  Traceback (most recent call last):
                                  File "../build/scripts/make_css_property_names.py", line 238, in <module>
                                  in_generator.Maker(CSSPropertyNamesWriter).main(sys.argv)
                                  File "/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py", line 95, in main
                                  writer.write_files(options.output_dir)
                                  File "/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py", line 71, in write_files
                                  self._write_file_if_changed(output_dir, generator(), file_name)
                                  File "../build/scripts/make_css_property_names.py", line 233, in generate_implementation
                                  gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True)
                                  File "/usr/lib/python2.7/subprocess.py", line 711, in init
                                  errread, errwrite)
                                  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
                                  raise child_exception
                                  OSError: [Errno 2] No such file or directory
                                  [9/10383] ACTION make_core_generated: StylePropertyShorthand_1dd3bbd1830ec3803de4b986e6e77be9
                                  ninja: build stopped: subcommand failed.
                                  Makefile.gyp_run:923: recipe for target 'invoke_ninja' failed
                                  make[4]: *** [invoke_ninja] Error 1
                                  make[4]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core'
                                  Makefile:116: recipe for target 'sub-gyp_run-pro-make_first' failed
                                  make[3]: *** [sub-gyp_run-pro-make_first] Error 2
                                  make[3]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core'
                                  Makefile:49: recipe for target 'sub-core-make_first' failed
                                  make[2]: *** [sub-core-make_first] Error 2
                                  make[2]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src'
                                  Makefile:44: recipe for target 'sub-src-make_first' failed
                                  make[1]: *** [sub-src-make_first] Error 2
                                  make[1]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine'
                                  Makefile:859: recipe for target 'module-qtwebengine-make_first' failed
                                  make: *** [module-qtwebengine-make_first] Error 2

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

                                  @Biswajit_1984 said in Cross compile QT5.7 for ARM:

                                  qtwebengine

                                  if you don't need it you can disable it

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

                                  B 1 Reply Last reply
                                  1
                                  • jsulmJ jsulm

                                    @Biswajit_1984 said in Cross compile QT5.7 for ARM:

                                    qtwebengine

                                    if you don't need it you can disable it

                                    B Offline
                                    B Offline
                                    Biswajit_1984
                                    wrote on last edited by
                                    #17

                                    @jsulm Thanks a lot for your support.
                                    As per your suggestion ,I have disabled qtwebengine(-skip qtwebengine) and it got compiled properly.

                                    Regards,
                                    Biswajit

                                    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