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. How to Crosscompile Qt 5.2.1 to Arm toolchain
Forum Updated to NodeBB v4.3 + New Features

How to Crosscompile Qt 5.2.1 to Arm toolchain

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 823 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.
  • R Offline
    R Offline
    RajkumarB
    wrote on last edited by
    #1

    Hi Qt Experts,

    I am new to Qt5.2.1 Cross compilation. I have cross compiled the QT 5.2.1 version for arm-linux-gnueabi. I have created the qt application also. when i run the Qt binary in the target board that time I got error like xcb could not find.

    root@dra7xx-evm:/opt# ./ITSDVRGUI
    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
    This application failed to start because it could not find or load the Qt platform plugin "xcb".

    Reinstalling the application may fix this problem.
    Aborted (core dumped).

    Is it any arguments required to run GUI ? Is it any document for my reference.
    Kindly suggest me.

    Thanks & Regards,
    RajKumar.

    jsulmJ 1 Reply Last reply
    0
    • R RajkumarB

      Hi Qt Experts,

      I am new to Qt5.2.1 Cross compilation. I have cross compiled the QT 5.2.1 version for arm-linux-gnueabi. I have created the qt application also. when i run the Qt binary in the target board that time I got error like xcb could not find.

      root@dra7xx-evm:/opt# ./ITSDVRGUI
      QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
      QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
      This application failed to start because it could not find or load the Qt platform plugin "xcb".

      Reinstalling the application may fix this problem.
      Aborted (core dumped).

      Is it any arguments required to run GUI ? Is it any document for my reference.
      Kindly suggest me.

      Thanks & Regards,
      RajKumar.

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

      @RajkumarB said in How to Crosscompile Qt 5.2.1 to Arm toolchain:

      This application failed to start because it could not find or load the Qt platform plugin "xcb".

      How do you deploy your app to the device? The error message tells you that the xcb plug-in is missing.

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

      1 Reply Last reply
      1
      • R Offline
        R Offline
        RajkumarB
        wrote on last edited by
        #3

        Hi Jsulm,

        Thanks for your reply.

        I have copied the Qt Application binary , Qt configured folder to the device.
        And Export the lib path then run application binary.
        But I didnot enable the xcb in the qt configuration. Qt configured like
        ./configure -prefix /usr/local/QtTDA521 -xplatform linux-arm-mygnueabi-g++ -opensource -confirm-license -qreal float -no-xinerama -no-nis -opengl -no-cups -xcursor -no-xfixes -no-xrandr -no-xrender -no-sm -no-xinerama -no-xshape -v -nomake examples

        Regards,
        Rajkumar

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RajkumarB
          wrote on last edited by
          #4

          Hi,

          Is anyone faced this issue?
          how to solve it?

          Regards,
          Rajkumar

          lukeglukeL 1 Reply Last reply
          0
          • R RajkumarB

            Hi,

            Is anyone faced this issue?
            how to solve it?

            Regards,
            Rajkumar

            lukeglukeL Offline
            lukeglukeL Offline
            lukegluke
            wrote on last edited by lukegluke
            #5

            @RajkumarB

            I didn't face this issue, I've never used xcb, but did you copied cross compiled plugins/platforms dir to device?
            It contains libqxcb.so that app miss apparently.

            to set the path to platforms plugin use QT_QPA_PLATFORM_PLUGIN_PATH:

            QT_QPA_PLATFORM_PLUGIN_PATH=/opt/device/Qt-5.9.5/plugins/platforms
            

            Also there are such options that I use for eglfs
            QT_QPA_PLATFORM=eglfs
            QT_QPA_EGLFS_INTEGRATION=none
            Maybe xcb has something similar.

            Also to load a plugin on app startup use "plugin" opt:

            ./app -plugin tslib
            
            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