Compile guide was: SDL_SetVideoMode failed (Couldnt find...

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
commandergnu
New user
Posts: 1
Joined: 27 Aug 2013, 06:45

Compile guide was: SDL_SetVideoMode failed (Couldnt find...

Post by commandergnu »

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 | allenlinux.wordpress.com

"with the same weapons to the enemy"
Last edited by Staff on 28 Aug 2013, 05:20, edited 1 time in total.
Reason: Don't do necro posting. Splitting off from old thread.