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. Qt-5.5.1 cross-compile for ARM

Qt-5.5.1 cross-compile for ARM

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
18 Posts 6 Posters 6.3k 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.
  • D Offline
    D Offline
    DivyaMuthyala
    wrote on last edited by
    #1

    Hi,

    I am using arm based device i.e., IMX6 device, Now my requirement is to cross compile qt-5.5.1 for device.
    Can you please guide me how to configure qt-5.5.1 for my device.
    Thanks in advance.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hakan AFAT
      wrote on last edited by
      #2

      Download the commercial version of Qt aka Boot2Qt or https://www.ics.com/blog/configuring-qt-creator-raspberry-pi https://wiki.qt.io/RaspberryPi2EGLFS this links may help you to get an idea

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DivyaMuthyala
        wrote on last edited by
        #3

        Hi Hakan AFAT,

        Thank you for your support, Now I am able to configure Qt-5.5.1.

        But Now I am getting issue during make, I am posting error what i am getting.
        Please go through it and give me a solution.

        In file included from ../../include/QtCore/qbytearray.h:1:0,
        from ../../include/QtCore/../../src/corelib/tools/qstring.h:42,
        from ../../include/QtCore/qstring.h:1,
        from ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:38,
        from ../../include/QtCore/qcoreapplication.h:1,
        from kernel/qt_gui_pch.h:53:
        ../../include/QtCore/../../src/corelib/tools/qbytearray.h: In member function 'void QPdfEnginePrivate::xprintf(const char
        , ...)':
        ../../include/QtCore/../../src/corelib/tools/qbytearray.h:98:19: note: the mangling of 'va_list' has changed in GCC 4.4
        make[3]: *** [.obj/qpdf.o] Error 1
        make[3]: Leaving directory /u01/Qt_src/qt-everywhere-enterprise-src-5.5.0/qtbase/src/gui' make[2]: *** [sub-gui-make_first] Error 2 make[2]: Leaving directory /u01/Qt_src/qt-everywhere-enterprise-src-5.5.0/qtbase/src'
        make[1]: *** [sub-src-make_first] Error 2
        make[1]: Leaving directory `/u01/Qt_src/qt-everywhere-enterprise-src-5.5.0/qtbase'
        make: *** [module-qtbase-make_first] Error 2
        *

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          What version of gcc are you using to build Qt ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DivyaMuthyala
            wrote on last edited by
            #5

            Hi,

            We are using gcc-4.6.2 version.

            A 1 Reply Last reply
            0
            • D DivyaMuthyala

              Hi,

              We are using gcc-4.6.2 version.

              A Offline
              A Offline
              ambershark
              wrote on last edited by
              #6

              @DivyaMuthyala It looks like you have a dirty Qt environment. Some objects were compiled with a different gcc.

              I would do a make clean and then reconfigure and remake.

              My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DivyaMuthyala
                wrote on last edited by
                #7

                Hi,

                I have done what you have said, still I am facing same issue.

                A 1 Reply Last reply
                0
                • D DivyaMuthyala

                  Hi,

                  I have done what you have said, still I am facing same issue.

                  A Offline
                  A Offline
                  ambershark
                  wrote on last edited by
                  #8

                  @DivyaMuthyala Can you post the full build log or at least the part with the errors... That mangling thing is usually just a warning.

                  My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DivyaMuthyala
                    wrote on last edited by
                    #9

                    Hi,

                    Now I am facing with following error:

                    /u01/rootfs/usr/lib/libxcb-xkb.a: could not read symbols: File format not recognized
                    co
                    llect2: ld returned 1 exit status
                    make[6]: *** [../../../../lib/libQt5XcbQpa.so.5.5.0] Error 1
                    make[6]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms/xcb' make[5]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2 make[5]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms/xcb'
                    make[4]: *** [sub-xcb-make_first] Error 2
                    make[4]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms' make[3]: *** [sub-platforms-make_first] Error 2 make[3]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins'
                    make[2]: *** [sub-plugins-make_first] Error 2
                    make[2]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase'
                    make: *** [module-qtbase-make_first] Error 2
                    ******

                    I am configuring by using following:

                    *./configure -commercial -confirm-license -opengl es2 -device linux-imx6-g++ -device-option CROSS_COMPILE=/U02/tools/DOP/imx6/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi- -sysroot /u01/rootfs -no-gcc-sysroot -I/u01/rootfs/usr/include --hostprefix=/usr/local/Qt-5.5.0

                    A jsulmJ A 3 Replies Last reply
                    0
                    • D DivyaMuthyala

                      Hi,

                      Now I am facing with following error:

                      /u01/rootfs/usr/lib/libxcb-xkb.a: could not read symbols: File format not recognized
                      co
                      llect2: ld returned 1 exit status
                      make[6]: *** [../../../../lib/libQt5XcbQpa.so.5.5.0] Error 1
                      make[6]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms/xcb' make[5]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2 make[5]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms/xcb'
                      make[4]: *** [sub-xcb-make_first] Error 2
                      make[4]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms' make[3]: *** [sub-platforms-make_first] Error 2 make[3]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins'
                      make[2]: *** [sub-plugins-make_first] Error 2
                      make[2]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase'
                      make: *** [module-qtbase-make_first] Error 2
                      ******

                      I am configuring by using following:

                      *./configure -commercial -confirm-license -opengl es2 -device linux-imx6-g++ -device-option CROSS_COMPILE=/U02/tools/DOP/imx6/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi- -sysroot /u01/rootfs -no-gcc-sysroot -I/u01/rootfs/usr/include --hostprefix=/usr/local/Qt-5.5.0

                      A Offline
                      A Offline
                      Andrey Shmelew
                      wrote on last edited by
                      #10

                      @DivyaMuthyala

                      what arm device do u use?

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        DivyaMuthyala
                        wrote on last edited by
                        #11

                        Hi,

                        We are using linux based IMx6 SoloLite board.

                        1 Reply Last reply
                        0
                        • D DivyaMuthyala

                          Hi,

                          Now I am facing with following error:

                          /u01/rootfs/usr/lib/libxcb-xkb.a: could not read symbols: File format not recognized
                          co
                          llect2: ld returned 1 exit status
                          make[6]: *** [../../../../lib/libQt5XcbQpa.so.5.5.0] Error 1
                          make[6]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms/xcb' make[5]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2 make[5]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms/xcb'
                          make[4]: *** [sub-xcb-make_first] Error 2
                          make[4]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms' make[3]: *** [sub-platforms-make_first] Error 2 make[3]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins'
                          make[2]: *** [sub-plugins-make_first] Error 2
                          make[2]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase'
                          make: *** [module-qtbase-make_first] Error 2
                          ******

                          I am configuring by using following:

                          *./configure -commercial -confirm-license -opengl es2 -device linux-imx6-g++ -device-option CROSS_COMPILE=/U02/tools/DOP/imx6/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi- -sysroot /u01/rootfs -no-gcc-sysroot -I/u01/rootfs/usr/include --hostprefix=/usr/local/Qt-5.5.0

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

                          @DivyaMuthyala What does "file /u01/rootfs/usr/lib/libxcb-xkb.a" say?

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

                          1 Reply Last reply
                          1
                          • D DivyaMuthyala

                            Hi,

                            Now I am facing with following error:

                            /u01/rootfs/usr/lib/libxcb-xkb.a: could not read symbols: File format not recognized
                            co
                            llect2: ld returned 1 exit status
                            make[6]: *** [../../../../lib/libQt5XcbQpa.so.5.5.0] Error 1
                            make[6]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms/xcb' make[5]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2 make[5]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms/xcb'
                            make[4]: *** [sub-xcb-make_first] Error 2
                            make[4]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins/platforms' make[3]: *** [sub-platforms-make_first] Error 2 make[3]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src/plugins'
                            make[2]: *** [sub-plugins-make_first] Error 2
                            make[2]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory /u01/Qt_src/forImx6/qt-everywhere-enterprise-src-5.5.0/qtbase'
                            make: *** [module-qtbase-make_first] Error 2
                            ******

                            I am configuring by using following:

                            *./configure -commercial -confirm-license -opengl es2 -device linux-imx6-g++ -device-option CROSS_COMPILE=/U02/tools/DOP/imx6/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi- -sysroot /u01/rootfs -no-gcc-sysroot -I/u01/rootfs/usr/include --hostprefix=/usr/local/Qt-5.5.0

                            A Offline
                            A Offline
                            ambershark
                            wrote on last edited by
                            #13

                            @DivyaMuthyala You are definitely mixing binaries. I was suspicious before but I'm positive now with that last error.

                            I'll wait and see what your response with the output of the file command is.

                            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                            1 Reply Last reply
                            1
                            • D Offline
                              D Offline
                              DivyaMuthyala
                              wrote on last edited by
                              #14

                              Hi,

                              Thanks for your support.

                              Now I am able to configure successfully,but now I am facing issue during compilation.
                              When I am trying to compile sample application its throwing a following error.

                              "fatal error: QApplication: No such file or directory"

                              I am adding in .pro file QT +=widgets, but still I am facing issue.
                              Can you please help me.
                              Thanks in advance.

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                Did you re-run qmake after adding that ?

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  DivyaMuthyala
                                  wrote on last edited by
                                  #16

                                  Yes,I have run qmake and make

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    Are you sure you did install your custom Qt properly ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      DivyaMuthyala
                                      wrote on last edited by
                                      #18

                                      Hi,

                                      I have missed some library soft linking .
                                      I Configured it again and its working fine now.

                                      Thankyou for your support.

                                      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