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 build qmake with -qt-xcb?
QtWS25 Last Chance

How to build qmake with -qt-xcb?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 4 Posters 5.1k 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.
  • S Offline
    S Offline
    Seunghee
    wrote on last edited by
    #1

    hi all.

    first my english very poor so understand plz lol

    btw,

    i have problem on developing a program for embedded linux device(ARM/wayland)

    1. qmake build for ARM Compiler
      

    ./configure -prefix /home/seunghee/Qt5.5.1/qte-arm
    -arch arm -xplatform linux-arm-gnueabi-g++
    -device-option CROSS_COMPILE=arm-none-linux-gnueabi-
    -opensource -confirm-license -opengl es2 -nomake tests -nomake examples -no-pch

    1. build success test app. with ARM compiler
      
    2. failed run on device
      

    root@mx6q:~/test# systemctl start layer-management-wayland.service
    root@mx6q:~/test# LayerManagerControl create layer 6003 800 480
    root@mx6q:~/test# LayerManagerControl set screen 1 render order 6003
    root@mx6q:~/test# export XDG_RUNTIME_DIR=/tmp
    root@mx6q:~/test# LayerManagerControl set surface 103 visibility 1
    root@mx6q:~/test# ./untitled -platfrom wayland
    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

    1. qmake build for ARM Compiler with -qt-xcb option
      

    ./configure -prefix /home/seunghee/Qt5.5.1/qte-arm
    -arch arm -xplatform linux-arm-gnueabi-g++
    -device-option CROSS_COMPILE=arm-none-linux-gnueabi-
    -opensource -confirm-license -opengl es2 -nomake tests -nomake examples -no-pch –qt-xcb

    1. failed configuration test
      

    Running configuration tests...
    The test for linking against libxcb failed!
    You might need to install dependency packages for libxcb.
    See src/plugins/platforms/xcb/README.

    1. installed all packages on README but failed configuration test again.
      
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Since you want to use wayland, did you build the QtWayland module ?

      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
      • jeremy_kJ Offline
        jeremy_kJ Offline
        jeremy_k
        wrote on last edited by
        #3

        @Seunghee said in How to build qmake with -qt-xcb?:

        root@mx6q:~/test# ./untitled -platfrom wayland
        This application failed to start because it could not find or load the Qt platform plugin "xcb".

        -platfrom should be -platform.

        There may be other issues, such as the lack of a QWayland build. SGaist alluded to.

        ./untitled -platform ? should report a list of available QPA plugins along the lines of:

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

        Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.

        Reinstalling the application may fix this problem.

        Asking a question about code? http://eel.is/iso-c++/testcase/

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Seunghee
          wrote on last edited by
          #4

          thanks for reply guys.

          @SGaist, @jeremy_k i didn't build QtWayland module. i'll biuld and than try again.
          btw, if i build Qtwayland module, till need xcb?

          jeremy_kJ 1 Reply Last reply
          0
          • S Seunghee

            thanks for reply guys.

            @SGaist, @jeremy_k i didn't build QtWayland module. i'll biuld and than try again.
            btw, if i build Qtwayland module, till need xcb?

            jeremy_kJ Offline
            jeremy_kJ Offline
            jeremy_k
            wrote on last edited by
            #5

            It's unlikely that both wayland and xcb support will be required in the same system.

            Asking a question about code? http://eel.is/iso-c++/testcase/

            small_birdS 1 Reply Last reply
            0
            • jeremy_kJ jeremy_k

              It's unlikely that both wayland and xcb support will be required in the same system.

              small_birdS Offline
              small_birdS Offline
              small_bird
              wrote on last edited by small_bird
              #6

              @jeremy_k Hi ! Have you solved the problem ?

              The test for linking against libxcb failed!
              You might need to install dependency packages for libxcb.
              See src/plugins/platforms/xcb/README.

              I came across the same problem ! Could you offer me help ? Thank you in advance.

              And another question: how to paste code in correct format like you ?

              jeremy_kJ 1 Reply Last reply
              0
              • small_birdS small_bird

                @jeremy_k Hi ! Have you solved the problem ?

                The test for linking against libxcb failed!
                You might need to install dependency packages for libxcb.
                See src/plugins/platforms/xcb/README.

                I came across the same problem ! Could you offer me help ? Thank you in advance.

                And another question: how to paste code in correct format like you ?

                jeremy_kJ Offline
                jeremy_kJ Offline
                jeremy_k
                wrote on last edited by jeremy_k
                #7

                @small_bird said in How to build qmake with -qt-xcb?:

                @jeremy_k Hi ! Have you solved the problem ?

                I think this should be @Seunghee

                The test for linking against libxcb failed!
                You might need to install dependency packages for libxcb.
                See src/plugins/platforms/xcb/README.

                That's a good reference for XCB users, located in the Qt base source.

                I came across the same problem ! Could you offer me help ? Thank you in advance.

                And another question: how to paste code in correct format like you ?

                There's a "COMPOSE ?" button in the upper right of the text entry field with a link to formatting rules at http://commonmark.org/help/

                Asking a question about code? http://eel.is/iso-c++/testcase/

                small_birdS 1 Reply Last reply
                0
                • jeremy_kJ jeremy_k

                  @small_bird said in How to build qmake with -qt-xcb?:

                  @jeremy_k Hi ! Have you solved the problem ?

                  I think this should be @Seunghee

                  The test for linking against libxcb failed!
                  You might need to install dependency packages for libxcb.
                  See src/plugins/platforms/xcb/README.

                  That's a good reference for XCB users, located in the Qt base source.

                  I came across the same problem ! Could you offer me help ? Thank you in advance.

                  And another question: how to paste code in correct format like you ?

                  There's a "COMPOSE ?" button in the upper right of the text entry field with a link to formatting rules at http://commonmark.org/help/

                  small_birdS Offline
                  small_birdS Offline
                  small_bird
                  wrote on last edited by
                  #8

                  @jeremy_k
                  Thanks for your reply !

                  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