With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
If you have any trouble with SG, this is the place to ask.

Moderator: Pardner

SA on linux: libopenal ok, but opengl not

Postby zeVlad » Fri Jan 02, 2009 11:46 pm

Howdy !

I tried to run the SA on my GNU/Linux system (Ubuntu 8.10 fresh install), but I have two problems :
1) the "famous" lack of libopenal.so.0 (in fact, see the other topic about this, the version of openal on ubuntu 8.10 is libopenal.so.1) : a symlink done and it's OK (I think).
2) Other problem with OpenGL : here is the code.

Code: Select all
vlad@vlad-desktop:~$ /home/vlad/Bureau/SmokinGuns/smokinguns.x86UID 1000 EUID 1000
SG 1.0 linux-i386 Dec 31 2008
----- FS_Startup -----
pak0 has checksum 2206249363
alamo1 has checksum 3611996451
joekarimat1 has checksum 891991440
sg_maps0 has checksum 3111238755
sg_pak0 has checksum 2450671269
sg_sounds has checksum 1404357192
sg_textures0 has checksum 3110057026
Current search path:
/home/vlad/.smokinguns/smokinguns
/home/vlad/Bureau/SmokinGuns/smokinguns/sg_textures0.pk3 (1018 files)
/home/vlad/Bureau/SmokinGuns/smokinguns/sg_sounds.pk3 (278 files)
/home/vlad/Bureau/SmokinGuns/smokinguns/sg_pak0.pk3 (803 files)
/home/vlad/Bureau/SmokinGuns/smokinguns/sg_maps0.pk3 (161 files)
/home/vlad/Bureau/SmokinGuns/smokinguns/joekarimat1.pk3 (178 files)
/home/vlad/Bureau/SmokinGuns/smokinguns/alamo1.pk3 (14 files)
/home/vlad/Bureau/SmokinGuns/smokinguns
/home/vlad/.q3a/smokinguns
/home/vlad/.smokinguns/baseq3
/home/vlad/Bureau/SmokinGuns/baseq3/pak0.pk3 (107 files)
/home/vlad/Bureau/SmokinGuns/baseq3

----------------------
2559 files in pk3 files
execing default.cfg
execing q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok

------- Input Initialization -------
Joystick is not active.
------------------------------------
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
QKEY building random string
QKEY generated
----- Client Initialization Complete -----
----- R_Init -----
...loading opengl32: QGL_Init: Can't load opengl32 from /etc/ld.so.conf: opengl32: cannot open shared object file: No such file or directory
failed
...loading libGL.so: QGL_Init: Can't load libGL.so from /etc/ld.so.conf: libGL.so: cannot open shared object file: No such file or directory
failed
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: GLimp_Init() - could not load OpenGL subsystem


Can you explain how repair ?

Many thanks,

zeVlad
User avatar
zeVlad
Pistolero
 
Posts: 32
Joined: Mon Apr 14, 2008 12:16 am
Location: Belgium



Postby ReD NeCKersoN » Sat Jan 03, 2009 12:50 am

Until one of the smart guys can respond, may I ask if you've tried searching google? I got a lot of hits for that error when I just checked. Must be a pretty common thing for Linux? :|
Image
User avatar
ReD NeCKersoN
SG Team
 
Posts: 3245
Joined: Wed Mar 27, 2002 6:22 am
Location: VA, USA



Postby Pyrite » Sat Jan 03, 2009 12:51 am

This doesn't look like anything I've seen before. On my system (Ubuntu 8.10) /etc/ld.so.conf is a text file containing the following line:
Code: Select all
include /etc/ld.so.conf.d/*.conf


So it just lists the contents of the directory. So, it might be worth looking to see what your /etc/ld.so.conf file contains, I'm guessing it will be a list of .so files. Maybe go through and check if they exist on your system, and if they don't, see if you can find out what package they belong to and install that package.

Is OpenGL definitely working for you in other things? Can you run commands like glxinfo and glxgears?
User avatar
Pyrite
Pistolero
 
Posts: 28
Joined: Sat Aug 30, 2008 12:43 am



Postby zeVlad » Sat Jan 03, 2009 12:54 am

I didn't think about that :wink:
I thought that it was a dependancy problem but I'm gonna search on google too.

EDIT : thank pyrite, I'll look at that.
User avatar
zeVlad
Pistolero
 
Posts: 32
Joined: Mon Apr 14, 2008 12:16 am
Location: Belgium



Postby Tequila » Sat Jan 03, 2009 12:00 pm

Hi,

have you an x86_64 workstation with a linux 64bits installed ? In that case, you will have to install your video card driver as 32 bits. Later when we have ported the engine to ioQ3, x86_64 will be supported.
User avatar
Tequila
SG Team
 
Posts: 1100
Joined: Thu Nov 15, 2007 11:33 pm
Location: Montpellier, France



Postby zeVlad » Sat Jan 03, 2009 12:07 pm

On my Ubuntu, the file /etc/ld.so.conf contains the same line, and the directory /etc/ld.so.conf.d includes three files :
Code: Select all
vlad@vlad-desktop:~$ ls /etc/ld.so.conf.d/
i486-linux-gnu.conf  libasound2.conf  libc.conf


Direct rendering is enabled, glxgears runs good and OpenGL seems to run good, but I'm pretty lost in all the packages with "opengl" or "libgl"... :roll:
But I have all the dependancies for OpenArena.

All I found about my error message on help forums is about bad drivers or opengl not activated... not my case.

Tequila wrote:Hi,

have you an x86_64 workstation with a linux 64bits installed ?

No.

Thanks for all the help ! :wink:
User avatar
zeVlad
Pistolero
 
Posts: 32
Joined: Mon Apr 14, 2008 12:16 am
Location: Belgium



Postby zeVlad » Sat Jan 03, 2009 3:59 pm

I found some stuff about the problem here.

It seems to be a denomination problem (like the libopenal.so.0's one) between libGL.so and libGL.so.1, or same kind. I don't know where make the good symlink at the good place, but it works running with the following :

Code: Select all
./SmokinGuns/smokinguns.x86 +set r_gldriver libGL.so.1
User avatar
zeVlad
Pistolero
 
Posts: 32
Joined: Mon Apr 14, 2008 12:16 am
Location: Belgium



OpenGL

Postby jkn » Mon Jan 05, 2009 1:16 pm

I also got these errors with Debian and Ubuntu:

...loading opengl32: QGL_Init: Can't load opengl32 from /etc/ld.so.conf: opengl32: cannot open shared object file: No such file or directory
failed
...loading libGL.so: QGL_Init: Can't load libGL.so from /etc/ld.so.conf: libGL.so: cannot open shared object file: No such file or directory
failed

My fix:
cd /usr/lib
sudo ln -s libGL.so.1 libGL.so
sudo ldconfig
jkn
Newcomer
 
Posts: 2
Joined: Fri Jan 02, 2009 12:47 pm



Postby Saslik » Sun Jan 11, 2009 5:31 pm

zeVlad wrote:I found some stuff about the problem here.

It seems to be a denomination problem (like the libopenal.so.0's one) between libGL.so and libGL.so.1, or same kind. I don't know where make the good symlink at the good place, but it works running with the following :

Code: Select all
./SmokinGuns/smokinguns.x86 +set r_gldriver libGL.so.1

I had the same problem but that fixed it. Thanks dude :wink:
Saslik
Newcomer
 
Posts: 1
Joined: Wed Sep 17, 2008 10:20 am



Postby Plates » Tue Jan 27, 2009 3:18 am

I had this output too, Ubuntu 8.04 LTS i386. I used the link method.

Code: Select all
sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so


Got solution from a different source though. Source: http://Swiss.ubuntuforums.org/showthread.php?p=6606805
Plates
Pistolero
 
Posts: 26
Joined: Tue Nov 20, 2007 4:13 am




Return to Doc's Office

Show Sidebar
Show Sidebar

User Control Panel

cron