QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2281|回复: 17

quake3 opengl 出错,rh9

[复制链接]
发表于 2003-4-12 15:27:30 | 显示全部楼层 |阅读模式
nvidia gf2mx ,RH9 ,NVIDIA-Linux-x86-1.0-4349.run
linuxq3apoint-1.32b.x86.run
XF86Config相应的地方都改了(nv to nvidia,Load glx驱动装好就有,GLcore装好就没有的,然后我注释掉了Load dri)
以下是我的XF86Config:
# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/system/fonts"
FontPath "/usr/system/ROfonts"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "xtt"
Load "type1"

EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "SyncMaster"
DisplaySize 320 240
HorizSync 30.0 - 96.0
VertRefresh 50.0 - 160.0
ModeLine "800x600" 56.3 800 832 896 1048 600 605 608 627 +hsync +vsync
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 2 MX (generic)"
VideoRam 32768
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection






打开quake3,屏幕黑了一下,然后从800*600变成640*480,桌面还是能用的,之是分辨率改了;出错大意是openGL subsystem
 楼主| 发表于 2003-4-12 15:28:17 | 显示全部楼层
...loading opengl32: QGL_Init: Can't load opengl32 from /etc/ld.so.conf or current dir: /usr/local/games/quake3/opengl32: cannot open shared object file: No such file or
directory
failed
...Loading libGL.so.1
回复

使用道具 举报

发表于 2003-4-12 15:43:14 | 显示全部楼层
[root@llc root]# cd /usr/lib
[root@llc lib]# ls libGL*.*
libGLcore.so.1         libGL.so    libGL.so.1.0.4349  libGLU.so.1
libGLcore.so.1.0.4349  libGL.so.1  libGLU.so
[root@llc lib]# ls -l libGL*.*
lrwxrwxrwx    1 root     root           21  4月  7 02:56 libGLcore.so.1 -> libGL                     core.so.1.0.4349
-rwxr-xr-x    1 root     root      4897592  4月  7 02:56 libGLcore.so.1.0.4349
lrwxrwxrwx    1 root     root           10  4月  7 02:56 libGL.so -> libGL.so.1
lrwxrwxrwx    1 root     root           17  4月  7 02:56 libGL.so.1 -> libGL.so.                     1.0.4349
-rwxr-xr-x    1 root     root       413812  4月  7 02:56 libGL.so.1.0.4349
lrwxrwxrwx    1 root     root           33  3月 31 20:11 libGLU.so -> ../../usr/                     X11R6/lib/libGLU.so.1.3
lrwxrwxrwx    1 root     root           33  3月 31 20:12 libGLU.so.1 -> ../../us                     r/X11R6/lib/libGLU.so.1.3
回复

使用道具 举报

发表于 2003-4-12 15:44:02 | 显示全部楼层
做好ln链接后,ldconfig一下
回复

使用道具 举报

 楼主| 发表于 2003-4-12 16:53:15 | 显示全部楼层
我ln作好了还是有问题,是不是作好了后是这样:
[root@dhcp-46-356 lib]# ls libGL*.*
libGLcore.so.1  libGLcore.so.1.0.4349  libGL.so  libGL.so.1  libGL.so.1.0.4349  libGLU.so  libGLU.so.1
[root@dhcp-46-356 lib]# ls -l libGL*.*
-rwxr-xr-x    3 root     root      4897592  4月 12 02:28 libGLcore.so.1
-rwxr-xr-x    3 root     root      4897592  4月 12 02:28 libGLcore.so.1.0.4349
-rwxr-xr-x    3 root     root      4897592  4月 12 02:28 libGL.so
-rwxr-xr-x    2 root     root       413812  4月 12 02:28 libGL.so.1
-rwxr-xr-x    2 root     root       413812  4月 12 02:28 libGL.so.1.0.4349
-rwxr-xr-x    3 root     root       507416  2月 28 00:23 libGLU.so
-rwxr-xr-x    3 root     root       507416  2月 28 00:23 libGLU.so.1
回复

使用道具 举报

 楼主| 发表于 2003-4-12 16:54:29 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2003-4-12 16:56:39 | 显示全部楼层
刚才我是这样做的:ln -f  libGLcore.so.1.0.4349 libGLcore.so.1
回复

使用道具 举报

 楼主| 发表于 2003-4-12 16:59:48 | 显示全部楼层
