Error compiling vlc client

Hello,

I get this error when I try to compile vlc (or MPlayer, I think):--------

(configure, configure…)
checking for sdl12-config… no
checking for sdl11-config… no
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL/SDL.h… no
configure: error: The development package for SDL is not installed.
Please install it and try again. Alternatively you can also configure with
–disable-sdl.

I compiled SDL from sources, so everything should be there, right? Anyway, it’s
a “fresh” libSDL install, with no earlier versions. Going on the instructions on
the faq’s page, here are the outputs from the various commands:

which sdl-config

/usr/local/bin/sdl-config

sdl-config --version

1.2.4

locate libSDL

/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL-1.2.so.0.0.4
/usr/local/lib/libSDL.a
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.so
/usr/local/lib/libSDLmain.a

tail config.log

configure:7134: checking for sdl11-config
configure:7175: checking for sdl-config
configure:7220: checking for SDL/SDL.h
configure:7230: gcc -E -I/usr/local/include -I/usr/local/include/SDL
-D_REENTRANT conftest.c >/dev/null 2>conftest.out
cpp0: warning: changing search order for system directory "/usr/local/include"
cpp0: warning: as it has already been specified as a non-system directory
configure: failed program was:
#line 7225 “configure”
#include “confdefs.h”
#include <SDL/SDL.h>

Does anyone have an idea what could be going wrong here? It seems like it’d be
something fairly elementary, but /usr/local/include/SDL/SDL.h does exist, as do
all the other header files for that directory.

regards,
-Felipe Gasper

Felipe Gasper wrote:

Hello,

I get this error when I try to compile vlc (or MPlayer, I think):

(configure, configure…)
checking for sdl12-config… no
checking for sdl11-config… no
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL/SDL.h… no
configure: error: The development package for SDL is not installed.
Please install it and try again. Alternatively you can also configure with
–disable-sdl.

tell them not to put the “SDL/” prefix on the include file.
the prefered method is: #include "SDL.h"
and not #include <SDL/SDL.h>

so complain to the developers.

I’m not saying that your installation of SDL is correct either, but I have no easy method for testing that…
you should check the validity of your “sdl-config --prefix” output probably…–
-==-
Jon Atkins
http://jonatkins.org/