Remote debugging error on raspberry "can't open /dev/mem: Permission denied" (sudo..)
-
Hello to all,
in the past I got very good support here. Thanks!
Now I have a problem running a application.
can't open /dev/mem: Permission denied
I think there is only a little missing.
How can I run an application as root (sudo ...)?
This is my configuration:
Qt Creator 4.5.0
Based on Qt 5.10.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
Built on Dec 4 2017 04:11:21 -
Hi @K-Str
I‘m not to familiar with Linux, but this problem I remember.The issue is, that QtCreator, that you use for debugging?, needs to run with sudo right, because the creator starts the debugger and inherits the permissions of QtCreator.
-
@K-Str said in Remote debugging error on raspberry "can't open /dev/mem: Permission denied" (sudo..):
How can I run an application as root (sudo ...)?
sudo qtcreator
-
@K-Str
If @jsulm'ssudo qtcreator
works for you, great.However, although I've never done remote debugging or RPi anything, I would have thought since your post is entitled Remote debugging that your problem & error message come from the remote/server side, not the local/client side of the debugging process? In which case you need to address your permission problem where it's happening on the RPi, not on the client side...?