原文:centos7无GUI运行自动化脚本和运行qt程序报错qt.qpa.screen: QXcbConnection: Could not connect to display Could not connect to any X display解决方法

安装Xvfb 可解决qt报错 yum update yum install Xvfb yum install libXfont yum install xorg x fonts 执行 xvfb run 程序即可。 安装chrome vi etc yum.repos.d google chrome.repo 写入: google chrome name google chromebaseurl ht ...

2020-04-10 19:38 0 4541 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM