ZC: 其实 主要是要安装 OpenGL,具体看"3"... ...
1、运行 "/opt/Qt5.7.0/Tools/QtCreator/bin/qtcreator" 或 "/opt/Qt5.7.0/Tools/QtCreator/bin/qtcreator.sh" 时,报错,信息如下:
[root@localhost bin]# ./qtcreator
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "". Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb. Reinstalling the application may fix this problem.
已放弃 (core dumped)
[root@localhost bin]#
1.3、http://www.cnblogs.com/trying/archive/2013/06/07/3123577.html
ZC: 文件"~/.bash_profile" 的最后一行,添加代码:"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Qt5.7.0/5.7/gcc_64/plugins/platforms",重启电脑,qt570的qtcreator还是报一样的错误...
使用"export LD_LIBRARY_PATH=/opt/Qt5.7.0/5.7/gcc_64/plugins/platforms",问题还是那样...
2、安装 devtoolset-1.1 (这一步做的事情,未能解决上面的问题...)
2.1、
[root@localhost ~]# wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -O /etc/yum.repos.d/devtools-1.1.repo
--2016-09-12 14:38:38-- http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
正在解析主机 people.centos.org... 50.28.24.115
正在连接 people.centos.org|50.28.24.115|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:https://people.centos.org/tru/devtools-1.1/devtools-1.1.repo [跟随至新的 URL]
--2016-09-12 14:38:39-- https://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
正在连接 people.centos.org|50.28.24.115|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:174 [application/x-troff-man]
正在保存至: “/etc/yum.repos.d/devtools-1.1.repo” 100%[==============================================================================================================================>] 174 --.-K/s in 0s 2016-09-12 14:38:41 (4.74 MB/s) - 已保存 “/etc/yum.repos.d/devtools-1.1.repo” [174/174]) [root@localhost ~]# yum install devtoolset-1.1
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: mirrors.163.com
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package devtoolset-1.1.noarch 0:1-13.el6 will be installed
--> Processing Dependency: devtoolset-1.1-gdb for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-gcc for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-valgrind for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-dwz for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-elfutils for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-binutils for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-systemtap for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-gcc-gfortran for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-oprofile for package: devtoolset-1.1-1-13.el6.noarch
--> Processing Dependency: devtoolset-1.1-gcc-c++ for package: devtoolset-1.1-1-13.el6.noarch
--> Running transaction check
---> Package devtoolset-1.1-binutils.x86_64 0:2.23.51.0.3-3.el6 will be installed
--> Processing Dependency: devtoolset-1.1-runtime for package: devtoolset-1.1-binutils-2.23.51.0.3-3.el6.x86_64
---> Package devtoolset-1.1-dwz.x86_64 0:0.7-1.el6 will be installed
---> Package devtoolset-1.1-elfutils.x86_64 0:0.154-6.el6 will be installed
--> Processing Dependency: devtoolset-1.1-elfutils-libs(x86-64) = 0.154-6.el6 for package: devtoolset-1.1-elfutils-0.154-6.el6.x86_64
--> Processing Dependency: devtoolset-1.1-elfutils-libelf(x86-64) = 0.154-6.el6 for package: devtoolset-1.1-elfutils-0.154-6.el6.x86_64
---> Package devtoolset-1.1-gcc.x86_64 0:4.7.2-5.el6 will be installed
---> Package devtoolset-1.1-gcc-c++.x86_64 0:4.7.2-5.el6 will be installed
--> Processing Dependency: devtoolset-1.1-libstdc++-devel = 4.7.2-5.el6 for package: devtoolset-1.1-gcc-c++-4.7.2-5.el6.x86_64
---> Package devtoolset-1.1-gcc-gfortran.x86_64 0:4.7.2-5.el6 will be installed
--> Processing Dependency: devtoolset-1.1-libquadmath-devel = 4.7.2-5.el6 for package: devtoolset-1.1-gcc-gfortran-4.7.2-5.el6.x86_64
---> Package devtoolset-1.1-gdb.x86_64 0:7.5.0.20120926-26.el6 will be installed
---> Package devtoolset-1.1-oprofile.x86_64 0:0.9.7-6.el6 will be installed
---> Package devtoolset-1.1-systemtap.x86_64 0:1.8-8.el6 will be installed
--> Processing Dependency: devtoolset-1.1-systemtap-client = 1.8-8.el6 for package: devtoolset-1.1-systemtap-1.8-8.el6.x86_64
--> Processing Dependency: devtoolset-1.1-systemtap-devel = 1.8-8.el6 for package: devtoolset-1.1-systemtap-1.8-8.el6.x86_64
---> Package devtoolset-1.1-valgrind.x86_64 1:3.8.1-3.2.el6 will be installed
--> Running transaction check
---> Package devtoolset-1.1-elfutils-libelf.x86_64 0:0.154-6.el6 will be installed
---> Package devtoolset-1.1-elfutils-libs.x86_64 0:0.154-6.el6 will be installed
---> Package devtoolset-1.1-libquadmath-devel.x86_64 0:4.7.2-5.el6 will be installed
---> Package devtoolset-1.1-libstdc++-devel.x86_64 0:4.7.2-5.el6 will be installed
---> Package devtoolset-1.1-runtime.noarch 0:1-13.el6 will be installed
---> Package devtoolset-1.1-systemtap-client.x86_64 0:1.8-8.el6 will be installed
--> Processing Dependency: devtoolset-1.1-systemtap-runtime = 1.8-8.el6 for package: devtoolset-1.1-systemtap-client-1.8-8.el6.x86_64
---> Package devtoolset-1.1-systemtap-devel.x86_64 0:1.8-8.el6 will be installed
--> Running transaction check
---> Package devtoolset-1.1-systemtap-runtime.x86_64 0:1.8-8.el6 will be installed
--> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
devtoolset-1.1 noarch 1-13.el6 testing-1.1-devtools-6 3.7 k
Installing for dependencies:
devtoolset-1.1-binutils x86_64 2.23.51.0.3-3.el6 testing-1.1-devtools-6 4.3 M
devtoolset-1.1-dwz x86_64 0.7-1.el6 testing-1.1-devtools-6 94 k
devtoolset-1.1-elfutils x86_64 0.154-6.el6 testing-1.1-devtools-6 305 k
devtoolset-1.1-elfutils-libelf x86_64 0.154-6.el6 testing-1.1-devtools-6 174 k
devtoolset-1.1-elfutils-libs x86_64 0.154-6.el6 testing-1.1-devtools-6 192 k
devtoolset-1.1-gcc x86_64 4.7.2-5.el6 testing-1.1-devtools-6 19 M
devtoolset-1.1-gcc-c++ x86_64 4.7.2-5.el6 testing-1.1-devtools-6 6.1 M
devtoolset-1.1-gcc-gfortran x86_64 4.7.2-5.el6 testing-1.1-devtools-6 6.1 M
devtoolset-1.1-gdb x86_64 7.5.0.20120926-26.el6 testing-1.1-devtools-6 2.1 M
devtoolset-1.1-libquadmath-devel x86_64 4.7.2-5.el6 testing-1.1-devtools-6 133 k
devtoolset-1.1-libstdc++-devel x86_64 4.7.2-5.el6 testing-1.1-devtools-6 1.8 M
devtoolset-1.1-oprofile x86_64 0.9.7-6.el6 testing-1.1-devtools-6 2.5 M
devtoolset-1.1-runtime noarch 1-13.el6 testing-1.1-devtools-6 1.0 M
devtoolset-1.1-systemtap x86_64 1.8-8.el6 testing-1.1-devtools-6 25 k
devtoolset-1.1-systemtap-client x86_64 1.8-8.el6 testing-1.1-devtools-6 2.4 M
devtoolset-1.1-systemtap-devel x86_64 1.8-8.el6 testing-1.1-devtools-6 1.2 M
devtoolset-1.1-systemtap-runtime x86_64 1.8-8.el6 testing-1.1-devtools-6 169 k
devtoolset-1.1-valgrind x86_64 1:3.8.1-3.2.el6 testing-1.1-devtools-6 38 M Transaction Summary
========================================================================================================================================================================
Install 19 Package(s) Total download size: 85 M
Installed size: 303 M
Is this ok [y/N]: y
Downloading Packages:
(1/19): devtoolset-1.1-1-13.el6.noarch.rpm | 3.7 kB 00:00
(2/19): devtoolset-1.1-binutils-2.23.51.0.3-3.el6.x86_64.rpm | 4.3 MB 04:38
(3/19): devtoolset-1.1-dwz-0.7-1.el6.x86_64.rpm | 94 kB 00:01
(4/19): devtoolset-1.1-elfutils-0.154-6.el6.x86_64.rpm | 305 kB 00:44
(5/19): devtoolset-1.1-elfutils-libelf-0.154-6.el6.x86_64.rpm | 174 kB 00:20
(6/19): devtoolset-1.1-elfutils-libs-0.154-6.el6.x86_64.rpm | 192 kB 00:25
(7/19): devtoolset-1.1-gcc-4.7.2-5.el6.x86_64.rpm | 19 MB 14:44
(8/19): devtoolset-1.1-gcc-c++-4.7.2-5.el6.x86_64.rpm | 6.1 MB 10:09
(9/19): devtoolset-1.1-gcc-gfortran-4.7.2-5.el6.x86_64.rpm | 6.1 MB 05:08
(10/19): devtoolset-1.1-gdb-7.5.0.20120926-26.el6.x86_64.rpm | 2.1 MB 02:11
(11/19): devtoolset-1.1-libquadmath-devel-4.7.2-5.el6.x86_64.rpm | 133 kB 00:10
(12/19): devtoolset-1.1-libstdc++-devel-4.7.2-5.el6.x86_64.rpm | 1.8 MB 00:43
(13/19): devtoolset-1.1-oprofile-0.9.7-6.el6.x86_64.rpm | 2.5 MB 00:17
(14/19): devtoolset-1.1-runtime-1-13.el6.noarch.rpm | 1.0 MB 00:09
(15/19): devtoolset-1.1-systemtap-1.8-8.el6.x86_64.rpm | 25 kB 00:00
(16/19): devtoolset-1.1-systemtap-client-1.8-8.el6.x86_64.rpm | 2.4 MB 00:26
(17/19): devtoolset-1.1-systemtap-devel-1.8-8.el6.x86_64.rpm | 1.2 MB 00:12
(18/19): devtoolset-1.1-systemtap-runtime-1.8-8.el6.x86_64.rpm | 169 kB 00:04
(19/19): devtoolset-1.1-valgrind-3.8.1-3.2.el6.x86_64.rpm | 38 MB 06:45
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 30 kB/s | 85 MB 48:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : devtoolset-1.1-runtime-1-13.el6.noarch 1/19
Installing : devtoolset-1.1-elfutils-libelf-0.154-6.el6.x86_64 2/19
Installing : devtoolset-1.1-gcc-4.7.2-5.el6.x86_64 3/19
Installing : devtoolset-1.1-elfutils-libs-0.154-6.el6.x86_64 4/19
Installing : devtoolset-1.1-systemtap-devel-1.8-8.el6.x86_64 5/19
Installing : devtoolset-1.1-elfutils-0.154-6.el6.x86_64 6/19
Installing : devtoolset-1.1-libquadmath-devel-4.7.2-5.el6.x86_64 7/19
Installing : devtoolset-1.1-gcc-gfortran-4.7.2-5.el6.x86_64 8/19
Installing : devtoolset-1.1-systemtap-runtime-1.8-8.el6.x86_64 9/19
Installing : devtoolset-1.1-systemtap-client-1.8-8.el6.x86_64 10/19
Installing : devtoolset-1.1-systemtap-1.8-8.el6.x86_64 11/19
Installing : devtoolset-1.1-dwz-0.7-1.el6.x86_64 12/19
Installing : devtoolset-1.1-gdb-7.5.0.20120926-26.el6.x86_64 13/19
Installing : devtoolset-1.1-oprofile-0.9.7-6.el6.x86_64 14/19
Installing : 1:devtoolset-1.1-valgrind-3.8.1-3.2.el6.x86_64 15/19
Installing : devtoolset-1.1-binutils-2.23.51.0.3-3.el6.x86_64 16/19
Installing : devtoolset-1.1-libstdc++-devel-4.7.2-5.el6.x86_64 17/19
Installing : devtoolset-1.1-gcc-c++-4.7.2-5.el6.x86_64 18/19
Installing : devtoolset-1.1-1-13.el6.noarch 19/19
Verifying : devtoolset-1.1-systemtap-devel-1.8-8.el6.x86_64 1/19
Verifying : devtoolset-1.1-gdb-7.5.0.20120926-26.el6.x86_64 2/19
Verifying : devtoolset-1.1-elfutils-0.154-6.el6.x86_64 3/19
Verifying : devtoolset-1.1-libstdc++-devel-4.7.2-5.el6.x86_64 4/19
Verifying : devtoolset-1.1-elfutils-libelf-0.154-6.el6.x86_64 5/19
Verifying : devtoolset-1.1-oprofile-0.9.7-6.el6.x86_64 6/19
Verifying : devtoolset-1.1-runtime-1-13.el6.noarch 7/19
Verifying : devtoolset-1.1-1-13.el6.noarch 8/19
Verifying : devtoolset-1.1-elfutils-libs-0.154-6.el6.x86_64 9/19
Verifying : devtoolset-1.1-systemtap-runtime-1.8-8.el6.x86_64 10/19
Verifying : devtoolset-1.1-systemtap-1.8-8.el6.x86_64 11/19
Verifying : devtoolset-1.1-gcc-gfortran-4.7.2-5.el6.x86_64 12/19
Verifying : devtoolset-1.1-dwz-0.7-1.el6.x86_64 13/19
Verifying : devtoolset-1.1-gcc-c++-4.7.2-5.el6.x86_64 14/19
Verifying : devtoolset-1.1-libquadmath-devel-4.7.2-5.el6.x86_64 15/19
Verifying : devtoolset-1.1-gcc-4.7.2-5.el6.x86_64 16/19
Verifying : 1:devtoolset-1.1-valgrind-3.8.1-3.2.el6.x86_64 17/19
Verifying : devtoolset-1.1-binutils-2.23.51.0.3-3.el6.x86_64 18/19
Verifying : devtoolset-1.1-systemtap-client-1.8-8.el6.x86_64 19/19 Installed:
devtoolset-1.1.noarch 0:1-13.el6 Dependency Installed:
devtoolset-1.1-binutils.x86_64 0:2.23.51.0.3-3.el6 devtoolset-1.1-dwz.x86_64 0:0.7-1.el6 devtoolset-1.1-elfutils.x86_64 0:0.154-6.el6
devtoolset-1.1-elfutils-libelf.x86_64 0:0.154-6.el6 devtoolset-1.1-elfutils-libs.x86_64 0:0.154-6.el6 devtoolset-1.1-gcc.x86_64 0:4.7.2-5.el6
devtoolset-1.1-gcc-c++.x86_64 0:4.7.2-5.el6 devtoolset-1.1-gcc-gfortran.x86_64 0:4.7.2-5.el6 devtoolset-1.1-gdb.x86_64 0:7.5.0.20120926-26.el6
devtoolset-1.1-libquadmath-devel.x86_64 0:4.7.2-5.el6 devtoolset-1.1-libstdc++-devel.x86_64 0:4.7.2-5.el6 devtoolset-1.1-oprofile.x86_64 0:0.9.7-6.el6
devtoolset-1.1-runtime.noarch 0:1-13.el6 devtoolset-1.1-systemtap.x86_64 0:1.8-8.el6 devtoolset-1.1-systemtap-client.x86_64 0:1.8-8.el6
devtoolset-1.1-systemtap-devel.x86_64 0:1.8-8.el6 devtoolset-1.1-systemtap-runtime.x86_64 0:1.8-8.el6 devtoolset-1.1-valgrind.x86_64 1:3.8.1-3.2.el6 Complete!
[root@localhost ~]#
2.2、
[root@localhost packages]# pwd
/var/cache/yum/x86_64/6/testing-1.1-devtools-6/packages
[root@localhost packages]# ls
devtoolset-1.1-1-13.el6.noarch.rpm
devtoolset-1.1-binutils-2.23.51.0.3-3.el6.x86_64.rpm
devtoolset-1.1-dwz-0.7-1.el6.x86_64.rpm
devtoolset-1.1-elfutils-0.154-6.el6.x86_64.rpm
devtoolset-1.1-elfutils-libelf-0.154-6.el6.x86_64.rpm
devtoolset-1.1-elfutils-libs-0.154-6.el6.x86_64.rpm
devtoolset-1.1-gcc-4.7.2-5.el6.x86_64.rpm
devtoolset-1.1-gcc-c++-4.7.2-5.el6.x86_64.rpm
devtoolset-1.1-gcc-gfortran-4.7.2-5.el6.x86_64.rpm
devtoolset-1.1-gdb-7.5.0.20120926-26.el6.x86_64.rpm
devtoolset-1.1-libquadmath-devel-4.7.2-5.el6.x86_64.rpm
devtoolset-1.1-libstdc++-devel-4.7.2-5.el6.x86_64.rpm
devtoolset-1.1-oprofile-0.9.7-6.el6.x86_64.rpm
devtoolset-1.1-runtime-1-13.el6.noarch.rpm
devtoolset-1.1-systemtap-1.8-8.el6.x86_64.rpm
devtoolset-1.1-systemtap-client-1.8-8.el6.x86_64.rpm
devtoolset-1.1-systemtap-devel-1.8-8.el6.x86_64.rpm
devtoolset-1.1-systemtap-runtime-1.8-8.el6.x86_64.rpm
devtoolset-1.1-valgrind-3.8.1-3.2.el6.x86_64.rpm
[root@localhost packages]#
2.3、devtools-1.1.repo 的内容为:
[testing-1.1-devtools-$releasever]
name=testing 1.1 devtools for CentOS $releasever
baseurl=http://people.centos.org/tru/devtools-1.1/$releasever/$basearch/RPMS
gpgcheck=0
2.4、
3、安装 OpenGL (这里的操作,解决了"1"中的问题)
3.1、搜到,说执行命令"ldd libqxcb.so" (ZC: 结合上面的报错信息,Qt的xcb就是libqxcb.so)
[root@localhost platforms]# pwd
/opt/Qt5.7.0/5.7/gcc_64/plugins/platforms
[root@localhost platforms]# ldd libqxcb.so
linux-vdso.so.1 => (0x00007fff58963000)
libQt5XcbQpa.so.5 => /opt/Qt5.7.0/5.7/gcc_64/plugins/platforms/./../../lib/libQt5XcbQpa.so.5 (0x00007fa7ca926000)
libX11-xcb.so.1 => /usr/lib64/libX11-xcb.so.1 (0x00007fa7ca70f000)
libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007fa7ca500000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007fa7ca2f8000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007fa7ca0db000)
libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fa7c9e9a000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fa7c9c7b000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007fa7c9a44000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fa7c97a7000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fa7c95a3000)
libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007fa7c939e000)
librt.so.1 => /lib64/librt.so.1 (0x00007fa7c9196000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fa7c8eb1000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007fa7c8ca6000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007fa7c8a93000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fa7c8756000)
libEGL.so.1 => not found
libQt5Gui.so.5 => /opt/Qt5.7.0/5.7/gcc_64/plugins/platforms/./../../lib/libQt5Gui.so.5 (0x00007fa7c7fad000)
libQt5DBus.so.5 => /opt/Qt5.7.0/5.7/gcc_64/plugins/platforms/./../../lib/libQt5DBus.so.5 (0x00007fa7c7d2c000)
libQt5Core.so.5 => /opt/Qt5.7.0/5.7/gcc_64/plugins/platforms/./../../lib/libQt5Core.so.5 (0x00007fa7c7610000)
libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007fa7c7387000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa7c716a000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fa7c6e62000)
libm.so.6 => /lib64/libm.so.6 (0x00007fa7c6bde000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa7c69c8000)
libc.so.6 => /lib64/libc.so.6 (0x00007fa7c6634000)
libEGL.so.1 => not found
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fa7c642f000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fa7c622c000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fa7c6004000)
/lib64/ld-linux-x86-64.so.2 (0x00000037bc600000)
libz.so.1 => /lib64/libz.so.1 (0x00007fa7c5ded000)
libicui18n.so.56 => /opt/Qt5.7.0/5.7/gcc_64/plugins/platforms/./../../lib/libicui18n.so.56 (0x00007fa7c5953000)
libicuuc.so.56 => /opt/Qt5.7.0/5.7/gcc_64/plugins/platforms/./../../lib/libicuuc.so.56 (0x00007fa7c559a000)
libicudata.so.56 => /opt/Qt5.7.0/5.7/gcc_64/plugins/platforms/./../../lib/libicudata.so.56 (0x00007fa7c3bb7000)
libglapi.so.0 => /usr/lib64/libglapi.so.0 (0x00007fa7c3989000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fa7c3769000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007fa7c3567000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007fa7c3361000)
libxcb-glx.so.0 => /usr/lib64/libxcb-glx.so.0 (0x00007fa7c3149000)
libxcb-dri2.so.0 => /usr/lib64/libxcb-dri2.so.0 (0x00007fa7c2f45000)
libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007fa7c2d40000)
libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007fa7c2b32000)
[root@localhost platforms]#
ZC: 发现 libqxcb.so的libEGL相关依赖项 缺失
3.2、(【CentOS 学习 (四) CentOS下 OpenGL安装及编程开发】) http://blog.csdn.net/wolf8sheep/article/details/20312723
ZC: 用到的操作:"yum list mesa*"、"yum install mesa*"
[root@localhost ~]# yum list mesa*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: mirrors.163.com
* updates: centos.ustc.edu.cn
Installed Packages
mesa-dri-drivers.x86_64 11.0.7-4.el6 @base
mesa-dri-filesystem.x86_64 9.0-0.7.el6 @anaconda-CentOS-201303020151.x86_64/6.4
mesa-dri1-drivers.x86_64 7.11-8.el6 @anaconda-CentOS-201303020151.x86_64/6.4
mesa-libGL.x86_64 11.0.7-4.el6 @base
mesa-libGL-devel.x86_64 11.0.7-4.el6 @base
mesa-libGLU.x86_64 9.0-0.7.el6 @anaconda-CentOS-201303020151.x86_64/6.4
mesa-private-llvm.x86_64 3.6.2-1.el6 @base
Available Packages
mesa-demos.x86_64 11.0.7-4.el6 base
mesa-dri-drivers.i686 11.0.7-4.el6 base
mesa-dri-filesystem.i686 11.0.7-4.el6 base
mesa-dri-filesystem.x86_64 11.0.7-4.el6 base
mesa-libEGL.i686 11.0.7-4.el6 base
mesa-libEGL.x86_64 11.0.7-4.el6 base
mesa-libEGL-devel.i686 11.0.7-4.el6 base
mesa-libEGL-devel.x86_64 11.0.7-4.el6 base
mesa-libGL.i686 11.0.7-4.el6 base
mesa-libGL-devel.i686 11.0.7-4.el6 base
mesa-libGLU.i686 11.0.7-4.el6 base
mesa-libGLU.x86_64 11.0.7-4.el6 base
mesa-libGLU-devel.i686 11.0.7-4.el6 base
mesa-libGLU-devel.x86_64 11.0.7-4.el6 base
mesa-libGLw.i686 6.5.1-10.el6 base
mesa-libGLw.x86_64 6.5.1-10.el6 base
mesa-libGLw-devel.i686 6.5.1-10.el6 base
mesa-libGLw-devel.x86_64 6.5.1-10.el6 base
mesa-libOSMesa.i686 11.0.7-4.el6 base
mesa-libOSMesa.x86_64 11.0.7-4.el6 base
mesa-libOSMesa-devel.i686 11.0.7-4.el6 base
mesa-libOSMesa-devel.x86_64 11.0.7-4.el6 base
mesa-libgbm.i686 11.0.7-4.el6 base
mesa-libgbm.x86_64 11.0.7-4.el6 base
mesa-libgbm-devel.i686 11.0.7-4.el6 base
mesa-libgbm-devel.x86_64 11.0.7-4.el6 base
mesa-libxatracker.i686 11.0.7-4.el6 base
mesa-libxatracker.x86_64 11.0.7-4.el6 base
mesa-libxatracker-devel.i686 11.0.7-4.el6 base
mesa-libxatracker-devel.x86_64 11.0.7-4.el6 base
mesa-private-llvm.i686 3.6.2-1.el6 base
mesa-private-llvm-devel.i686 3.6.2-1.el6 base
mesa-private-llvm-devel.x86_64 3.6.2-1.el6 base
[root@localhost ~]# yum install mesa*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: mirrors.163.com
* updates: centos.ustc.edu.cn
Setting up Install Process
Package mesa-private-llvm-3.6.2-1.el6.x86_64 already installed and latest version
Package mesa-dri-drivers-11.0.7-4.el6.x86_64 already installed and latest version
Package mesa-libGL-11.0.7-4.el6.x86_64 already installed and latest version
Package mesa-libGL-devel-11.0.7-4.el6.x86_64 already installed and latest version
Package mesa-dri1-drivers-7.11-8.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package mesa-demos.x86_64 0:11.0.7-4.el6 will be installed
--> Processing Dependency: libglut.so.3()(64bit) for package: mesa-demos-11.0.7-4.el6.x86_64
---> Package mesa-dri-filesystem.x86_64 0:9.0-0.7.el6 will be updated
---> Package mesa-dri-filesystem.x86_64 0:11.0.7-4.el6 will be an update
---> Package mesa-libEGL.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-libEGL-devel.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-libGLU.x86_64 0:9.0-0.7.el6 will be updated
---> Package mesa-libGLU.x86_64 0:11.0.7-4.el6 will be an update
---> Package mesa-libGLU-devel.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-libGLw.x86_64 0:6.5.1-10.el6 will be installed
---> Package mesa-libGLw-devel.x86_64 0:6.5.1-10.el6 will be installed
--> Processing Dependency: openmotif-devel for package: mesa-libGLw-devel-6.5.1-10.el6.x86_64
---> Package mesa-libOSMesa.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-libOSMesa-devel.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-libgbm.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-libgbm-devel.x86_64 0:11.0.7-4.el6 will be installed
--> Processing Dependency: pkgconfig(libudev) >= 147 for package: mesa-libgbm-devel-11.0.7-4.el6.x86_64
---> Package mesa-libxatracker.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-libxatracker-devel.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-private-llvm-devel.x86_64 0:3.6.2-1.el6 will be installed
--> Running transaction check
---> Package freeglut.x86_64 0:2.6.0-1.el6 will be installed
---> Package libudev-devel.x86_64 0:147-2.73.el6_8.2 will be installed
--> Processing Dependency: udev = 147-2.73.el6_8.2 for package: libudev-devel-147-2.73.el6_8.2.x86_64
--> Processing Dependency: libudev = 147-2.73.el6_8.2 for package: libudev-devel-147-2.73.el6_8.2.x86_64
---> Package openmotif-devel.x86_64 0:2.3.3-8.el6 will be installed
--> Processing Dependency: openmotif = 2.3.3-8.el6 for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Processing Dependency: libjpeg-devel for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Processing Dependency: libXt-devel for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Processing Dependency: libXp-devel for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Processing Dependency: libXmu-devel for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Processing Dependency: libXp.so.6()(64bit) for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Processing Dependency: libXm.so.4()(64bit) for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Processing Dependency: libUil.so.4()(64bit) for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Processing Dependency: libMrm.so.4()(64bit) for package: openmotif-devel-2.3.3-8.el6.x86_64
--> Running transaction check
---> Package libXmu-devel.x86_64 0:1.1.1-2.el6 will be installed
---> Package libXp.x86_64 0:1.0.2-2.1.el6 will be installed
---> Package libXp-devel.x86_64 0:1.0.2-2.1.el6 will be installed
---> Package libXt-devel.x86_64 0:1.1.4-6.1.el6 will be installed
--> Processing Dependency: libXt = 1.1.4-6.1.el6 for package: libXt-devel-1.1.4-6.1.el6.x86_64
---> Package libjpeg-turbo-devel.x86_64 0:1.2.1-3.el6_5 will be installed
--> Processing Dependency: libjpeg-turbo(x86-64) = 1.2.1-3.el6_5 for package: libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64
---> Package libudev.x86_64 0:147-2.46.el6 will be updated
--> Processing Dependency: libudev = 147-2.46.el6 for package: libgudev1-147-2.46.el6.x86_64
---> Package libudev.x86_64 0:147-2.73.el6_8.2 will be an update
---> Package openmotif.x86_64 0:2.3.3-8.el6 will be installed
---> Package udev.x86_64 0:147-2.46.el6 will be updated
---> Package udev.x86_64 0:147-2.73.el6_8.2 will be an update
--> Running transaction check
---> Package libXt.x86_64 0:1.1.3-1.el6 will be updated
---> Package libXt.x86_64 0:1.1.4-6.1.el6 will be an update
---> Package libgudev1.x86_64 0:147-2.46.el6 will be updated
---> Package libgudev1.x86_64 0:147-2.73.el6_8.2 will be an update
---> Package libjpeg-turbo.x86_64 0:1.2.1-1.el6 will be updated
---> Package libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 will be an update
--> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
mesa-demos x86_64 11.0.7-4.el6 base 2.8 M
mesa-libEGL x86_64 11.0.7-4.el6 base 57 k
mesa-libEGL-devel x86_64 11.0.7-4.el6 base 23 k
mesa-libGLU-devel x86_64 11.0.7-4.el6 base 83 k
mesa-libGLw x86_64 6.5.1-10.el6 base 14 k
mesa-libGLw-devel x86_64 6.5.1-10.el6 base 8.6 k
mesa-libOSMesa x86_64 11.0.7-4.el6 base 3.5 M
mesa-libOSMesa-devel x86_64 11.0.7-4.el6 base 12 k
mesa-libgbm x86_64 11.0.7-4.el6 base 34 k
mesa-libgbm-devel x86_64 11.0.7-4.el6 base 11 k
mesa-libxatracker x86_64 11.0.7-4.el6 base 535 k
mesa-libxatracker-devel x86_64 11.0.7-4.el6 base 12 k
mesa-private-llvm-devel x86_64 3.6.2-1.el6 base 1.4 M
Updating:
mesa-dri-filesystem x86_64 11.0.7-4.el6 base 17 k
mesa-libGLU x86_64 11.0.7-4.el6 base 198 k
Installing for dependencies:
freeglut x86_64 2.6.0-1.el6 base 171 k
libXmu-devel x86_64 1.1.1-2.el6 base 23 k
libXp x86_64 1.0.2-2.1.el6 base 29 k
libXp-devel x86_64 1.0.2-2.1.el6 base 18 k
libXt-devel x86_64 1.1.4-6.1.el6 base 454 k
libjpeg-turbo-devel x86_64 1.2.1-3.el6_5 base 96 k
libudev-devel x86_64 147-2.73.el6_8.2 updates 77 k
openmotif x86_64 2.3.3-8.el6 base 1.4 M
openmotif-devel x86_64 2.3.3-8.el6 base 2.6 M
Updating for dependencies:
libXt x86_64 1.1.4-6.1.el6 base 165 k
libgudev1 x86_64 147-2.73.el6_8.2 updates 65 k
libjpeg-turbo x86_64 1.2.1-3.el6_5 base 174 k
libudev x86_64 147-2.73.el6_8.2 updates 78 k
udev x86_64 147-2.73.el6_8.2 updates 358 k Transaction Summary
========================================================================================================================================================================
Install 22 Package(s)
Upgrade 7 Package(s) Total download size: 14 M
Is this ok [y/N]: y
Downloading Packages:
(1/29): freeglut-2.6.0-1.el6.x86_64.rpm | 171 kB 00:00
(2/29): libXmu-devel-1.1.1-2.el6.x86_64.rpm | 23 kB 00:00
(3/29): libXp-1.0.2-2.1.el6.x86_64.rpm | 29 kB 00:00
(4/29): libXp-devel-1.0.2-2.1.el6.x86_64.rpm | 18 kB 00:00
(5/29): libXt-1.1.4-6.1.el6.x86_64.rpm | 165 kB 00:00
(6/29): libXt-devel-1.1.4-6.1.el6.x86_64.rpm | 454 kB 00:00
(7/29): libgudev1-147-2.73.el6_8.2.x86_64.rpm | 65 kB 00:00
(8/29): libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm | 174 kB 00:00
(9/29): libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64.rpm | 96 kB 00:00
(10/29): libudev-147-2.73.el6_8.2.x86_64.rpm | 78 kB 00:00
(11/29): libudev-devel-147-2.73.el6_8.2.x86_64.rpm | 77 kB 00:00
(12/29): mesa-demos-11.0.7-4.el6.x86_64.rpm | 2.8 MB 00:00
(13/29): mesa-dri-filesystem-11.0.7-4.el6.x86_64.rpm | 17 kB 00:00
(14/29): mesa-libEGL-11.0.7-4.el6.x86_64.rpm | 57 kB 00:00
(15/29): mesa-libEGL-devel-11.0.7-4.el6.x86_64.rpm | 23 kB 00:00
(16/29): mesa-libGLU-11.0.7-4.el6.x86_64.rpm | 198 kB 00:00
(17/29): mesa-libGLU-devel-11.0.7-4.el6.x86_64.rpm | 83 kB 00:00
(18/29): mesa-libGLw-6.5.1-10.el6.x86_64.rpm | 14 kB 00:00
(19/29): mesa-libGLw-devel-6.5.1-10.el6.x86_64.rpm | 8.6 kB 00:00
(20/29): mesa-libOSMesa-11.0.7-4.el6.x86_64.rpm | 3.5 MB 00:00
(21/29): mesa-libOSMesa-devel-11.0.7-4.el6.x86_64.rpm | 12 kB 00:00
(22/29): mesa-libgbm-11.0.7-4.el6.x86_64.rpm | 34 kB 00:00
(23/29): mesa-libgbm-devel-11.0.7-4.el6.x86_64.rpm | 11 kB 00:00
(24/29): mesa-libxatracker-11.0.7-4.el6.x86_64.rpm | 535 kB 00:00
(25/29): mesa-libxatracker-devel-11.0.7-4.el6.x86_64.rpm | 12 kB 00:00
(26/29): mesa-private-llvm-devel-3.6.2-1.el6.x86_64.rpm | 1.4 MB 00:00
(27/29): openmotif-2.3.3-8.el6.x86_64.rpm | 1.4 MB 00:00
(28/29): openmotif-devel-2.3.3-8.el6.x86_64.rpm | 2.6 MB 00:00
(29/29): udev-147-2.73.el6_8.2.x86_64.rpm | 358 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.2 MB/s | 14 MB 00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libXt-1.1.4-6.1.el6.x86_64 1/36
Installing : libXp-1.0.2-2.1.el6.x86_64 2/36
Updating : libjpeg-turbo-1.2.1-3.el6_5.x86_64 3/36
Installing : libXt-devel-1.1.4-6.1.el6.x86_64 4/36
Updating : mesa-libGLU-11.0.7-4.el6.x86_64 5/36
Updating : libudev-147-2.73.el6_8.2.x86_64 6/36
Installing : mesa-libgbm-11.0.7-4.el6.x86_64 7/36
Installing : mesa-libEGL-11.0.7-4.el6.x86_64 8/36
Installing : libXmu-devel-1.1.1-2.el6.x86_64 9/36
Installing : openmotif-2.3.3-8.el6.x86_64 10/36
Installing : libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 11/36
Installing : libXp-devel-1.0.2-2.1.el6.x86_64 12/36
Installing : openmotif-devel-2.3.3-8.el6.x86_64 13/36
Installing : mesa-libGLw-6.5.1-10.el6.x86_64 14/36
Installing : mesa-libOSMesa-11.0.7-4.el6.x86_64 15/36
Installing : mesa-libxatracker-11.0.7-4.el6.x86_64 16/36
Installing : freeglut-2.6.0-1.el6.x86_64 17/36
Updating : udev-147-2.73.el6_8.2.x86_64 18/36
Installing : libudev-devel-147-2.73.el6_8.2.x86_64 19/36
Installing : mesa-libgbm-devel-11.0.7-4.el6.x86_64 20/36
Installing : mesa-demos-11.0.7-4.el6.x86_64 21/36
Installing : mesa-libxatracker-devel-11.0.7-4.el6.x86_64 22/36
Installing : mesa-libOSMesa-devel-11.0.7-4.el6.x86_64 23/36
Installing : mesa-libGLw-devel-6.5.1-10.el6.x86_64 24/36
Installing : mesa-libEGL-devel-11.0.7-4.el6.x86_64 25/36
Updating : libgudev1-147-2.73.el6_8.2.x86_64 26/36
Installing : mesa-libGLU-devel-11.0.7-4.el6.x86_64 27/36
Installing : mesa-private-llvm-devel-3.6.2-1.el6.x86_64 28/36
Updating : mesa-dri-filesystem-11.0.7-4.el6.x86_64 29/36
Cleanup : mesa-dri-filesystem-9.0-0.7.el6.x86_64 30/36
Cleanup : libgudev1-147-2.46.el6.x86_64 31/36
Cleanup : libudev-147-2.46.el6.x86_64 32/36
Cleanup : libjpeg-turbo-1.2.1-1.el6.x86_64 33/36
Cleanup : mesa-libGLU-9.0-0.7.el6.x86_64 34/36
Cleanup : libXt-1.1.3-1.el6.x86_64 35/36
Cleanup : udev-147-2.46.el6.x86_64 36/36
Verifying : mesa-libEGL-11.0.7-4.el6.x86_64 1/36
Verifying : udev-147-2.73.el6_8.2.x86_64 2/36
Verifying : libudev-devel-147-2.73.el6_8.2.x86_64 3/36
Verifying : libXt-devel-1.1.4-6.1.el6.x86_64 4/36
Verifying : openmotif-devel-2.3.3-8.el6.x86_64 5/36
Verifying : openmotif-2.3.3-8.el6.x86_64 6/36
Verifying : mesa-dri-filesystem-11.0.7-4.el6.x86_64 7/36
Verifying : libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 8/36
Verifying : mesa-libgbm-11.0.7-4.el6.x86_64 9/36
Verifying : libudev-147-2.73.el6_8.2.x86_64 10/36
Verifying : libXp-devel-1.0.2-2.1.el6.x86_64 11/36
Verifying : libXt-1.1.4-6.1.el6.x86_64 12/36
Verifying : freeglut-2.6.0-1.el6.x86_64 13/36
Verifying : mesa-demos-11.0.7-4.el6.x86_64 14/36
Verifying : mesa-libgbm-devel-11.0.7-4.el6.x86_64 15/36
Verifying : mesa-libGLU-11.0.7-4.el6.x86_64 16/36
Verifying : mesa-libxatracker-11.0.7-4.el6.x86_64 17/36
Verifying : mesa-libEGL-devel-11.0.7-4.el6.x86_64 18/36
Verifying : libXmu-devel-1.1.1-2.el6.x86_64 19/36
Verifying : mesa-libGLw-devel-6.5.1-10.el6.x86_64 20/36
Verifying : libjpeg-turbo-1.2.1-3.el6_5.x86_64 21/36
Verifying : mesa-libxatracker-devel-11.0.7-4.el6.x86_64 22/36
Verifying : mesa-libGLU-devel-11.0.7-4.el6.x86_64 23/36
Verifying : mesa-libOSMesa-devel-11.0.7-4.el6.x86_64 24/36
Verifying : mesa-private-llvm-devel-3.6.2-1.el6.x86_64 25/36
Verifying : mesa-libOSMesa-11.0.7-4.el6.x86_64 26/36
Verifying : libgudev1-147-2.73.el6_8.2.x86_64 27/36
Verifying : mesa-libGLw-6.5.1-10.el6.x86_64 28/36
Verifying : libXp-1.0.2-2.1.el6.x86_64 29/36
Verifying : libjpeg-turbo-1.2.1-1.el6.x86_64 30/36
Verifying : udev-147-2.46.el6.x86_64 31/36
Verifying : mesa-dri-filesystem-9.0-0.7.el6.x86_64 32/36
Verifying : libudev-147-2.46.el6.x86_64 33/36
Verifying : mesa-libGLU-9.0-0.7.el6.x86_64 34/36
Verifying : libgudev1-147-2.46.el6.x86_64 35/36
Verifying : libXt-1.1.3-1.el6.x86_64 36/36 Installed:
mesa-demos.x86_64 0:11.0.7-4.el6 mesa-libEGL.x86_64 0:11.0.7-4.el6 mesa-libEGL-devel.x86_64 0:11.0.7-4.el6
mesa-libGLU-devel.x86_64 0:11.0.7-4.el6 mesa-libGLw.x86_64 0:6.5.1-10.el6 mesa-libGLw-devel.x86_64 0:6.5.1-10.el6
mesa-libOSMesa.x86_64 0:11.0.7-4.el6 mesa-libOSMesa-devel.x86_64 0:11.0.7-4.el6 mesa-libgbm.x86_64 0:11.0.7-4.el6
mesa-libgbm-devel.x86_64 0:11.0.7-4.el6 mesa-libxatracker.x86_64 0:11.0.7-4.el6 mesa-libxatracker-devel.x86_64 0:11.0.7-4.el6
mesa-private-llvm-devel.x86_64 0:3.6.2-1.el6 Dependency Installed:
freeglut.x86_64 0:2.6.0-1.el6 libXmu-devel.x86_64 0:1.1.1-2.el6 libXp.x86_64 0:1.0.2-2.1.el6 libXp-devel.x86_64 0:1.0.2-2.1.el6
libXt-devel.x86_64 0:1.1.4-6.1.el6 libjpeg-turbo-devel.x86_64 0:1.2.1-3.el6_5 libudev-devel.x86_64 0:147-2.73.el6_8.2 openmotif.x86_64 0:2.3.3-8.el6
openmotif-devel.x86_64 0:2.3.3-8.el6 Updated:
mesa-dri-filesystem.x86_64 0:11.0.7-4.el6 mesa-libGLU.x86_64 0:11.0.7-4.el6 Dependency Updated:
libXt.x86_64 0:1.1.4-6.1.el6 libgudev1.x86_64 0:147-2.73.el6_8.2 libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 libudev.x86_64 0:147-2.73.el6_8.2
udev.x86_64 0:147-2.73.el6_8.2 Complete!
[root@localhost ~]#
3.3、现在,再执行 Qt5.7.0的 qtcreator 就OK了。
4、
5、