Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] How to launch an application with EGLFS ?
Forum Updated to NodeBB v4.3 + New Features

[solved] How to launch an application with EGLFS ?

Scheduled Pinned Locked Moved General and Desktop
9 Posts 5 Posters 6.7k Views 3 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.
  • T Offline
    T Offline
    TGuo
    wrote on last edited by
    #1

    I am developing a demo without X11 window under Ubuntu.
    My application is developed under QMainWindow which derived from QWidget. I plan to run it under EGLFS to prepare it for the embedded system in the future.
    Firstly, I used ./app -platform eglfs in my desktop Ubuntu. I had the access to /dev/fb0. Unfortunately, I got an output in the console like:
    QEGLPlatformContext::init: eglError: 3004, this: 0x9919730

    My OS is Ubuntu 12.04, and my Qt is 5.3.2. I installed EGL on my computer.

    1. Did I miss some other installations for eglfs? The application works well with -platform xcb. Xcb is only a plugin and works for X Window. I guess eglfs working for Framebuffer and it does not need other installation, does it?

    2. Should I do some further updating on my demo source code in Qt? For example, I need to use other window class instead of QWidget or QMainWindow? I guess at the advanced window level, Qt will keep the windows management abstraction, just to stay away from the window vender. Am I correct?

    3. The other points I can think about are the envir variables. I did configure with -no-xcb -eglfs -opengl es2. And then ran "make" and "make install". Is there some other step to configure the environment for Qt to support eglfs?

    This is the first step for my embedded application. If I can run it with eglfs in desktop, I think I can launch it in the embedded platform after cross-compiling. Anyway, QWS is already dropped in Qt5, I can only think about the light window framework like eglfs.

    Any help, I appreciate in advance!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TGuo
      wrote on last edited by
      #2

      So cold here.
      Any way, I found the result already.

      1. I installed eglfs in my embedded. Now it works well. For some reason, it does not work in my desktop os.
      2. Not necessary. Just cross-compile it and give the argument for application.
      3. No, just be sure to install eglfs.
      A 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        On desktop, since you already have X11 running, starting an application using the eglfs plugin won't work. You would need to have a similar setup as your embedded system i.e. no graphic server running.

        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
        • T Offline
          T Offline
          TGuo
          wrote on last edited by
          #4

          To SGaist:
          Thanks a lot.
          You are right. Since the X11 is running, I reboot into console mode. Although I did not launch it successfully with eglfs (I guess it is from I failed to configure with -eglfs and -no-xcb), but I DID run it up with linuxfb option!
          Thanks again!

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

            You're welcome !

            If everything is fine now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            SpyerGameS 1 Reply Last reply
            0
            • T TGuo

              So cold here.
              Any way, I found the result already.

              1. I installed eglfs in my embedded. Now it works well. For some reason, it does not work in my desktop os.
              2. Not necessary. Just cross-compile it and give the argument for application.
              3. No, just be sure to install eglfs.
              A Offline
              A Offline
              Asha
              wrote on last edited by
              #6

              @TGuo

              Hi,

              how do i install eglfs on my device?

              P 1 Reply Last reply
              0
              • T TGuo

                To SGaist:
                Thanks a lot.
                You are right. Since the X11 is running, I reboot into console mode. Although I did not launch it successfully with eglfs (I guess it is from I failed to configure with -eglfs and -no-xcb), but I DID run it up with linuxfb option!
                Thanks again!

                A Offline
                A Offline
                Asha
                wrote on last edited by
                #7

                @TGuo How do you run with linuxfb..steps please,

                I am getting error,

                could not find the qt platform plugin "eglfs" in ""

                And how to check the setup of embedded..

                1 Reply Last reply
                0
                • SGaistS SGaist

                  You're welcome !

                  If everything is fine now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                  SpyerGameS Offline
                  SpyerGameS Offline
                  SpyerGame
                  wrote on last edited by SpyerGame
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • A Asha

                    @TGuo

                    Hi,

                    how do i install eglfs on my device?

                    P Offline
                    P Offline
                    padames
                    wrote on last edited by
                    #9

                    @Asha, was this ever answered? Maybe it was privately?

                    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