正文
在腾讯云上搭建QT开发环境,下载安装文件后运行安装包时遇到一系列问题。
./qt-opensource-linux-x64-5.9.9.run: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
yum -y install fontconfig-devel
./qt-opensource-linux-x64-5.9.9.run: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
yum install libX11
yum install libGL mesa-libGL-devel.x86_64
yum install -y mesa-libGLES-devel.x86_64 mesa-dri-drivers
yum install -y xorg-x11-xauth xorg-x11-utils xorg-x11-fonts-*
yum -y install libxkbcommon-x11-devel
yum -y install wqy-zenhei-fonts*
这样安装这些库后就搭建好了。
wget下载安装包后直接运行
vi /etc/profile
增加qt环境变量
export PATH=$PATH:/opt/Qt5.9.9/5.9.9/gcc_64/bin
添加后 source /etc/profile
qmake -v
ok!
版权声明:本文为weixin_45381959原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。