Operating System - HP-UX
1833677 Members
4122 Online
110062 Solutions
New Discussion

Re: running SDL with OpenGL in HP-UX 11.00

 
SOLVED
Go to solution
Saurav Sarkar
Advisor

running SDL with OpenGL in HP-UX 11.00

hi all,
i have SDL 1.2 and OpenGL as well as Mesa installed in my HP-UX 11.00 B2000 Visualize workstation and the opengl and glut demos run fine. but when I try to run any SDL apllication
which uses opengl renedering(eg, Tux Racer), it
fails in SDL_SetVideoMode with the message
"X11 driver not configured for OpenGL"
do i have to do anything extra for setting up
opengl or is it a bug in SDL HP-UX port? thanks
in advance.

saurav
5 REPLIES 5
Alex Glennie
Honored Contributor

Re: running SDL with OpenGL in HP-UX 11.00

SDL ? Not familiar with it .... port from linux ?
URL ?
useful info to have :

graphinfo,xdpyinfo,chatr from the SDL binary/executable .... any idea which X11 driver it's referring to .... might tie up with xdpyinfo extensions

output.

I did find :
http://sdldoc.csn.ul.ie/guidevideoopengl.php
and a little bit of digging suggests this might be a game port of some shape or kind in which case this will be most likely a bug.

Martin Gansser_1
Occasional Advisor

Re: running SDL with OpenGL in HP-UX 11.00

Hi,
> "X11 driver not configured for OpenGL"

recompile SDL with: enable_video_opengl="yes"

I tried to compile tuxracer on hpux-11.00, but it fails with the following error message:

checking for glXGetProcAddressARB... (cached) yes
checking for GLU library... yes
checking for GL/gl.h... yes
checking for GL/glx.h... (cached) yes
checking whether glx.h defines glXGetProcAddressARB... no
configure: error: Your copy of glx.h is out of date. You can get a more recent copy from the latest
Mesa distribution (http://mesa3d.sourceforge.net).
gmake: *** [config.status] Error 1
SDL-1.2.5 and Mesa-5.0.1 is installed. Can you give me a hint.

thanks Martin
Saurav Sarkar
Advisor

Re: running SDL with OpenGL in HP-UX 11.00

thanks for replying.

SDL is Simple Direct Multimedia Layer which is
an API used for writing games and other multimedia applications portably. A port of SDL is available in HP-UX Porting and archive centre.

As for the configure complaining about 'glx.h is out of date', i also got the same problem. i checked OpenGL headers and found that glXGetProcAddressARB is missing but it is available in Mesa headers. so i pointed to Mesa headers during configuration. this also failed. so i just commented out the part in configure script which was checking for this declaration and everything compiled fine.

Regarding recompiling SDL, i didn't compile SDL but installed it from depot. do you mean i have to compile everything from source or a pre-compiled version exists somewhere. thanks

saurav


Martin Gansser_1
Occasional Advisor
Solution

Re: running SDL with OpenGL in HP-UX 11.00

the solution for the configure script is the following, add the #define ....

# diff -Naur tuxracer-0.61/configure.orig tuxracer-0.61/configure
--- tuxracer-0.61/configure.orig 2003-06-23 15:26:45.000000000 +0200
+++ tuxracer-0.61/configure 2003-06-23 15:24:57.000000000 +0200
@@ -4065,6 +4065,7 @@
cat > conftest.$ac_ext < #line 4067 "configure"
#include "confdefs.h"
+#define GLX_GLXEXT_PROTOTYPES
#include
int main() {
char *foo = (char*) glXGetProcAddressARB;

and the missing finite() can be solved by adding the following:

# diff -Naur tuxracer-0.61/src/tuxracer.h.orig tuxracer-0.61/src/tuxracer.h
--- tuxracer-0.61/src/tuxracer.h.orig 2003-06-23 11:32:56.000000000 +0200
+++ tuxracer-0.61/src/tuxracer.h 2003-06-23 11:20:23.000000000 +0200
@@ -140,6 +140,8 @@
# define FINITE(x) (!isnan(x))
#elif defined( HAVE__ISNAN )
# define FINITE(x) (!_isnan(x))
+#elif defined( __hpux )
+# define FINITE(x) (!isfinite(x))
#else
# error "You don't have finite(), _finite(), isnan(), or _isnan() on your system!"
#endif


a precompiled SDL depot file for hpux 11.00 could you find on my homepage:

http://cloud.prohosting.com/patos/download/SDL-1.2.5-sd-11.00.depot.bz2

please let me know if it works, send me a email to mgansser@inneo.de

thanks Martin
Saurav Sarkar
Advisor

Re: running SDL with OpenGL in HP-UX 11.00

thanks martin,
it works. i mean atleast the tuxracer window comes up. but it runs horribly slowly. even mouse movements are very jerky. my first impression was that the window was not displaying any mouse cursor. fps is near 0 on my B200 Visualize-fxe card(even when using a very small resolution).

saurav