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. [SOLVED] Is there any non-xcb dependent example ?
QtWS25 Last Chance

[SOLVED] Is there any non-xcb dependent example ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
xample
9 Posts 3 Posters 2.4k 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
    ranshalit
    wrote on last edited by ranshalit
    #1

    Hello,

    I have successfully cross compiled the Qt-5.3.2
    I have configured it with -no-xbc -opengl
    But on trying any of the examples it always gives the following error:

    " could not find or load the Qt platform plugin "xcb"
    Is there any example which does not depends on xcb ?

    Regards,
    Ran

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lazar Urosevic
      wrote on last edited by
      #2

      Hello @ranshalit

      When you exclude xcb plugin, you don't have display platform to show your gui application, so that is the reason you are getting that error :)

      Without xcb plugin you can only display non-gui applications.

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

        Hi,
        Thanks,
        But I am not sure I understand.
        I am using embedded platform which supposed to use opengl/sgx/linuxfb inetrafces.
        Why it doesn't use it ?

        Regards,
        Ran

        L 1 Reply Last reply
        0
        • R ranshalit

          Hi,
          Thanks,
          But I am not sure I understand.
          I am using embedded platform which supposed to use opengl/sgx/linuxfb inetrafces.
          Why it doesn't use it ?

          Regards,
          Ran

          L Offline
          L Offline
          Lazar Urosevic
          wrote on last edited by
          #4

          @ranshalit

          It uses xcb by default, if you want to use the other available platforms you need to pass it as argument when starting your application.

          Read more here http://doc.qt.io/qt-5/embedded-linux.html

          R 1 Reply Last reply
          0
          • L Lazar Urosevic

            @ranshalit

            It uses xcb by default, if you want to use the other available platforms you need to pass it as argument when starting your application.

            Read more here http://doc.qt.io/qt-5/embedded-linux.html

            R Offline
            R Offline
            ranshalit
            wrote on last edited by
            #5

            @Lazar-Urosevic
            Hi Lazar,

            You are right.
            I needed to run with "-platform eglfs"

            But now I still get a new error:
            root@dm814x:/examples/widgets/painting/basicdrawing# ./basicdrawing -platform eglfs
            QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
            QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
            This application failed to start because it could not find or load the Qt platform plugin "eglfs".

            After cross compile I copied the installed folder to target. The libGLES*.so is in /plugins/platform root folder.
            Is it supposed to find it there or should I add that folder to LD_LIBRARY_PATH ?
            I also tried to copy all that folder contents into /lib in target but it still complains:

            Any ideas ?

            Regards,
            Ran

            L 1 Reply Last reply
            0
            • R ranshalit

              @Lazar-Urosevic
              Hi Lazar,

              You are right.
              I needed to run with "-platform eglfs"

              But now I still get a new error:
              root@dm814x:/examples/widgets/painting/basicdrawing# ./basicdrawing -platform eglfs
              QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
              QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
              This application failed to start because it could not find or load the Qt platform plugin "eglfs".

              After cross compile I copied the installed folder to target. The libGLES*.so is in /plugins/platform root folder.
              Is it supposed to find it there or should I add that folder to LD_LIBRARY_PATH ?
              I also tried to copy all that folder contents into /lib in target but it still complains:

              Any ideas ?

              Regards,
              Ran

              L Offline
              L Offline
              Lazar Urosevic
              wrote on last edited by
              #6

              @ranshalit Why are you using EGLFS when you have possibility to use xcb plugin and Linux X11 windowing system? Read this carefully http://doc.qt.io/qt-5/linux-requirements.html.

              R 1 Reply Last reply
              0
              • L Lazar Urosevic

                @ranshalit Why are you using EGLFS when you have possibility to use xcb plugin and Linux X11 windowing system? Read this carefully http://doc.qt.io/qt-5/linux-requirements.html.

                R Offline
                R Offline
                ranshalit
                wrote on last edited by
                #7

                @Lazar-Urosevic
                Right. Thank you very much

                L 1 Reply Last reply
                0
                • R ranshalit

                  @Lazar-Urosevic
                  Right. Thank you very much

                  L Offline
                  L Offline
                  Lazar Urosevic
                  wrote on last edited by
                  #8

                  @ranshalit You're welcome. :-)

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

                    Hi,

                    On an unrelated note, there's not need to change the title anymore, just use the "Topic Tool" button to mark the thread as solved :)

                    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

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved