On 12-Sep-2001 Dave Sherman wrote:
> Hello everyone,
> 
> I hope this isn't too far off-topic, since I am running a Mandrake
> system...
> 
> I am trying to compile an application that has a GUI front-end. The
> compile dies with an error, "-lX11 not found".
> 
> This appears to be looking for a library, or a directory containing
> libraries, related to X11. Is it looking for X headers?
> 
> I'm not sure where to go from here, so any advice would be very helpful.
> 
> Dave

It is looking for the X11 library.
Try to find where this lib is (file something like libX11.so, ....)
I should be in /usr/lib or /usr/lib/X11

Do you have the -dev package for X11 installed?

Also make sure that the compiler can find it. Try setting the LDFLAGS before
compilation and look at /etc/ld.so.conf. The path to the lib must be in there
when you try to run your program. After changing ld.so.conf you must run
ldconfig!

export LDFLAGS="-L /PATH/TO/X-LIBS"

If the compiler complains about missing .h files also set:
export CFLAGS="-I /PATH/TO/X-HEADER"
export CXXFLAGS="-I /PATH/TO/X-HEADER"
export CPP FLAGS="-I /PATH/TO/X-HEADER"

Gregor
----------------------------------
E-Mail: Gregor Maier <[EMAIL PROTECTED]>
Date: 14-Sep-2001
Time: 08:35:35
----------------------------------

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to