LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2015, 10:10 AM   #1
scarrz
Member
 
Registered: Aug 2014
Location: Thunder Bay, Ontario
Distribution: Slackware, Ubuntu
Posts: 80

Rep: Reputation: Disabled
linux gaming - swrast and quake4


I posted in the Arch forum but no replies... maybe someone here can help.

Concerning getting Quake IV to run. I have tried the package from AUR and just running the binary installer...

both give me:

...
Code:
-------- Initializing Sound System ----------
sound system initialized.
---------------------------------------------
--------------- R_InitOpenGL ----------------
Initializing SDL subsystem
Loading GL driver 'libGL.so.1' through SDL
SDL_ListModes:
1024x768 1024x576 800x600 640x480 
SDL_ListModes are currently ignored for resolution filtering. Set r_useSDLModes to 1 if you want it
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  32
  Current serial number in output stream:  33
pure virtual method called
terminate called without an active exception
signal caught: Aborted
si_code -6
Trying to exit gracefully..
pure virtual method called
terminate called recursively
double fault Aborted, bailing out
I saw some threads on this error on Arch for steam but nothing for quake4. since I own the game it'd be nice to have it running so I can at least finish it.

I am pretty darn sure nvidia drivers are installed corectly... swrast_dri.so resides in both lib and lib32.

a little help?
 
Old 12-07-2015, 04:50 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You don't want to use swrast, it will do all the rendering work on the CPU and will be just to slow to run the game.
Make sure that you also have installed the 32 bit drivers for your Nvidia card, this is how it looks on my system:
Code:
>>> pacman -Qs nvidia
local/lib32-libvdpau 1.1.1-1
    Nvidia VDPAU library
local/lib32-nvidia-libgl 358.16-1
    NVIDIA drivers libraries symlinks (32-bit)
local/lib32-nvidia-utils 358.16-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.1.1-1
    Nvidia VDPAU library
local/nvidia 358.16-1
    NVIDIA drivers for linux
local/nvidia-cg-toolkit 3.1-3
    NVIDIA Cg libraries
local/nvidia-libgl 358.16-1
    NVIDIA drivers libraries symlinks
local/nvidia-utils 358.16-1
    NVIDIA drivers utilities
local/opencl-nvidia 358.16-1
    OpenCL implemention for NVIDIA
 
Old 12-10-2015, 08:22 AM   #3
scarrz
Member
 
Registered: Aug 2014
Location: Thunder Bay, Ontario
Distribution: Slackware, Ubuntu
Posts: 80

Original Poster
Rep: Reputation: Disabled
OK but...

TobiSGD, I checked my drivers with the same command and it looks like my 32bit drivers are NOT installed... this is the output:

Code:
greg@DX4800:~$ sudo pacman -Qs nvidia
[sudo] password for greg: 
local/lib32-libvdpau 1.1.1-1
    Nvidia VDPAU library
local/lib32-libxnvctrl 343.36-1
    NVIDIA X Ctrl library
local/libvdpau 1.1.1-1
    Nvidia VDPAU library
local/nvidia 358.16-2.1
    NVIDIA drivers for linux
local/nvidia-libgl 358.16-1
    NVIDIA drivers libraries symlinks
local/nvidia-utils 358.16-1
    NVIDIA drivers utilities
greg@DX4800:~$
I am a tiny bit new to arch so I think I need just a little help here. What is the syntax to install BOTH i686 and x86_64 nvidia drivers. Currently I install my drivers by:
Code:
sudo pacman -S nvidia
...and it only installs the x86_64 driver. Can you tell me the command to install both? (as I am positive that this is my issue) Also software rendering is (you're right) NOT what I would like. Do you think you could help me with the correct code to add to my "quake4" file so it renders in opengl?

Thanks
 
Old 12-10-2015, 08:38 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
At first you have to enable the multilib repository to get access to the 32 bit libraries: https://wiki.archlinux.org/index.php/Multilib
After that just install the 32 bit drivers:
Code:
pacman -S lib32-nvidia-utils lib32-nvidia-libgl
After that, your game should run (if there aren't more 32 bit libraries needed).
 
Old 12-11-2015, 04:41 PM   #5
scarrz
Member
 
Registered: Aug 2014
Location: Thunder Bay, Ontario
Distribution: Slackware, Ubuntu
Posts: 80

Original Poster
Rep: Reputation: Disabled
TobiSGD...

Yep, that did the trick. TYVM. My problem was: I was a "Slacker"... and my workaround in Slackware to get the game to run was to install "mesa" because it provided the necessarry files to run the game. Ugly hack, but it worked. SO I thought that I would have to install mesa on Arch to provide the same results. I installed mesa before I even installed Quake IV because I thought I had to. I am pretty sure I had the correct libraries beforehand because I have the multilib repo enabled before this post.

Anyway, it works now. But for my second Question... how to get Quake IV to run under opengl instead of software drivers? I have Darkplaces, Quake II (although it locks my x when I start the game) and Quake III Arena also installed so I'd like to have all them working on my hardware if possibe. You game?
 
Old 12-12-2015, 05:23 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I don't have the game, but it should use hardware accelerated drivers by default.
 
Old 12-12-2015, 07:34 AM   #7
scarrz
Member
 
Registered: Aug 2014
Location: Thunder Bay, Ontario
Distribution: Slackware, Ubuntu
Posts: 80

Original Poster
Rep: Reputation: Disabled
Right then. Thanks so much for providing the syntax to install the correct libs. Stay tuned for my next post... I got an odd problem with Quake II.

Cheers.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux a viable gaming platform? Project Ascension user interface, and more open gaming news LXer Syndicated Linux News 0 07-12-2015 12:34 AM
[SOLVED] failed to load driver: swrast moisespedro Slackware 37 04-23-2014 09:47 AM
amd catalyst 13.12 - libGL error failed to load driver swrast Dr.Thodt Slackware 1 01-25-2014 01:35 AM
LXer: Linux Gaming With Sabayon Gaming Edition DVD LXer Syndicated Linux News 0 02-19-2010 03:40 PM
[SOLVED] Problem running Quake4 Linux lhorace Linux - Software 13 10-29-2009 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration