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. Qml aplication not show when run in xinit
Forum Updated to NodeBB v4.3 + New Features

Qml aplication not show when run in xinit

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 414 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.
  • P Offline
    P Offline
    poucz
    wrote on last edited by
    #1

    Hello,
    I have embedded device base on debian. I used widget aplication. It starts throught xinit (.xinitrc).

    Now I rewrite aplication to QML. When I run xinit, nothing is shown - black screen.
    Console output is normal (no error).

    I installed xfce4 only for testing. I run xfce4 and than run my aplication in xterm, everything is correct displayed.

    There is some diference when run widget or qml aplication by xinit? Need I set some env variable?

    Thank for help!

    1 Reply Last reply
    0
    • P Offline
      P Offline
      poucz
      wrote on last edited by
      #2

      Ok, when you use xinit (X11) you used xcb platform driver.
      In documentation there is:

      XCB
      Note: On some devices there is no EGL and OpenGL support available under X because the EGL implementation is not compatible with Xlib. In this case the XCB plugin is built without EGL support, meaning that Qt Quick 2 or other OpenGL-based applications does not work with this platform plugin. It can still be used however to run software-rendered applications (based on QWidget for example).

      When I used linuxfb plugin, it works coretly.

      When I tryed eglfs:

      ./test_program -platform eglfs
       void DEBUG_init() 	  Debug disable
      libEGL warning: DRI3: xcb_connect failed
      libEGL warning: DRI2: xcb_connect failed
      libEGL warning: DRI2: xcb_connect failed
      Could not initialize egl display
      Neúspěšně ukončen (SIGABRT)
      

      I have all opengl library (I hope).
      What does it mean?

      Thanks.

      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