[quake3] Re: weird sound

Eugeny N Dzhurinsky eugenydzh at jdevelop.com
Wed Nov 23 08:27:29 EST 2005


On Wed, Nov 23, 2005 at 01:08:09PM +0000, Tim Angus wrote:
> On Wed, 23 Nov 2005 14:50:57 +0200 Eugeny wrote:
> > SDL is installed, openGL is installed together with X.org and nvidia
> > driver, w/o these patches you sent quake builds w/o any error :(
> 
> Try that attached one instead. Apparently "sdl-config --cflags" doesn't
> include an include path for the GL headers.

Well, I tried this, still no luck, it won't build

gcc -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
-DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1  -DNDEBUG -O3 -mtune=pentiumpro
-march=pentium -fomit-frame-pointer -pipe -ffast-math -falign-loops=2
-falign-jumps=2 -falign-functions=2 -funroll-loops -fstrength-reduce -MMD -o
releasei386/client/sdl_glimp.o -c ../unix/sdl_glimp.c  -I/usr/X11R6/include
../unix/sdl_glimp.c:61:17: SDL.h: No such file or directory
../unix/sdl_glimp.c:91: error: syntax error before '*' token
../unix/sdl_glimp.c:91: warning: type defaults to `int' in declaration of
`screen'

SDL.h is located in /usr/X11R6/include/SDL11/SDL.h

sdl11-config --cflags
-I/usr/local/include/SDL11 -I/usr/local/include -D_REENTRANT

I modified patch you sent me to use sdl11-config instead of sdl-config

should i invoke 
gmake USE_SDL=1 or just gmake ?

-- 
Eugene N Dzhurinsky
-------------- next part --------------
Index: code/unix/Makefile
===================================================================
--- code/unix/Makefile	(revision 372)
+++ code/unix/Makefile	(working copy)
@@ -298,6 +298,10 @@
 
   BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
 
+  ifeq ($(USE_SDL),1)
+    BASE_CFLAGS += -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 $(shell sdl-config --cflags)
+  endif
+
   GL_CFLAGS = -I/usr/X11R6/include
 
   DEBUG_CFLAGS=$(BASE_CFLAGS) -g
@@ -327,7 +331,11 @@
   # don't need -ldl (FreeBSD)
   LDFLAGS=-lm
 
-  CLIENT_LDFLAGS=-L/usr/X11R6/$(LIB) -lGL -lX11 -lXext -lXxf86dga -lXxf86vm
+  ifeq ($(USE_SDL),1)
+    CLIENT_LDFLAGS=$(shell sdl11-config --libs)
+  else
+    CLIENT_LDFLAGS=-L/usr/X11R6/$(LIB) -lGL -lX11 -lXext -lXxf86dga -lXxf86vm
+  endif
 
   ifeq ($(ARCH),axp)
     TARGETS=\


More information about the quake3 mailing list