Re: Building libxml++ with self-build libxml2



2012-05-08 17:11, Jost Baron skrev:
Hi!

I want to use libxml++, but installing it via package manager on the system I'm working on is not an option. So I've downloaded libxml2 and built it. Now I am trying to build and link libxml++ against this build, but the configure script always complains:

No package 'libxml-2.0' found
No package 'glibmm-2.4' found

The second one is obvious, glibmm is not there. But libxml2 is there, and no matter how I try to tell the libxml++-configure script the paths, it still complains about the missing libxml-package.

How do I get libxml++ to run on this system?

Thanks in advance,
Jost
You say that you have built libxml2. Have you also installed it (make install)?

libxml++'s configure script uses pkg-config, when it searches for libxml-2.0 and glibmm-2.4. pkg-config searches for the file libxml-2.0.pc, and that file contains information where to search for libxml2.a.

Do you know that you can choose where to install libxml2, if you don't like the default /usr/local?
  ./configure --prefix=/your/directory

You will probably have to tell pkg-config where to search for libxml-2.0.pc by setting export PKG_CONFIG_PATH=/your/directory/lib/pkgconfig:/your/directory/share/pkgconfig

Kjell


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]