ddd调试Qtopia程序不能启动Xlib的错误处理
时间:2009-08-21 来源:Junping1982
使用DDD调试Qtopia程序, 运行时弹出如下错误:
[root@localhost ~]# cd /home/bruce/demo/hellobruce
[root@localhost hellobruce]# sh hellobruce.sh
[root@localhost hellobruce]# Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
解决办法:
在shell中执行以下指令:
xhost local:root
http://blog.chinaunix.net/u/25477/showart_251546.html
有更祥细的说明
[root@localhost ~]# cd /home/bruce/demo/hellobruce
[root@localhost hellobruce]# sh hellobruce.sh
[root@localhost hellobruce]# Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
解决办法:
在shell中执行以下指令:
xhost local:root
http://blog.chinaunix.net/u/25477/showart_251546.html
有更祥细的说明
相关阅读 更多 +
排行榜 更多 +