[sugar] How to add a library to the build tree?
Marco Pesenti Gritti
mpg at redhat.com
Sat Mar 24 06:46:58 EDT 2007
On Fri, 2007-03-23 at 21:37 -0700, Don Hopkins wrote:
> I'm trying to add the poppler library to the build, and make another
> library that's a python extension for using it.
> Do I have to hack jhbuild to integrate poppler into the build? (I'm not
> ready to check it in yet, just making it in a sandbox for now.)
> I tried just going to the poppler directory and going "./configure
> --prefix=.../sugar-jhbuild/build", and that made it compile into the
> right place, but it was getting the system libraries instead of the ones
> in the build directory (like cairo, etc).
> Do I have to configure each one of the libraries it uses to point to the
> the right directory? Or is there a way to do that en mass? Or a way to
> get sugar-jhbuild to do that for me?
I'm a little confused...
Poppler is already part of jhbuild, so you can just "sugar-jhbuild
buildone poppler".
In general to have a library pick up the right paths you have to:
1 Use the pkg-config macros in the configure.ac (most of the libs in the
platform use it, included poppler)
2 Run "sugar-jhbuild shell" so that the environment is setup properly
before doing any manual build.
Is this what you was looking for?
Marco
More information about the Sugar
mailing list