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. No eglfs or linuxfb on Beaglebone Black
Forum Updated to NodeBB v4.3 + New Features

No eglfs or linuxfb on Beaglebone Black

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 1.3k Views 1 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.
  • K Offline
    K Offline
    Ketank16
    wrote on last edited by
    #1

    So, I successfully compiled Qt for Beaglebone Black and I specified no eglfs in the configure options as per many guides here on Qt forum.

    So, when I run my project over SSH, I get following error.

    qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in "/home/debian/Qt5ForBBB/plugins/platforms"
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: linuxfb (from /home/debian/Qt5ForBBB/plugins/platforms), minimal (from /home/debian/Qt5ForBBB/plugins/platforms), offscreen (from /home/debian/Qt5ForBBB/plugins/platforms), vnc (from /home/debian/Qt5ForBBB/plugins/platforms).
    
    Aborted
    

    If I specify -platform linuxfb while running, I get another big error.

    Unable to figure out framebuffer device. Specify it manually.
    linuxfb: Failed to initialize screen
    Device discovery cannot open device "/dev/input/event0"
    Device discovery cannot open device "/dev/input/event0"
    Device discovery cannot open device "/dev/input/event0"
    no screens available, assuming 24-bit color
    QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
    Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
    QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
    Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
    QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
    Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
    QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
    Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
    QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
    Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
    Cannot create window: no screens available
    Aborted
    

    There is no fb device in /dev directory of beaglebone, so I cannot specify it in the command itself.
    Any leads in this topic would be greatly appreciated as I haven't ever worked on Qt before.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • K Offline
      K Offline
      Ketank16
      wrote on last edited by
      #3

      Thanks, I solved it by exporting QPA_PLATFORM_PATH.

      1 Reply Last reply
      1
      • K Ketank16

        So, I successfully compiled Qt for Beaglebone Black and I specified no eglfs in the configure options as per many guides here on Qt forum.

        So, when I run my project over SSH, I get following error.

        qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in "/home/debian/Qt5ForBBB/plugins/platforms"
        This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
        
        Available platform plugins are: linuxfb (from /home/debian/Qt5ForBBB/plugins/platforms), minimal (from /home/debian/Qt5ForBBB/plugins/platforms), offscreen (from /home/debian/Qt5ForBBB/plugins/platforms), vnc (from /home/debian/Qt5ForBBB/plugins/platforms).
        
        Aborted
        

        If I specify -platform linuxfb while running, I get another big error.

        Unable to figure out framebuffer device. Specify it manually.
        linuxfb: Failed to initialize screen
        Device discovery cannot open device "/dev/input/event0"
        Device discovery cannot open device "/dev/input/event0"
        Device discovery cannot open device "/dev/input/event0"
        no screens available, assuming 24-bit color
        QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
        Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
        QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
        Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
        QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
        Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
        QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
        Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
        QFontDatabase: Cannot find font directory /home/ketan/Qt5ForBBB/lib/fonts.
        Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
        Cannot create window: no screens available
        Aborted
        

        There is no fb device in /dev directory of beaglebone, so I cannot specify it in the command itself.
        Any leads in this topic would be greatly appreciated as I haven't ever worked on Qt before.

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #2

        @ketank16 said in No eglfs or linuxfb on Beaglebone Black:

        There is no fb device in /dev directory of beaglebone, so I cannot specify it in the command itself.

        It looks like you need to be able to provide a fb device in your board before willing Qt to use it.
        Have you already asked in Beaglebone forum(s) about having fb device(s) in the board?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Ketank16
          wrote on last edited by
          #3

          Thanks, I solved it by exporting QPA_PLATFORM_PATH.

          1 Reply Last reply
          1

          • Login

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