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

Re: Problèmes de compilation avec libxml2



Le jeudi 28 septembre 2006 19:19, Josselin Mouette a écrit :
> Le jeudi 28 septembre 2006 à 18:08 +0200, Laurent a écrit :
> > Si je mets :
> >
> > INCLUDES = -I/usr/include/libxml2
> >
> > dans mon fichier Makefile.am, que je fasse un autoreconf et un
> > ./configure ça devrait fonctionner non ???
>
> Oui, enfin il y a des macros pour automatiser tout ça.
>
> dans le configure.ac :
> PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.6.0)
> AC_SUBST(LIBXML_CFLAGS)
> AC_SUBST(LIBXML_LIBS)
>
> dans le Makefile.am:
> INCLUDES = $(LIBXML_CFLAGS)
> machin_LIBADD = $(LIBXML_LIBS)

En fait j'ai un répertoire src qui contient les fichiers du programme, un 
répertoire libs qui contient trois librairie que je me fais.
C'est une de ces librairies qui demande libxml2...

Comment dois-je répartir le code ci-dessus ?
Dans quel répertoire dois-je configurer les fichiers configure.ac et 
Makefile.am ?

Merci d'avance
-- 
Laurent
Registered as user #301590 with the Linux Counter

Attachment: pgpqhe4IWPGTu.pgp
Description: PGP signature


Reply to: