PlaneShift

Support => Linux Specific Issues => Topic started by: Homik on December 22, 2008, 11:51:41 pm

Title: ps seg faults, and tells me no 3d
Post by: Homik on December 22, 2008, 11:51:41 pm
I have a strange problem while installing ps on opensuse.
First, i get a seg fault, so i try --mode-text
It installs nicely.
Then, i try ./psclient, it tells me i have no 3d graphics drivers :/
I checked, rechecked, and reinstalled my graphics drivers, THEY ARE THERE.
I even tried turning compiz-fusion off, still no go.

Any suggestions?
Title: Re: ps seg faults, and tells me no 3d
Post by: Caarrie on December 23, 2008, 12:16:23 am
do you have direct rendering enabled? what graphics card do you have? what drivers do you have installed?
Title: Re: ps seg faults, and tells me no 3d
Post by: Homik on December 23, 2008, 12:38:30 am
glxinfo says direct rendering is enabled.
i have a 9300m gs with nvidia driver version 177.82

heres the output of ./pssetup:

Your configuration files are in... /home/homik/.PlaneShift
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

ERROR: FATAL: Cannot open X display
WARNING: failed to initialize plugin 'crystalspace.window.x'
Could not create an instance of crystalspace.window.x!
WARNING: failed to initialize plugin 'crystalspace.graphics2d.glx'
Error loading Graphics2D plugin.
WARNING: failed to initialize plugin 'crystalspace.graphics3d.opengl'
No 3D driver!
psclient:  No 3d driver (iGraphics3D) plugin!
Title: Re: ps seg faults, and tells me no 3d
Post by: Caarrie on December 23, 2008, 01:25:43 am
you do have X running? you are running pssetup or even psclient from console/terminal and not from tty?
Title: Re: ps seg faults, and tells me no 3d
Post by: Homik on December 23, 2008, 04:51:37 am
Yes, X is running, and i'm starting pssetup/psclient from terminal. I tried starting as normal user and as root.
Title: Re: ps seg faults, and tells me no 3d
Post by: weltall on December 23, 2008, 08:42:38 am
don't run from root set permissions correctly also because many distributions doesn't setup x server correctly. others do it only with sudo. you might want to complain with your distributor about the fact they didn't setup xserver permissions correctly
Title: Re: ps seg faults, and tells me no 3d
Post by: Vonor on December 23, 2008, 10:46:01 am
It really sounds like a permission issue to me.

Here's a little checklist for you, make sure everything on the list returns true :)
Code: [Select]
$ ls -l /dev/nvidia0
crw-rw---- 1 root video 195, 0 Dec 20 19:49 /dev/nvidia0
The output tells us the following: crw-rw---- = it's a character device with read/write permissions for user and group / root video = owner of the file is user root and group video / the rest is unimportant for us.
Now check again the output of 'id' and see in what groups you are, for me that looks like this:
Code: [Select]
$ id
uid=1002(vonor) gid=100(users) groups=10(wheel),18(audio),19(cdrom),27(video),80(cdrw),100(users),1000(messagebus),1003(scanner),1005(plugdev),1006(vboxusers)

If everything on that list is correct, you should be able to start ps :)
oh, make sure you have "nvidia" and not "nv" as driver in your xorg.conf :)

good luck
Vonor
Title: Re: ps seg faults, and tells me no 3d
Post by: Homik on December 23, 2008, 06:30:37 pm
Well, i checked all those, and for the are all correct. I am in the 'video' group where the read/write permissions are set, display is set to 0.0 (don't have any other screens) and xorg.conf lists my drivers as nvidia.


Also, i tried compiling PS and i get this error while compiling cal3d:

linux-0ivz:/home/homik/Dev/cal3d # autoreconf --install --force
configure.in:41: error: possibly undefined macro: AC_DISABLE_STATIC
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:43: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.in:44: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1

We (prospies on irc) have been scratching our heads over this all night and can't find the error. We followed the guide to the letter :/

Any input appreciated ^.^
Title: Re: ps seg faults, and tells me no 3d
Post by: Caarrie on December 23, 2008, 06:39:14 pm
maybe http://www.linuxboards.org/archive/index.php/t-2450.html will help. also you might want to check the ubuntu version of the guide for a detailed list of dependencies you need to have installed.
Title: Re: ps seg faults, and tells me no 3d
Post by: Homik on December 23, 2008, 06:44:46 pm
Thank you Caarrie!!! \\o//

you just solved what 3 people couldn't figure out for the life of them :D
Title: Re: ps seg faults, and tells me no 3d
Post by: Caarrie on December 23, 2008, 06:50:56 pm
Thank you Caarrie!!! \\o//

you just solved what 3 people couldn't figure out for the life of them :D

hehe you can thank google :P (http://i21.photobucket.com/albums/b284/bluedoglov/smilies/agree.gif)