LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   VectorLinux (https://www.linuxquestions.org/questions/vectorlinux-36/)
-   -   Unable to play Warzone 2100 SDL_SetVideoMode error (https://www.linuxquestions.org/questions/vectorlinux-36/unable-to-play-warzone-2100-sdl_setvideomode-error-830532/)

steviebob 09-05-2010 10:04 PM

Unable to play Warzone 2100 SDL_SetVideoMode error
 
Hi, I just installed this OS on a computer of mine because I wanted to play the game Warzone 2100. Well, after getting everything compiled and installed, I try and run the game and this is what I get for an error message:

Code:

root:# warzone2100       
error  |09:57:38: [screenInitialise] SDL_SetVideoMode failed (Couldn't find matching GLX visual).
info    |09:57:38: [frameInitialise] Trying windowed mode now.
error  |09:57:38: [screenInitialise] SDL_SetVideoMode failed (Couldn't find matching GLX visual).

Any idea what the problem might be? I sure as hell don't.

~Steve

kevinbenko 09-06-2010 12:41 AM

It seems to me that this could be a video driver issue.

As I only have sufficient experience with Debian and with Nvidia cards, this may or may not be of use to you.
I've given up on getting anything resembling good behavior on the FOSS Nvidia drivers (they can't even seem to handle the xscreensaver GL screensavers), and I use the proprietary Nvidia drivers (yes, I'm a freedom-hater).

If I do an update that effects xorg video stuff, I often need to reinstall the proprietary Nvidia driver or I get errors similar to what you've gotten.

So, what's up with your video driver?
If you have an Nvidia graphics chipset, then I would suggest that you don't even think about using the FOSS driver, and use the proprietary Nvidia driver.

If you are using a non-Nvidia chipset, then maybe someone else can help.... or you could make sure that your video drivers are the right one for your chipset.

steviebob 09-07-2010 05:17 PM

Thanks for replying. I have an older computer that my friend gave me. It's a Pentium IV with 256 MB of RAM and the ProSavage8 128 MB video drivers. I've been told in the Warzone2100 forums that Savage is basically the bottom of the barrel. Though OpenGL works, glxgears runs at ~220 FPS. Heh.

adamk75 09-07-2010 05:44 PM

Not only is the savage the bottom of the barrel, I doubt there's any 3D acceleration for it available on Linux.

Adam

steviebob 09-08-2010 03:50 PM

Well, that's a bummer. I really wanted to play over LAN with my brother on some games :/

allenlinux 08-27-2013 12:07 AM

| later the "5.- point"| read well mayor linux | solving the glx stuff
 
WELCOME TO INSTALATION OF WARZONE2100 | COMPILING DEVELOPMENT UNSTABLE (STABLE :) VERSION )

|you have to be patient |
|many libraries to download |
|check you have rendering and free or propietary drivers installed, JUST ONE OF THEM... |
|Install step by step, DO NOT FORGET ANY STEP |
|DO NOT COPY ENTERING NUMBERS, JUST COMMANDS |

ENJOY:

0.- git clone https://github.com/Warzone2100/warzone2100.git
0.1.- cd warzone2100/
1.- apt-get install libcrypto++-utils libcryptokit-ocaml-dev libcrypto++-dev libcrypto++-utils libcrypto++9 libssl-dev hg-fast-export cmake automake kernel-package fakeroot libncurses5-dev zlib1g-dev build-essential libfribidi-dev asciidoc wkhtmltopdf spl-sdl libsdl-dev fle flex bison libpng12-dev libsdl1.2-dev libopenal-dev libphysfs-dev libvorbis-dev libtheora-dev libglc-dev libglew1.5-dev libxrandr-dev zip unzip libqt4-opengl-dev libqt4-network libqjson-dev

1.1.- apt-get build-dep warzone2100
2.- hg clone -r stable-2.0 http://hg.icculus.org/icculus/physfs/
2.0.- cd physfs/
2.1.- mkdir build
2.2.- cd build/
2.3.- cmake ../
2.4.- make
2.5.- make install
3.- wget -c http://www.libsdl.org/tmp/release/SDL2-2.0.0.tar.gz
3.1.- cd SDL2-2.0.0/
3.2.- ./configure
3.3.- make
3.4.- make install
4.- cd ..
5.0.0.- ./autogen.sh

DO NOT COPY THIS, FIRST READ

./configure --with-distributor="YOUR LINUX DISTRIBUTION NAME, UPPERCASE, QUOTATION INCLUDED" | Example: ./configure --with-distributor="TRISQUEL"

NOW YOU ALREADY KNOW YOUR LINUX DISTRO, JUST PUT THE COMMAND, IN MY CASE IS TRISQUEL, IN YOUR CASE MAY BE ITS THE SAME, OR UBUNTU, SLACKWARE, DEBIAN, WHATEVER...:

NOW YOU CAN COPY MODIFIYNG YOUR LINUX DISTRO:

5.1.1.- ./configure --with-distributor="TRISQUEL"
5.1.2.- make
5.2.3.- make install

OPEN THE GAME

5.- ./src/warzone2100

SETTING THE RESOLUTION IN CASE OF SHORT WINDOW (inside the game you can do it too by clicking easily)

./src/warzone2100 --resolution=800x600
./src/warzone2100 --resolution=1024x768
./src/warzone2100 --resolution=1280x768
./src/warzone2100 --resolution=1280x800

you can also try full screen

./src/warzone2100/ --fullscreen

|||||SOLVING-SDL_SetVideoMode failed |||||

| ABOUT SDL | SIMPLE DIRECTMEDIA LAYER TROUBLESHOOTING |

A.- THERE IS A PAINFUL WARZONE2100 BUG ACCORDING TO DIRECT MEDIA LAYER. IT´S IMPORTANT FOR YOU TO INSTALL MANY SDL LIBRARIES AS YOU CAN, EVEN IF YOU DONT NEEDED, INSTALL EVEN SDL LIRARIES FOR PERL AND MORE.

B.- IF YOU CAN NOT SOLVE THIS PAINFUL FOLLOWING ISSUE:

error |12:26:42: [screenInitialise] SDL_SetVideoMode failed (Could find matching GLX visual).

C.- TRY THIS:

c.1.- Install warzone2100 from repositories or synaptic:
c.2.- apt-get install warzone2100

C.3.- If you keep the pain in the ass, just delete warzone2100 from repositories
c.4.- apt-get remove --purge warzone2100
c.5.- aptitude remove --purge warzone2100

REMEMBER TO CLEAN YOUR SYSTEM USING UBUNTU-TWEAK OR BLEACHBIT | also | aptitude autoclean | aptitude clean | apt-get clean | apt-get autoclean | apt-get -f install |

D.- IF YOU CAN NOT SOLVE THIS BY EDITING GRAPHICS CONFIGURATION FROM WARZONE FILES THE ONLY THING YOU CAN DO IS:

D.1.-Delete the .warzone master file on root directory

D.2.- cd /root/
D.3.- ls -a |----ťOPTIONAL COMMAND ||
D.4.- rm -rf .warzone2100-master/

D.5.-Execute again the game without "./"

warzone2100


E.- IF YOU WANT TO RUN WARZONE2100 AS NORMAL USER JUST DELETE THE SAME MASTER WARZONE FILE FROM /HOME/.YOUR-USER-NAME

E.1.- open a terminal
E.2.- rm -rf /home/USER/.warzone2100-master/

E.3.- Execute again the game without "./"

warzone2100

also remember to read carefully factory instructions:

http://developer.wz2100.net/wiki/CompileGuideLinux


allenlinux | http://allenlinux.wordpress.com

"with the same weapons to the enemy"


All times are GMT -5. The time now is 09:01 PM.