PDA

View Full Version : alienstream and xine libs



Waldy Wisniewski
2004-05-22, 00:22
Hi all,

Having a little trouble compiling the alienstream helper. After adding the xine libraries & issuing the command

gcc -Wall -O2 `xine-config --cflags` `xine-config --libs` -lX11 -lm -o alienstream alienstream.c

I get the following output;

cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status

I have /usr/X11R6/lib in my ld.so.conf file.

Any ideas to fix this plz?

ps thanks to Peter H. for his Shoutcast plugin & Dan for the music archive plugin. Superb work!

Niek Jongerius
2004-05-22, 06:26
> gcc -Wall -O2 `xine-config --cflags` `xine-config --libs` -lX11 -lm -o
> alienstream alienstream.c
>
> I get the following output;
>
> cc1: warning: changing search order for system directory
> "/usr/local/include"
> cc1: warning: as it has already been specified as a non-system directory
> /usr/bin/ld: cannot find -lX11
> collect2: ld returned 1 exit status
>
> I have /usr/X11R6/lib in my ld.so.conf file.

Looks like you are missing either this directory in your lib search
path for compiling (which is not the same as the ld.so.conf file),
or you don't have the xdevel package installed. Do you have the file
/usr/X11R6/lib/libX11.a on your system?

Regards, Niek.

Waldy
2004-05-22, 07:49
Thanks Niek,

I don't have /usr/X11R6/lib/libX11.a file. I'm using redhat8 & can't find
an xdevel package in their list of available packages, any idea where I get
it?

ps if I put -L/usr/X11R6/lib on the gcc command that should sort the path
out?

regards Waldy

Bill Comisky
2004-05-22, 08:56
On Sat, 22 May 2004, Waldy wrote:

> Thanks Niek,
>
> I don't have /usr/X11R6/lib/libX11.a file. I'm using redhat8 & can't find
> an xdevel package in their list of available packages, any idea where I get
> it?

How about the XFree86-devel package? That's what http://rpm.pbone.net
gave me when I searched for libX11.a. On my system I only have a
libX11.so, which I think links dynamically instead of statically.

> ps if I put -L/usr/X11R6/lib on the gcc command that should sort the path
> out?

That should work. I know for .so linking (like on my system) you could
alternately put /usr/X11R6/lib in your /etc/ld.so.conf and run ldconfig as
root.

bill

--
Bill Comisky
bcomisky (AT) pobox (DOT) com

Waldy
2004-05-23, 05:50
Thanks for your help guys, all compiled now.
See if I can get it all to work now.

regards Waldy