[smpeg] Newbie

Chunky Kibbles chunky at icculus.org
Mon Feb 9 17:17:40 EST 2004


On Mon, Feb 09, 2004 at 05:09:10PM -0500, Manuel Arguelles wrote:
> thanx :)
> 
> now I'm getting this error:
> Xlib:  extension "XFree86-DRI" missing
> is this a module of XFree or something? I can't find it :(

Guh. glmovie requires [you guessed it!] openGL. Either set up openGL
on the box you're developing on, or you can change the init code like:

Index: glmovie.c
===================================================================
RCS file: /cvs/cvsroot/smpeg/glmovie.c,v
retrieving revision 1.7
diff -u -b -B -u -r1.7 glmovie.c
--- glmovie.c   3 Jan 2004 03:49:50 -0000       1.7
+++ glmovie.c   9 Feb 2004 22:16:27 -0000
@@ -40,7 +40,7 @@
     /* Grab the mouse and input and set the video mode */
     SDL_ShowCursor(0);
     //SDL_WM_GrabInput(SDL_GRAB_ON);
-    screen = SDL_SetVideoMode(640, 480, 0, SDL_OPENGL); //|SDL_FULLSCREEN);
+    screen = SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN);
     if ( !screen ) {
        fprintf( stderr, "glmovie: Couldn't set 640x480 GL video mode: %s\n", SDL_GetError());
         SDL_Quit();

Gary (-;

> ----- Original Message -----
> Chunky Kibbles wrote:
> > On Mon, Feb 09, 2004 at 05:00:38PM -0500, Manuel Arguelles wrote:
> > > Ok, what about the compilation/linking flags? (please don't tell me
> > > to get them from the Makefile) :p
> >
> > For which bit?
> > It requires SDL, so at a guess I'd say your project needs:
> > CFLAGS+=`sdl-config --cflags` `smpeg-config --cflags`
> > LDFLAGS+=`sdl-config --ldflags` `smpeg-config --ldflags`
> >
> > Just a thought
> > Gary (-;
> >
> >
> 
> 



More information about the smpeg mailing list