Linux下的OpenGL初试
[further@fedora12 ~]$ yum list mesa*
Loaded plugins: presto, refresh-packagekit
updates/metalink | 5.4 kB 00:00
updates | 4.4 kB 00:00
^Cupdates/primary_db 2% [ ] 0.0 B/s | 82 kB 82986722:34 ETA
Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.
updates/primary_db | 3.1 MB 00:36
Installed Packages
mesa-dri-drivers.i686 7.6-0.13.fc12 @anaconda-InstallationRepo-200911081854.i386
mesa-libGL.i686 7.6-0.13.fc12 @anaconda-InstallationRepo-200911081854.i386
mesa-libGL-devel.i686 7.6-0.13.fc12 @anaconda-InstallationRepo-200911081854.i386
mesa-libGLU.i686 7.6-0.13.fc12 @anaconda-InstallationRepo-200911081854.i386
mesa-libGLU-devel.i686
7.6-0.13.fc12 @anaconda-InstallationRepo-200911081854.i386
Available Packages
mesa-demos.i686 7.7-3.fc12 updates
mesa-dri-drivers.i686 7.7-3.fc12 updates
mesa-dri-drivers-experimental.i686
7.7-3.fc12 updates
mesa-libGL.i686 7.7-3.fc12 updates
mesa-libGL-devel.i686 7.7-3.fc12 updates
mesa-libGLU.i686 7.7-3.fc12 updates
mesa-libGLU-devel.i686
7.7-3.fc12 updates
mesa-libGLw.i686 6.5.1-8.fc12 fedora
mesa-libGLw-devel.i686
6.5.1-8.fc12 fedora
mesa-libOSMesa.i686 7.7-3.fc12 updates
mesa-libOSMesa-devel.i686
7.7-3.fc12 updates
[further@fedora12 ~]$ yum install mesa*
Loaded plugins: presto, refresh-packagekit
You need to be root to perform this command.
[further@fedora12 ~]$ su
Password:
[root@fedora12 further]# yum install mesa*
Loaded plugins: presto, refresh-packagekit
updates/metalink | 5.4 kB 00:02
updates | 4.4 kB 00:00
updates/primary_db | 3.1 MB 13:07
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mesa-demos.i686 0:7.7-3.fc12 set to be updated
--> Processing Dependency: libglut.so.3 for package: mesa-demos-7.7-3.fc12.i686
---> Package mesa-dri-drivers.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-dri-drivers-experimental.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libGL.i686 0:7.7-3.fc12 set to be updated
--> Processing Dependency: libdrm >= 2.4.17-1 for package: mesa-libGL-7.7-3.fc12.i686
---> Package mesa-libGL-devel.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libGLU.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libGLU-devel.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libGLw.i686 0:6.5.1-8.fc12 set to be updated
---> Package mesa-libGLw-devel.i686 0:6.5.1-8.fc12 set to be updated
--> Processing Dependency: lesstif-devel for package: mesa-libGLw-devel-6.5.1-8.fc12.i686
---> Package mesa-libOSMesa.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libOSMesa-devel.i686 0:7.7-3.fc12 set to be updated
--> Running transaction check
---> Package freeglut.i686 0:2.6.0-1.fc12 set to be updated
---> Package lesstif-devel.i686 0:0.95.2-1.fc12 set to be updated
--> Processing Dependency: lesstif = 0.95.2-1.fc12 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libXm.so.2 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libXp-devel for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libDtPrint.so.1 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libUil.so.2 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libMrm.so.2 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: imake for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libdrm = 2.4.15-4.fc12 for package: libdrm-devel-2.4.15-4.fc12.i686
---> Package libdrm.i686 0:2.4.17-1.fc12 set to be updated
--> Running transaction check
---> Package imake.i686 0:1.0.2-11.fc12 set to be updated
---> Package lesstif.i686 0:0.95.2-1.fc12 set to be updated
--> Processing Dependency: libXp.so.6 for package: lesstif-0.95.2-1.fc12.i686
---> Package libXp-devel.i686 0:1.0.0-15.fc12 set to be updated
---> Package libdrm-devel.i686 0:2.4.17-1.fc12 set to be updated
--> Running transaction check
---> Package libXp.i686 0:1.0.0-15.fc12 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
mesa-demos i686 7.7-3.fc12 updates 1.9 M
mesa-dri-drivers-experimental i686 7.7-3.fc12 updates 154 k
mesa-libGLw i686 6.5.1-8.fc12 fedora 13 k
mesa-libGLw-devel i686 6.5.1-8.fc12 fedora 8.3 k
mesa-libOSMesa i686 7.7-3.fc12 updates 2.1 M
mesa-libOSMesa-devel i686 7.7-3.fc12 updates 37 k
Updating:
mesa-dri-drivers i686 7.7-3.fc12 updates 1.7 M
mesa-libGL i686 7.7-3.fc12 updates 163 k
mesa-libGL-devel i686 7.7-3.fc12 updates 478 k
mesa-libGLU i686 7.7-3.fc12 updates 186 k
mesa-libGLU-devel i686 7.7-3.fc12 updates 109 k
Installing for dependencies:
freeglut i686 2.6.0-1.fc12 updates 166 k
imake i686 1.0.2-11.fc12 fedora 261 k
lesstif i686 0.95.2-1.fc12 fedora 599 k
lesstif-devel i686 0.95.2-1.fc12 fedora 419 k
libXp i686 1.0.0-15.fc12 fedora 22 k
libXp-devel i686 1.0.0-15.fc12 fedora 16 k
Updating for dependencies:
libdrm i686 2.4.17-1.fc12 updates 61 k
libdrm-devel i686 2.4.17-1.fc12 updates 71 k
Transaction Summary
=============================================================================================================================================================
Install 12 Package(s)
Upgrade 7 Package(s)
Total download size: 8.3 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta | 497 kB 03:12
fedora/prestodelta | 1.3 kB 00:00
Processing delta metadata
Download delta size: 1.1 M
(1/7): libdrm-2.4.15-4.fc12_2.4.17-1.fc12.i686.drpm | 36 kB 00:06
(2/7): libdrm-devel-2.4.15-4.fc12_2.4.17-1.fc12.i686.drpm | 19 kB 00:10
(3/7): mesa-dri-drivers-7.6-0.13.fc12_7.7-3.fc12.i686.drpm | 748 kB 03:18
(4/7): mesa-libGL-7.6-0.13.fc12_7.7-3.fc12.i686.drpm | 66 kB 00:17
(5/7): mesa-libGL-devel-7.6-0.13.fc12_7.7-3.fc12.i686.drpm | 108 kB 00:19
(6/7): mesa-libGLU-7.6-0.13.fc12_7.7-3.fc12.i686.drpm | 64 kB 00:37
(7/7): mesa-libGLU-devel-7.6-0.13.fc12_7.7-3.fc12.i686.drpm (96%) 12% [====== ] 0.0 B/s | 5.2 kB --:-- ETA
(7/7): mesa-libGLU-devel-7.6-0.13.fc12_7.7-3.fc12.i686.drpm (96%) 12% [====== ] 0.0 B/s | 5.2 kB --:-- ETA
^C[root@fedora12 further]# 6-0.13.fc12_7.7-3.fc12.i686.drpm (96%) 12% [====== ] 0.0 B/s | 5.2 kB --:-- ETA
[root@fedora12 further]# yum install mesa*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mesa-demos.i686 0:7.7-3.fc12 set to be updated
--> Processing Dependency: libglut.so.3 for package: mesa-demos-7.7-3.fc12.i686
---> Package mesa-dri-drivers.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-dri-drivers-experimental.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libGL.i686 0:7.7-3.fc12 set to be updated
--> Processing Dependency: libdrm >= 2.4.17-1 for package: mesa-libGL-7.7-3.fc12.i686
---> Package mesa-libGL-devel.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libGLU.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libGLU-devel.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libGLw.i686 0:6.5.1-8.fc12 set to be updated
---> Package mesa-libGLw-devel.i686 0:6.5.1-8.fc12 set to be updated
--> Processing Dependency: lesstif-devel for package: mesa-libGLw-devel-6.5.1-8.fc12.i686
---> Package mesa-libOSMesa.i686 0:7.7-3.fc12 set to be updated
---> Package mesa-libOSMesa-devel.i686 0:7.7-3.fc12 set to be updated
--> Running transaction check
---> Package freeglut.i686 0:2.6.0-1.fc12 set to be updated
---> Package lesstif-devel.i686 0:0.95.2-1.fc12 set to be updated
--> Processing Dependency: lesstif = 0.95.2-1.fc12 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libXm.so.2 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libXp-devel for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libDtPrint.so.1 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libUil.so.2 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libMrm.so.2 for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: imake for package: lesstif-devel-0.95.2-1.fc12.i686
--> Processing Dependency: libdrm = 2.4.15-4.fc12 for package: libdrm-devel-2.4.15-4.fc12.i686
---> Package libdrm.i686 0:2.4.17-1.fc12 set to be updated
--> Running transaction check
---> Package imake.i686 0:1.0.2-11.fc12 set to be updated
---> Package lesstif.i686 0:0.95.2-1.fc12 set to be updated
--> Processing Dependency: libXp.so.6 for package: lesstif-0.95.2-1.fc12.i686
---> Package libXp-devel.i686 0:1.0.0-15.fc12 set to be updated
---> Package libdrm-devel.i686 0:2.4.17-1.fc12 set to be updated
--> Running transaction check
---> Package libXp.i686 0:1.0.0-15.fc12 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
mesa-demos i686 7.7-3.fc12 updates 1.9 M
mesa-dri-drivers-experimental i686 7.7-3.fc12 updates 154 k
mesa-libGLw i686 6.5.1-8.fc12 fedora 13 k
mesa-libGLw-devel i686 6.5.1-8.fc12 fedora 8.3 k
mesa-libOSMesa i686 7.7-3.fc12 updates 2.1 M
mesa-libOSMesa-devel i686 7.7-3.fc12 updates 37 k
Updating:
mesa-dri-drivers i686 7.7-3.fc12 updates 1.7 M
mesa-libGL i686 7.7-3.fc12 updates 163 k
mesa-libGL-devel i686 7.7-3.fc12 updates 478 k
mesa-libGLU i686 7.7-3.fc12 updates 186 k
mesa-libGLU-devel i686 7.7-3.fc12 updates 109 k
Installing for dependencies:
freeglut i686 2.6.0-1.fc12 updates 166 k
imake i686 1.0.2-11.fc12 fedora 261 k
lesstif i686 0.95.2-1.fc12 fedora 599 k
lesstif-devel i686 0.95.2-1.fc12 fedora 419 k
libXp i686 1.0.0-15.fc12 fedora 22 k
libXp-devel i686 1.0.0-15.fc12 fedora 16 k
Updating for dependencies:
libdrm i686 2.4.17-1.fc12 updates 61 k
libdrm-devel i686 2.4.17-1.fc12 updates 71 k
Transaction Summary
=============================================================================================================================================================
Install 12 Package(s)
Upgrade 7 Package(s)
Total size: 8.3 M
Total download size: 5.7 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Download delta size: 43 k
mesa-libGLU-devel-7.6-0.13.fc12_7.7-3.fc12.i686.drpm | 43 kB 00:10
Finishing rebuild of rpms, from deltarpms
<delta rebuild> | 109 kB 00:01
Presto reduced the update size by 61% (from 109 k to 43 k).
Package(s) data still to download: 5.6 M
(1/12): freeglut-2.6.0-1.fc12.i686.rpm | 166 kB 01:11
(2/12): imake-1.0.2-11.fc12.i686.rpm | 261 kB 00:03
(3/12): lesstif-0.95.2-1.fc12.i686.rpm | 599 kB 00:03
(4/12): lesstif-devel-0.95.2-1.fc12.i686.rpm | 419 kB 00:02
(5/12): libXp-1.0.0-15.fc12.i686.rpm | 22 kB 00:00
(6/12): libXp-devel-1.0.0-15.fc12.i686.rpm | 16 kB 00:00
(7/12): mesa-demos-7.7-3.fc12.i686.rpm (38%) 39% [===================- ] 0.0 B/s | 752 kB 4427968:33 ETA
(7/12): mesa-demos-7.7-3.fc12.i686.rpm (38%) 39% [=================== ] 0.0 B/s | 752 kB 394528796:50 ETA
^C[root@fedora12 further]# 12.i686.rpm (38%) 39% [==================- ] 0.0 B/s | 752 kB 11401896976:41 ETA
[root@fedora12 further]# yum install mesa*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mesa-demos.i686 0:7.7-3.fc12 set to be updated
--> Processing Dependency: libglut.so.3 for package: mesa-demos-7.7-3.fc12.i686
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
mesa-demos i686 7.7-3.fc12 updates 1.9 M
mesa-dri-drivers-experimental i686 7.7-3.fc12 updates 154 k
mesa-libGLw i686 6.5.1-8.fc12 fedora 13 k
mesa-libGLw-devel i686 6.5.1-8.fc12 fedora 8.3 k
mesa-libOSMesa i686 7.7-3.fc12 updates 2.1 M
mesa-libOSMesa-devel i686 7.7-3.fc12 updates 37 k
Updating:
mesa-dri-drivers i686 7.7-3.fc12 updates 1.7 M
mesa-libGL i686 7.7-3.fc12 updates 163 k
mesa-libGL-devel i686 7.7-3.fc12 updates 478 k
mesa-libGLU i686 7.7-3.fc12 updates 186 k
mesa-libGLU-devel i686 7.7-3.fc12 updates 109 k
Installing for dependencies:
freeglut i686 2.6.0-1.fc12 updates 166 k
imake i686 1.0.2-11.fc12 fedora 261 k
lesstif i686 0.95.2-1.fc12 fedora 599 k
lesstif-devel i686 0.95.2-1.fc12 fedora 419 k
libXp i686 1.0.0-15.fc12 fedora 22 k
libXp-devel i686 1.0.0-15.fc12 fedora 16 k
Updating for dependencies:
libdrm i686 2.4.17-1.fc12 updates 61 k
libdrm-devel i686 2.4.17-1.fc12 updates 71 k
Transaction Summary
=============================================================================================================================================================
Install 12 Package(s)
Upgrade 7 Package(s)
Total size: 8.3 M
Total download size: 2.1 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 2.1 M
(1/2): mesa-libOSMesa-7.7-3.fc12.i686.rpm | 2.1 MB 10:00
(2/2): mesa-libOSMesa-devel-7.7-3.fc12.i686.rpm | 37 kB 00:08
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.5 kB/s | 2.1 MB 10:17
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libdrm-2.4.17-1.fc12.i686 1/26
Updating : mesa-dri-drivers-7.7-3.fc12.i686 2/26
Updating : mesa-libGL-7.7-3.fc12.i686 3/26
Updating : mesa-libGLU-7.7-3.fc12.i686 4/26
Installing : libXp-1.0.0-15.fc12.i686 5/26
Installing : lesstif-0.95.2-1.fc12.i686 6/26
Installing : freeglut-2.6.0-1.fc12.i686 7/26
Installing : mesa-libGLw-6.5.1-8.fc12.i686 8/26
Installing : mesa-libOSMesa-7.7-3.fc12.i686 9/26
Installing : imake-1.0.2-11.fc12.i686 10/26
Installing : mesa-demos-7.7-3.fc12.i686 11/26
Installing : mesa-dri-drivers-experimental-7.7-3.fc12.i686 12/26
Updating : libdrm-devel-2.4.17-1.fc12.i686 13/26
Updating : mesa-libGL-devel-7.7-3.fc12.i686 14/26
Installing : libXp-devel-1.0.0-15.fc12.i686 15/26
Installing : lesstif-devel-0.95.2-1.fc12.i686 16/26
Installing : mesa-libGLw-devel-6.5.1-8.fc12.i686 17/26
Updating : mesa-libGLU-devel-7.7-3.fc12.i686 18/26
Installing : mesa-libOSMesa-devel-7.7-3.fc12.i686 19/26
Cleanup : mesa-libGL-7.6-0.13.fc12.i686 20/26
Cleanup : mesa-dri-drivers-7.6-0.13.fc12.i686 21/26
Cleanup : mesa-libGLU-devel-7.6-0.13.fc12.i686 22/26
Cleanup : libdrm-devel-2.4.15-4.fc12.i686 23/26
Cleanup : mesa-libGL-devel-7.6-0.13.fc12.i686 24/26
Cleanup : libdrm-2.4.15-4.fc12.i686 25/26
Cleanup : mesa-libGLU-7.6-0.13.fc12.i686 26/26
Installed:
mesa-demos.i686 0:7.7-3.fc12 mesa-dri-drivers-experimental.i686 0:7.7-3.fc12 mesa-libGLw.i686 0:6.5.1-8.fc12 mesa-libGLw-devel.i686 0:6.5.1-8.fc12
mesa-libOSMesa.i686 0:7.7-3.fc12 mesa-libOSMesa-devel.i686 0:7.7-3.fc12
Dependency Installed:
freeglut.i686 0:2.6.0-1.fc12 imake.i686 0:1.0.2-11.fc12 lesstif.i686 0:0.95.2-1.fc12 lesstif-devel.i686 0:0.95.2-1.fc12 libXp.i686 0:1.0.0-15.fc12
libXp-devel.i686 0:1.0.0-15.fc12
Updated:
mesa-dri-drivers.i686 0:7.7-3.fc12 mesa-libGL.i686 0:7.7-3.fc12 mesa-libGL-devel.i686 0:7.7-3.fc12 mesa-libGLU.i686 0:7.7-3.fc12
mesa-libGLU-devel.i686 0:7.7-3.fc12
Dependency Updated:
libdrm.i686 0:2.4.17-1.fc12 libdrm-devel.i686 0:2.4.17-1.fc12
Complete!
[root@fedora12 further]# yum install freeglut*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package freeglut-2.6.0-1.fc12.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package freeglut-devel.i686 0:2.6.0-1.fc12 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
freeglut-devel i686 2.6.0-1.fc12 updates 112 k
Transaction Summary
=============================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 112 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 112 k
freeglut-devel-2.6.0-1.fc12.i686.rpm | 112 kB 00:35
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : freeglut-devel-2.6.0-1.fc12.i686 1/1
Installed:
freeglut-devel.i686 0:2.6.0-1.fc12
Complete!
[root@fedora12 further]#