Facing multiple problems running Qt application.
I have cross-compiled simple Qt application for Pandaboard. While running application on Pandaboard application doesn't run and gives following error.
EGLFS: Failed to open /dev/fb0
libEGL warning: DRI2: failed to authenticate
Cannot open keyboard input device '/dev/input/event1': Permission denied
Failed to open keyboard
Cannot open keyboard input device '/dev/input/event2': Permission denied
Failed to open keyboard
Cannot open mouse input device '/dev/input/event2': Permission denied
Failed to open mouse
EGL Error : Could not create the egl surface: error = 0x3003
Aborted (core dumped)
Configuration Details:
- Ubuntu 12.04 LTS pre-built image downloaded from Ubuntu website.
- No TI OMAP4 addons installed.
- Qt5 v5.3.1 cross-compiled on Host system and libraries available on Target (Pandaboard)
- Qt5 is cross compiled with QPAs eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.
Observations:
- Errors marked bold are resolved by running with root privileges, however errors in normal texts are not gone even after running with root privileges.
- Running application with "sudo ./SampleUI -platform xcb" shows up the UI, however error "libEGL warning: DRI2: failed to authenticate" still persist.
- Tried Qt patch at this link, but same error and seems to be applicable to Qt5.1 and there is some difference in code with v5.3.1.
-
I suspected this could be because TI OMAP4 add-ons are not installed, so went ahead and installed addons, but it uninstalled ubuntu-desktop and after restart there is no UI available, just a console.
Questions:
- How to resolved EGL error?
- How to get back UI after installing OMAP4 addons.?