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





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