• 5425阅读
  • 0回复

[提问]运行错误:failed to get osd data! The display perhaps is not open! [复制链接]

上一主题 下一主题
离线songxizg
 

只看楼主 倒序阅读 楼主  发表于: 2012-08-22
新写了一个test程序。运行后出现一下错误

# ./arm_test -qws                              
                  

failed to get osd data! The display perhaps is not open!          
QScreenLinuxFb::connect: Operation not permitted                  
Error opening framebuffer device /dev/fb0                          
LinuxFb: driver cannot connect  


环境变量配置
export LD_LIBRARY_PATH=/mnt/arm_test:$LD_LIBRARY_PATH
export QT_QWS_FONTDIR=/mnt/arm_test/fonts
export QTDIR=/mnt/arm_test
export QTEDIR=$QTDIR
export QWS_DISPLAY=LinuxFb:/dev/fb0
export QWS_DISPLAY="LinuxFb:mmWidth720:mmHeight272:0"

这里很奇怪

# cat /dev/fb0  
会出现一下打印。                                                  
failed to get osd data! The display perhaps is not open!          
cat: can't open '/dev/fb0': Operation not permitted  

请问哪位大神能帮忙看看。不胜感激啊

快速回复
限100 字节
 
上一个 下一个