Re: [xml] libxml -> .

Date view Thread view Subject view Author view

From: Kenneth Pronovici (pronovic@skyjammer.com)
Date: Mon Oct 02 2000 - 21:51:45 EDT


> This can be solved through clever (arcane maybe) use of preprocessor,
> at least I am pretty sure it can be. Note that I am at the moment working
> far too many hours in the day on some other bsd/win32/linux
> cross-platform code.
> [...]
> intricacies of cross-platfrom building, anyone so inclined
> is welcome to provide me with due dose of enlightenment.

Maybe I'm missing something here, but why not just have internal
libxml code include use

   #include "file.h"

but install the include files to

   /include/libxml/file.h

(or wherever) and have libxml client code use

   #include <libxml/file.h>

??

The way I've done this with libraries in the past is to have an include
directory for the library that I just path to during the library build
with a "-I ../include" compiler flag - there's no reason why it has to
match what the clients use, right?

Anyway, it seems like this would simplify things...

KEN

--
Kenneth J. Pronovici <pronovic@ieee.org>
Alliance of Computer Professionals (http://www.acpros.com/)
Personal Homepage: http://www.skyjammer.com/~pronovic/
Home: 763.546.0140, NWA: 612.726.0842
"Hell hath no fury like the weather when I'm camping..." 

On Mon, 2 Oct 2000, David Doolin wrote:

> > In message <20001003011940.L5935@w3.org>, Daniel Veillard writes: > > > >On Mon, Oct 02, 2000 at 05:46:40PM -0500, Timothee Besset wrote: > >> > >> Why does the configure script creates a libxml symlink which points to > >> the main dir? Are the #include "libxml/*.h" from old code that relied on > >> a libxml/ directory? This is causing problems for win32 builds. > > > > This is not a legacy problem it's a current problem > >Includes have to be made <libxml/xxx.h> though the .h are in the > >same directory as the .c . To cope with the issue I used a symlink > >this work on unix, I don't know how you can do this on Windows > > > What I did with libxml is simply commented out the stuff that > broke too badly to fix fast (or #defined SYM 0 for 1), and > moved the headers into their own directory. This could be > done like this: libxml, libxml/src, libxml/include, libxml/bin > etc. All this is a matter of taste, I personally like because > I can snap the entire header directory to $MSDEV\include > and do #include <libxml/whatever.h>. Note that the internally > used headers should be included using quotes. > > Like I said, some of this is a matter of taste, some of it a matter > of making cross-platform builds as easy as possible. It's > Daniel's call in the end. > > I should probably add that the current structure of libxml > slows me down a bit for building in win32. Since I am > painfully well aware of my profoiund ignorance wrt to the > > ciao > > > > > > >> Also, I used the --disable-iconv option in the configure script, but the > >> resulting xmlversion.h didn't reflect my changes. It was still > >> #if 1 > >> #define LIBXML_ICONV_ENABLED > >> #else > >> #define LIBXML_ICONV_DISABLED > >> #endif > > > >configure --help > >[...] > >--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] > >--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) > >[...] > >--with-iconv Add the ICONV support (on) > > > >When the way to disable them is --without-iconv > > > >> What is iconv? Is it an external library? > > > > POSIX libray: codeset conversion facility > > http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.h.html > > > > > >Daniel > > > >-- > >Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : > >Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW > >Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind > > http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe > >---- > >Message from the list xml@rpmfind.net > >Archived at : http://xmlsoft.org/messages/ > >to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net > ---- > Message from the list xml@rpmfind.net > Archived at : http://xmlsoft.org/messages/ > to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net >

---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 02 2000 - 22:43:13 EDT