bzflag will not start
bzflag will not start
I have installed bzflag and get this message below every time I try and run it;
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (XFree86-VidModeExtension)
Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)
Value in failed request: 0x298
Serial number of failed request: 157
Current serial number in output stream: 159
I know that the nvidia driver (openGL driver) is loaded and 3D rendering is enabled on my system. I am using PCLinuxOS (installed from software package, in repo) and am using BZFlag client 2.4.2.20130215-MAINT-linux-gnu-SDL (protocol 0221). PCLinuxOS also has all of the latest updates installed.
posting.php?mode=post&f=12#
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (XFree86-VidModeExtension)
Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)
Value in failed request: 0x298
Serial number of failed request: 157
Current serial number in output stream: 159
I know that the nvidia driver (openGL driver) is loaded and 3D rendering is enabled on my system. I am using PCLinuxOS (installed from software package, in repo) and am using BZFlag client 2.4.2.20130215-MAINT-linux-gnu-SDL (protocol 0221). PCLinuxOS also has all of the latest updates installed.
posting.php?mode=post&f=12#
- Bullet Catcher
- Captain
- Posts: 564
- Joined: Sat Dec 23, 2006 7:56 am
- Location: Escondido, California
Re: bzflag will not start
A newer version than BZFlag 2.4.2 may work better. If you can compile version 2.4.8 (the most recent release) and it still doesn't work we can probably help further diagonse the problem.
Re: bzflag will not start
It also looks like PCLinuxOS has SDL2, so perhaps building a recent client against SDL2 instead of SDL1.2 may also help.
Re: bzflag will not start
What are your video mode specs? Resolution/color depth?
Re: bzflag will not start
I'm having this problem on Ubuntu 16.04.2 (latest bz from source). I can start in windowed mode doing
to fill the screen all but for the menus and launcher at the resolution I am using, but
- gnu-sense
Code: Select all
> bzflag -window 1620x1000 &
- Accidental F1 = BLAM! (crash, with above message, so I had to unmap that function/key)
- Can't figure out if there is a config.cfg option that more conveniently sets this on launch
- gnu-sense
Re: bzflag will not start
Are you using SDL 1.2 or SDL 2.0? Running 'bzflag -version' should indicate either -SDL or -SDL2.
Re: bzflag will not start
Since you point that out, I can see that it probably a/the problem. After checking, and apt-get install, the output of ./configure reports the following:
Code: Select all
checking for SDL... no
checking for sdl2-config... (cached) no
checking for SDL - version >= 2.0.3... no
*** The sdl2-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL2_CONFIG environment variable to the
*** full path to sdl2-config.
checking for sdl-config... (cached) /usr/bin/sdl-config
checking for SDL - version >= 1.2.10... yes
Thanks,
gnu-sense
Re: bzflag will not start
Okay, nvm...
I rechecked that and found that I needed to install sdl2-dev (which figures). ./configure then reports it is using SDL2.
gnu-sense
I rechecked that and found that I needed to install sdl2-dev (which figures). ./configure then reports it is using SDL2.
gnu-sense
Re: bzflag will not start
Okay I'm a pest now. The is the result of make, when thus configured:
Any idea how to fix the SDL.h header file problem?
Code: Select all
In file included from OpenGLGState.cxx:1605:0:
../../include/bzfSDL.h:24:21: fatal error: SDL.h: No such file or directory
compilation terminated.
Makefile:444: recipe for target 'OpenGLGState.lo' failed
make[2]: *** [OpenGLGState.lo] Error 1
make[2]: Leaving directory '/home/paolillo/Project/BZFlag/bzflag/src/ogl'
Makefile:422: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/paolillo/Project/BZFlag/bzflag/src'
Makefile:482: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Re: bzflag will not start
Did you re-run the ./configure script after installing the sdl2-dev package?
Re: bzflag will not start
Yes, I re-ran configure. The output above is from make after that point; Although it configures claiming it is using SDL2 (see previous message), make cannot locate the header SDL.h (above), which is why I asked my last question.
Thanks for any help.
gnu-sense
Thanks for any help.
gnu-sense
Re: bzflag will not start
Did configure say that it found <SDL2/SDL.h> or not? Maybe do a make distclean, re-run configure, and post the entire output of configure and make here so we can check it out. Thanks.
Re: bzflag will not start
I did answer this above; yes, configure said it found SDL2, but failed on that header (more than once). I followed your suggestion and captured the output, but posting it is not necessary/useful: this time it compiled. My best guess is that the package updates with apt didn't fully synchronize somehow, and that after some arbitrary event it did.Constitution wrote: ↑Thu Jul 13, 2017 6:43 pm Did configure say that it found <SDL2/SDL.h> or not? Maybe do a make distclean, re-run configure, and post the entire output of configure and make here so we can check it out. Thanks.
In any event, it compiles, and it's full-screening like it's supposed to.
gnu-sense