How to build xorg-server 1.5?

Mohan Parthasarathy suruti94 at gmail.com
Fri Jun 27 14:32:09 PDT 2008


>
>
> >
> >>
> >> >>
> >> >> How are you building mesa? Are you using ./configure or are you using
> >> >> "make linux-dri" or something like that? What platform is this on? Is
> >> >> libGL being linked to libXdamage?
> >> >
> >> > That was the problem. libGL was pointing to /usr/lib/libXdamage. My X
> >> > stuff
> >> > is all under "modular".
> >> > But including option --x-includes and --x-libraries when configuring
> >> > mesa
> >> > still makes libGL.so point
> >> > to /usr/lib/. What option should i use for using the X includes and
> libs
> >> > under "modular" which was
> >> > populated when building X.
> >>
> >> Are you setting PKG_CONFIG_PATH? Mesa will first try to find the X
> >> libraries through pkg-config, which will be true for you since you're
> >> building for Xorg. If you aren't putting $youdirectory/lib/pkgconfig
> >> at the front of PKG_CONFIG_PATH, pkg-config will only search in the
> >> system paths, /lib and /usr/lib. Read docs/autoconf.html in the mesa
> >> tree.
> >
> > Yes, PKG_CONFIG_PATH was set. After using --x-include, --x-libs option
> and
> > a make clean, the problem is now fixed.  I guess this can be made simpler
> > :-)
>
> 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.

-mohan


>
> --
> Dan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20080627/d4d56b3e/attachment.html>


More information about the xorg mailing list