Re: [gnome-db] libgda on cygwin problem



* [ Fernando Martins <fmartins hetnet nl>
* Fri, 28 Jun 2002 01:11:47 +0200 ]
> It looks like _WIN32 should be defined, but it's not. If I comment out the
> ifndef, the compilation completes (with a few warnings). I don't know what
> should be done to have _WIN32 defined. Can someone help here?

You can do CFLAGS="-D_WIN32" ./autogen.sh

> 4) After taking unistd.h out of the loop the compilation stopped with:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/include/glib-2.0 -I/lib/glib-2.0/include
>  -I.
> . -I.. -DLIBGDA_PLUGINDIR=\"/usr/local/lib/libgda/providers\" -DLIBGDA_LOCAL
> EDIR
> =\"/usr/local/share/locale\" -DLIBGDA_GLOBAL_CONFIG_FILE=\"/usr/local/etc/li
> bgda
> /config\" -g -O2 -Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wm
> issi
> ng-prototypes -Wnested-externs -Wpointer-arith -Wsign-promo -Wno-sign-compar
> e -c
>  gda-config.c  -DDLL_EXPORT -DPIC -o .libs/gda-config.lo
> gda-config.c:33: libxml/xmlmemory.h: No such file or directory
> gda-config.c:34: libxml/parser.h: No such file or directory
> 
> libxml is not installed (but libxml2 is) in cygwin and it's not part of the
> available package list. Anyway, from the instructions to compile libgda in
> cygwin, libxml2 is required, not libxml. What's going on? What can I do?

You should have libxml directory under /usr/include. Otherwise, you can
add another option to CFLAGS: -Ipath_to_your_libxml_include_directory
> 
> Another question: what do I have to do for libgda to be able to access
> postgres (btw, if you care, finally it runs ok in win98!!!) in cygwin? I
> would like to try gda-test.c which I guess uses postgres-test.c.

You should set up a new provider for postgres configuration pointing to 
127.0.0.1 (you can copy a configuration from linux and do some little
changes).

-- 
Gonzalo Paniagua Javier <gonzalo gnome-db org>
http://www.gnome-db.org/~gonzalo/




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