Re: Building libxml++ with self-build libxml2
- From: Kjell Ahlstedt <kjell ahlstedt bredband net>
- To: Jost Baron <Jost Baron gmx de>
- Cc: libxmlplusplus-list gnome org
- Subject: Re: Building libxml++ with self-build libxml2
- Date: Wed, 09 May 2012 13:10:51 +0200
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]