[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: How to build xorg-server 1.5?
From:       "Dan Nicholson" <dbn.lists () gmail ! com>
Date:       2008-06-27 22:15:18
Message-ID: 91705d080806271515r194cb601s759e0612bf38eb2e () mail ! gmail ! com
[Download RAW message or body]

On Fri, Jun 27, 2008 at 2:32 PM, Mohan Parthasarathy <suruti94@gmail.com> wrote:
>>
>> You shouldn't need to pass --x-includes at all. Does configure fail if
>> you don't pass those options? Does it pick up the correct xdamage?
>
> I tried all possible combinations and here is my conclusion
>
> 1) configure needs PKG_CONFIG_PATH to be set. Otherwise it can't find some
> of the libraries
> 2) As you say, no other options to configure are needed. But the compilation
> fails for me when it
>    comes to xdemos. Though LibGL.so refers to libXdamage, the linker picks
> it up from /usr/lib.
>    If i set LD_LIBRARY_PATH in addition, then it works fine.

Ah, now I see. Yeah, this is one of the nice things that libtool does
for you that we don't get with Mesa's custom build. We're not linking
the app directly to libXdamage, but instead it's being picked up by
the linker as being needed by libGL. Since we don't tell the linker
anything special about how to find libXdamage, it searches in the
system default libraries and finds /usr/lib/libXdamage.

If you're using GCC and GNU ld, you can build with
LDFLAGS="-Wl,-rpath,$yourdir/lib" if you're not installing to the
system default locations. You can pass that as an argument to Mesa's
configure. This is something that libtool does for you, but it's a ton
of logic to duplicate. Maybe someday.

--
Dan
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic