Re: Building libxml++ with self-build libxml2



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 05/09/2012 01:10 PM, Kjell Ahlstedt wrote:
> 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


Hi Kjell,

thanks for the hints, now I got it working :-)

Regards,
Jost
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPqmHoAAoJEG6HPMAgWtVzjqoQAMz/EgQNMV/2/sDdGA84qJyi
bgSCDZ09NAjFCYm5wLUohnDFYNu2WyTGfM95qK7KoRO+UtNmKsm9d4tOzIOTxF4g
1FEPFLREKtNcoQpyAD+8gWwB8bIXuuR58i3XHvjm2jlW8wQvSEni6CtfMbXs7fBp
6cBTKv4F3GPB8Y4KdZpjz9fkTgmb7IpY4NmBCRIfjCuc2I/Jza+FSHirmqBLvlHD
iwI3Xwc6gWeCKMCosy/z75IkbHVRlW9ahLFP0PgF7shWYpcBAVVOGj3h32QKsBoQ
PLn5wjvVQ0Xdap9Q6Qzj9C3VwMSRxAKY/NVj3Pgu6UE16kjHhCwqUEzC6u6IWGt4
P84+bHj4Rh11E4pD4y8F3F8g803s1nknab2Y4KF02wvmmjsJUXlo92yc+G4KrTM6
bdQ+/wtyUYpFL5ilWb3f+y4V/NXOQxPvmjJQYs1Nw3lPfXDuCjkDF5KtDgoPjFgS
4MGZXjkI0fy+tI4iHJK+Yz8pgoMYi83oWl49EfIz2GA2+tYZzNZGrhoiV6uqceEy
vcAgvLaO4kKUE2OGx4Zp5lBXVk3blGI0yqPO/elKlFySIfZ3D4XdZFMNWSkJfhr2
V00lqmqxYbBkJE6W+/iZT56LUFxrwNFERHq4J6baukYecALbWWZH4EivYUnXG+b5
kftLpx1SXt2DO9QnPuEq
=6fYT
-----END PGP SIGNATURE-----


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