[SOLVED] Qt on Slackware Linux
-
first one without root:
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/i965_dri.so
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/swrast_dri.sowith root:
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/i965_dri.so
libGL: Can't open configuration file /root/.drirc: No such file or directory.I also tried the second one.
Whats the reason, to redirect the output to /dev/null ^^ -
About /dev/null.
It will hide your error messages and you will not worry about it. :-)Some GNU/Linuxes have a "video" group and only members of that group are allowed to use opengl.
Could you check if Slackware has such restriction. If so then add your self to that video group re-login and try to run your app again. -
i just added my self with $usermod -aG video <username>
-> in /etc/group its says video:x:18:but same error still appears.
-
do you see the same error if you run "glxinfo":http://dri.freedesktop.org/wiki/glxinfo/ or glxgears
@
glxinfo
glxgears
@ -
under normal user: for both
libGL error: failed to load driver: i965
libGL error: Try again with LIBGL_DEBUG=verbose for more details.under root:
its seems to run without errors.
-
I'll try it on monday when i'm on my workstation pc again :)
-
bash-4.2$ id
uid=1000(username) gid=100(users) groups=100(users),18(video)bash-4.2$ ls -l /dev/dri
total 0
crw-rw---- 1 root video 226, 0 Mar 24 08:32 card0
crw-rw---- 1 root video 226, 64 Mar 24 08:32 controlD64 -
I'm running out of ideas :-)
Maybe this last oneDo you have Mesa libraries installed?
What ldd on your app shows?
@
ldd yourapp | grep libGL
@And one more.
When you start qtcreator does it show the same error as your app?
If you build any Qt examples and start them do they show the same error? -
bash-4.2$ ldd myapp | grep libGL
libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f79fab6b000)somehow i get no error anymore, lol.
(i started the same project)I also started an OpenGL example. no errors.
:)idk what happened.
-
thank you ! :)