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

Re: Two compilation errors



On Fri, 2004-10-01 at 16:57, Tong wrote:
> On Fri, 01 Oct 2004 14:32:13 -0700, Eric Gaumer wrote:
> 
> > On Fri, 2004-10-01 at 14:10, Tong wrote:
> >> Hi, 
> >> 
> >> I'm trying to compile DWI (a simple system to create data driven
> >> applications, http://www.linas.org/linux/dwi/), but met with 2
> >> compilation errors. 
> >> 
> >> 1) in the dwi-gtk directory, I got the "No package 'xml2' found" error:
> >> 
> >> make[2]: Entering directory `/export/home/tong/try/dwi-0.6.1/dwi-gtk'
> >> if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -I ../app -I ../src -I ../db_drivers `pkg-config --cflags xml2 glib-2.0 gobject-2.0 gtk+-2.0 libgnomeui-2.0 libglade-2.0`  -I/usr/include/glib-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libxml2 -MT duifield-gtk.lo -MD -MP -MF ".deps/duifield-gtk.Tpo" -c -o duifield-gtk.lo duifield-gtk.c; \
> >> then mv -f ".deps/duifield-gtk.Tpo" ".deps/duifield-gtk.Plo"; else rm -f ".deps/duifield-gtk.Tpo"; exit 1; fi
> >> Package xml2 was not found in the pkg-config search path.
> >> Perhaps you should add the directory containing `xml2.pc'
> >> to the PKG_CONFIG_PATH environment variable
> >> No package 'xml2' found
> >> 
> >> How can I fix this? 
> >> 
> >> Note that I'm sure I have the libxml2 libxml2-dev packages
> >> installed. Besides, I tried to search for the "xml2.pc" from the
> >> "Debian Package Contents Search" but didn't find any match.
> > 
> > This is the name of the file. Just create a symlink with the name it's
> > looking for.
> > 
> > /usr/lib/pkgconfig/libxml-2.0.pc
> 
> Can you be more specific?
> 
> I have the /usr/lib/pkgconfig/libxml-2.0.pc file, and 
> ln -s /usr/lib/pkgconfig/libxml-2.0.pc /usr/lib/pkgconfig/xml-2.0.pc
> 
> didn't seems to be help. 
> 

There is a typo in dwi-gtk/Makefile.am
This patch will take care of your first problem but you'll need to run
automake to update the Makefile.in file. This may get confusing if your
not familiar with the GNU autotools. 

An easier solution may be just editing the Makefile.in and fixing the
same lines. Just search that file for xml2 and make the changes I gave
below, then rerun configure so that new Makefiles are generated.

--- Makefile.am 2004-07-29 06:49:51.000000000 -0700
+++ Makefile.am.ok      2004-10-01 21:52:41.000000000 -0700
@@ -16,7 +16,7 @@
        -I ../app \
        -I ../src \
        -I ../db_drivers \
-       `pkg-config --cflags xml2 glib-2.0 gobject-2.0 gtk+-2.0 libgnomeui-2.0 libglade-2.0`
+       `pkg-config --cflags libxml-2.0 glib-2.0 gobject-2.0 gtk+-2.0 libgnomeui-2.0 libglade-2.0`

 libdwi_gtk_la_SOURCES = \
        duifield-gtk.c   \
@@ -42,7 +42,7 @@

 libdwi_gtk_la_LDFLAGS = \
        -module \
-       `pkg-config --libs xml2 glib-2.0 gobject-2.0 gtk+-2.0 libgnomeui-2.0 libglade-2.0`
+       `pkg-config --libs libxml-2.0 glib-2.0 gobject-2.0 gtk+-2.0 libgnomeui-2.0 libglade-2.0`

 libdwi_gtk_la_LIBADD =

-- 
Eric Gaumer <gaumerel@ecs.fullerton.edu>

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: