Re: [libxml++] LibXML++ Min Requirements/ diff between 1 & 2.7?



> >What are the ABSOLUTE minimum requirements for using this package?
> >I know the requirements stated for version 2.6 & Higher on the sourceforge
> >site are libxml2 & glibmm-2.4, but glibmm-2.4 seems to require the GTK+
> >library, which creates more overhead.  The site mentions using a subset of
> >glibmm-2.4 that contains Glib::ustring but doesn't expand any further on
> > how to do this.
>
> I personnaly did not try to extract Glib::ustring. Can't help on this.
> However you don't need GTK+ to install glibmm-2.4, which depends only on
> glib. This make the dependencies much lower than you suggest.
> FYI:
> http://sourceforge.net/mailarchive/forum.php?thread_id=3923642&forum_id=127

We do this in our custom RPM specfile:
# Remove glib::ustring stuff as we don't need it
perl -p -i -e "s/Glib::ustring/std::string/g" `find . -name *.cc`
perl -p -i -e "s/Glib::ustring/std::string/g" `find . -name *.h`
perl -p -i -e "s/glibmm\/ustring.h/string/" `find . -name *.cc`
perl -p -i -e "s/glibmm\/ustring.h/string/" `find . -name *.h

and apply this patch, too:

diff -u -r libxml++-2.6.1/configure.in libxml++.ustring/configure.in
--- libxml++-2.6.1/configure.in Wed May  5 15:01:34 2004
+++ libxml++.ustring/configure.in       Fri Jul  2 21:41:14 2004
@@ -39,7 +39,7 @@

 AC_CHECK_HEADERS(string list map, , exit)

-PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.6.1 glibmm-2.4 >= 2.4.0)
+PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.6.1)

 # Dummy conditional just to make automake-1.4 happy.
 # We need an always-false condition in docs/Makefile.am.
diff -u -r libxml++-2.6.1/libxml++-2.6.pc.in 
libxml++.ustring/libxml++-2.6.pc.in
--- libxml++-2.6.1/libxml++-2.6.pc.in   Wed May  5 11:38:22 2004
+++ libxml++.ustring/libxml++-2.6.pc.in Fri Jul  2 21:48:22 2004
@@ -5,7 +5,7 @@

 Name: libxml++
 Description: C++ wrapper for libxml
-Requires: libxml-2.0 glibmm-2.4
+Requires: libxml-2.0
 Version: @VERSION@
 Libs: -L${libdir} -lxml++-2.6
 Cflags: -I${includedir}/libxml++-2.6 -I${libdir}/libxml++-2.6/include

Hope that helps.

Cheers,
Thomas




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