[MPlayer-users] Re: radeon_vid.c compile error

Steven M. Schultz sms at 2BSD.COM
Thu Apr 29 22:14:05 CEST 2004



On Thu, 29 Apr 2004, adland wrote:

> 
> > radeon_vid.c:29: X11/Xlib.h: No such file or directory
> 
> this is your major error above.

	That's the _symptom_ of the problem - the problem is that
	$_inc_x11 is not being set and/or passed thru to the lower level 
	Makefile.   

> this is from the configure script see the directories it checks for 
> the header files  

Checking for X11 headers presence ... yes (using /usr/X11/include)
Checking for X11 libs presence ... yes (using /usr/X11R6/lib)

	./configure found both the libraries and the header files just fine.

	The path /usr/X11/include is not being added to something because
	RADEON_CFLAGS= doesn't get /usr/X11/include added.   

	The rest of MPlayer builds fine - witness the earlier  compilation of
	'vosub_vidix.c':

cc -c -I../libvo/ -I../../libvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -I. -I.. -I../osdep -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/SDL -D_REENTRANT -D_THREAD_SAFE -I/usr/X11/include    -DMPG12PLAY  -o vosub_vidix.o vosub_vidix.c

	That works because the detected /usr/X11/include was added to the
	flags.

	The vidix/drivers/radeon_vid.c fails because the -I/usr/X11/include
	was NOT added:

cc -c -I../libvo/ -I../../libvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -fPIC -I. -I.. -o radeon_vid.o radeon_vid.c
radeon_vid.c:29: X11/Xlib.h: No such file or directory
radeon_vid.c: In function `probe_fireGL_driver':
radeon_vid.c:925: `Display' undeclared (first use in this function)

	Note the lack of -I/usr/X11/include even though:

	1) HAVE_X11 is defined,

	and 

	2) ./configure says it found the X11 headers in /usr/X11/include

	Just need to find a good place to add the detected X11 path to the
	flags.

	Steven Schultz




More information about the MPlayer-users mailing list