Problem with QtQuick process in arm with mali.(EGL error)
-
wrote on 17 Jun 2021, 03:59 last edited by
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. -
wrote on 21 Jun 2021, 03:10 last edited by
Can someone help me solve this problem?
I would be very grateful. -
Hi and welcome to devnet,
What exactly do you need to modify ?
How are you starting your application ? -
wrote on 22 Jun 2021, 01:43 last edited by
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. : ( -
wrote on 22 Jun 2021, 02:09 last edited by
Well , I need to start my application with sudo in "user" account.
-
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 ?
-
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 ?
3/9