[root@dhcp-46-356 lib]# ls -l libGL*.*
-rwxr-xr-x    3 root     root      4897592  4月 12 02:28 libGLcore.so.1
-rwxr-xr-x    3 root     root      4897592  4月 12 02:28 libGLcore.so.1.0.4349
-rwxr-xr-x    3 root     root      4897592  4月 12 02:28 libGL.so
-rwxr-xr-x    2 root     root       413812  4月 12 02:28 libGL.so.1
-rwxr-xr-x    2 root     root       413812  4月 12 02:28 libGL.so.1.0.4349
-rwxr-xr-x    3 root     root       507416  2月 28 00:23 libGLU.so
-rwxr-xr-x    3 root     root       507416  2月 28 00:23 libGLU.so.1
[root@dhcp-46-356 lib]# ldconfig
[root@dhcp-46-356 lib]# quake3
Q3 1.32b linux-i386 Nov 14 2002
----- FS_Startup -----
Current search path:
/root/.q3a/baseq3
/usr/local/games/quake3/baseq3/pak8.pk3 (9 files)
/usr/local/games/quake3/baseq3/pak7.pk3 (4 files)
/usr/local/games/quake3/baseq3/pak6.pk3 (64 files)
/usr/local/games/quake3/baseq3/pak5.pk3 (7 files)
/usr/local/games/quake3/baseq3/pak4.pk3 (272 files)
/usr/local/games/quake3/baseq3/pak3.pk3 (4 files)
/usr/local/games/quake3/baseq3/pak2.pk3 (148 files)
/usr/local/games/quake3/baseq3/pak1.pk3 (26 files)
/usr/local/games/quake3/baseq3/pak0.pk3 (3539 files)
/usr/local/games/quake3/baseq3
./quake3.x86/baseq3

----------------------
4073 files in pk3 files
execing default.cfg
execing q3config.cfg
Unknown command "cg_zoomfov"
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok

------- Input Initialization -------
Joystick is not active.
------------------------------------
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
----- R_Init -----
...loading opengl32: QGL_Init: Can't load opengl32 from /etc/ld.so.conf or current dir: /usr/local/games/quake3/opengl32: cannot open shared object file: No such file or directory
failed
...loading libGL.so.1: Initializing OpenGL display
...setting mode 4: 800 600
Using XFree86-VidModeExtension Version 2.2
XF86DGA Mouse (Version 2.0) initialized
XFree86-VidModeExtension Activated at 800x600
Couldn't get a visual
...WARNING: could not set the given mode (4)
Initializing OpenGL display
...setting mode 3: 640 480
Using XFree86-VidModeExtension Version 2.2
XF86DGA Mouse (Version 2.0) initialized
XFree86-VidModeExtension Activated at 640x480
Couldn't get a visual
...WARNING: could not set the given mode (3)
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: GLimp_Init() - could not load OpenGL subsystem

[root@dhcp-46-356 lib]#
回复

使用道具 举报

发表于 2003-4-12 18:18:05 | 显示全部楼层
执行了ldconfig没有?
回复

使用道具 举报

 楼主| 发表于 2003-4-12 18:21:53 | 显示全部楼层
做好后就ldconfig了,ln 是像这样做的吗: ln -f libGLcore.so.1.0.4349 libGLcore.so.1
回复

使用道具 举报

发表于 2003-4-12 18:32:21 | 显示全部楼层
ln -sf libGLcore.so.1.0.4349 libGLcore.so.1最好

如果ldconfig都还不行,实在想不出什么原因了
下面的信息是我的,你对比一下:


Hunk_Clear: reset the hunk ok

------- Input Initialization -------
Joystick is not active.
------------------------------------
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
----- R_Init -----
...loading libGL.so.1: Initializing OpenGL display
...setting mode 3: 640 480
Using XFree86-VidModeExtension Version 2.2
XF86DGA Mouse (Version 2.0) initialized
XFree86-VidModeExtension Activated at 640x480
Using 4/4/4 Color bits, 24 depth, 0 stencil display.
GL_RENDERER: GeForce2 MX/AGP/SSE
Initializing OpenGL extensions
...ignoring GL_S3_s3tc
...using GL_EXT_texture_env_add
...using GL_ARB_multitexture
...using GL_EXT_compiled_vertex_array
回复

使用道具 举报

 楼主| 发表于 2003-4-12 18:51:49 | 显示全部楼层
...loading opengl32: QGL_Init: Can't load opengl32 from /etc/ld.so.conf or current dir: /usr/local/games/quake3/opengl32: cannot open shared object file: No such file or directory
failed
请问这几个目录和文件是做什么用的?我看了一下,找不到opengl32这个东西
回复

使用道具 举报

 楼主| 发表于 2003-4-12 18:54:46 | 显示全部楼层
我的/etc/ld.so.conf里面就是这几行东西
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib
/usr/lib/mysql
/usr/lib/qt2/lib
回复

使用道具 举报

 楼主| 发表于 2003-4-12 19:26:24 | 显示全部楼层
问题解决了,原来是该死的q3config的问题,删除后就可以玩了,谢谢llc
回复

使用道具 举报

发表于 2003-4-12 23:07:20 | 显示全部楼层
q3config是什么?在哪个目录里的?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-12-4 04:23 , Processed in 0.064923 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表