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. Broken applications after Qt Cross-compilation for Raspberry Pi
Forum Updated to NodeBB v4.3 + New Features

Broken applications after Qt Cross-compilation for Raspberry Pi

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 879 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.
  • L Offline
    L Offline
    Lashc
    wrote on last edited by
    #1

    I cross-compiled Qt 5.10.1 for my Raspberry Pi 3 B+, but I've noticed that some applications no longer open from the applications menu. For instance, when I try to open VLC Media Player, I see a tab for it appear and immediately disappear. Another application that won't open is qpdfview. When I attempt to open it from the terminal, I get the following message:

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

    I can execute my own Qt applications using xcb, so I'm not sure what's going on here. I'm wondering if something is wrong with EGL and GLES libraries. When I run the configure script for Qt, it says "no" to "EGL on X11".

    jsulmJ 1 Reply Last reply
    0
    • L Lashc

      I cross-compiled Qt 5.10.1 for my Raspberry Pi 3 B+, but I've noticed that some applications no longer open from the applications menu. For instance, when I try to open VLC Media Player, I see a tab for it appear and immediately disappear. Another application that won't open is qpdfview. When I attempt to open it from the terminal, I get the following message:

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

      I can execute my own Qt applications using xcb, so I'm not sure what's going on here. I'm wondering if something is wrong with EGL and GLES libraries. When I run the configure script for Qt, it says "no" to "EGL on X11".

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

      @Lashc Where did you install your cross compiled Qt on Raspberry Pi?
      It sounds like you overwritten your existing Qt there, or installed the cross compiled Qt in some location which is searched by default by the system when looking for libraries.

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

      L 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Lashc Where did you install your cross compiled Qt on Raspberry Pi?
        It sounds like you overwritten your existing Qt there, or installed the cross compiled Qt in some location which is searched by default by the system when looking for libraries.

        L Offline
        L Offline
        Lashc
        wrote on last edited by
        #3

        @jsulm I installed it in /usr/local/qt5pi. I did run the following commands, which may have caused the issue: “echo /usr/local/qt5pi/lib | sudo tee /etc/ld.so.conf.d/qt5pi.conf” and “sudo ldconfig” (following a tutorial).

        jsulmJ 1 Reply Last reply
        0
        • L Lashc

          @jsulm I installed it in /usr/local/qt5pi. I did run the following commands, which may have caused the issue: “echo /usr/local/qt5pi/lib | sudo tee /etc/ld.so.conf.d/qt5pi.conf” and “sudo ldconfig” (following a tutorial).

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

          @Lashc Is there a reason why you did that?

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

          L 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Lashc Is there a reason why you did that?

            L Offline
            L Offline
            Lashc
            wrote on last edited by
            #5

            @jsulm No, not particularly. I’ve mainly been following some tutorials, and that’s where those steps came from. Is the installation folder fine? Do I need to omit those two commands from my cross-compilation process? I don’t need to replace the existing Qt files on my Raspberry Pi. I just need them for the particular Qt application I’m developing. I don’t care if existing applications use the Qt version that comes with Raspbian.

            jsulmJ 1 Reply Last reply
            0
            • L Lashc

              @jsulm No, not particularly. I’ve mainly been following some tutorials, and that’s where those steps came from. Is the installation folder fine? Do I need to omit those two commands from my cross-compilation process? I don’t need to replace the existing Qt files on my Raspberry Pi. I just need them for the particular Qt application I’m developing. I don’t care if existing applications use the Qt version that comes with Raspbian.

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

              @Lashc The folder is fine. You should not do this "hack".

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

              L 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Lashc The folder is fine. You should not do this "hack".

                L Offline
                L Offline
                Lashc
                wrote on last edited by
                #7

                @jsulm I flashed my Raspberry Pi’s SD card and cross-compiled Qt again for it without the “hack”, and everything works fine! Thanks for finding that mistake!

                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