Problem with QtQuick process in arm with mali.(EGL error)
-
Hi, all
I'm getting confused about my QtQuick program.
I'm using Qt5.12.8 in armhf and LXDE desktop.- if I log in as user, and excute it , the gui displays successfully, but i need to change some system file, so i need to excute it with sudo. then i get some error.
Unable to set double buffer mode!(Invalid argument) … … EGL Error: Could not create the egl surface : error = 0x3003
- If i log in desktop as root, everything is ok. But clearly, it is not a suitable solution for me.
Is everyone konwn this problem?
Thanks. -
Hi and welcome to devnet,
What exactly do you need to modify ?
How are you starting your application ? -
hi, SGaist. Thanks for your reply.
First, login into the Desktop with 'user', then, just start my application normally, it's worked and show me the ui. But when i use sudo to start it, the app can not start successfully. And I got some error like this:Unable to set double buffer mode!(Invalid argument) … … EGL Error: Could not create the egl surface : error = 0x3003
If I login into Desktop with 'root', then start it. Everything is ok, but it not a good way for my work.
May some environment variables are not set when i start it with sudo? I feel too weak for this problem. : ( -
By default root does not have access to the X server through sudo. You have to explicitly enable that.
However this raises the question as to why do you need to run your GUI with root access ?
-
Which files do you need to modify ?