RE: [libxml++] Problem compiling libxml++



Murray,

Thank you for your response. Shame on me. I could have looked at
pkgconfig or even at the configure --help output

Do you know when you guys will release a version of libxml++ without the
glibmm dependency?

Thank you for your help

Matt

-----Original Message-----
From: Murray Cumming [mailto:murrayc murrayc com] 
Sent: Friday, December 09, 2005 4:50 AM
To: Labour, Matthieu (MLPRO SF)
Cc: libxmlplusplus-general lists sourceforge net
Subject: Re: [libxml++] Problem compiling libxml++


On Wed, 2005-12-07 at 11:56 -0500, Labour, Matthieu (MLPRO SF) wrote:
> Hi,
> 
> I would like to use libxml++
> 
> I got the following problem with configure
> 
> checking for pkg-config... /usr/bin/pkg-config 
> checking pkg-config is at least version 0.9.0... yes 
> checking for LIBXML_CFLAGS... 
> checking for LIBXML_LIBS... 
> Package libxml-2.0 was not found in the pkg-config search path. 
> Perhaps you should add the directory containing `libxml-2.0.pc' 
> to the PKG_CONFIG_PATH environment variable 
> No package 'libxml-2.0' found 
> configure: error: Package requirements (libxml-2.0 >= 2.6.1 glibmm-2.4
> >= 2.4.0) were not met. 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you 
> installed software in a non-standard prefix.
> 
> Alternatively you may set the LIBXML_CFLAGS and LIBXML_LIBS
> environment variables 
> to avoid the need to call pkg-config.  See the pkg-config man page
> for 
> more details.
> 
> Then I changed  set LIBXML_CFLAGS & LIBXML_LIBS
> 
> bash-2.05b$ export
> LIBXML_CFLAGS=/projects/xdirect/thirdparty/libxml2/include 

This is not the correct way to set CFLAGS. I think you need to use
something like "-I /pathtoheaders"

> bash-2.05b$ export
> LIBXML_LIBS=/projects/xdirect/thirdparty/libxml2/lib

And "-L /pathtolibs -lnameoflibwithoutthelibatstart"

But that is unlikely to be easy to get right. Really, it would be better
to find out whether you have libxml and glibmm installed (including
their -dev or -devel packages from your distro).

[snip]
> OS name : Linux 
> OS release : 2.4.21-32.0.1.ELsmp 
> OS version : #1 SMP Tue May 17 17:52:23 EDT 2005 
> Hardware platform : i686 
> Machine uptime : 269926

What distro is this exactly?

[snip]

________________________________________________________________________
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------




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