[Gambas-devel] libxml-0.0.2
ron
ronstk at ...124...
Mon Oct 4 09:22:09 CEST 2004
Hi Daniel,Benoit
Still having problems.
libxml2 is as far I can see OK now.
My result sofar follows.
The libxml is the only extra lib now to make sure no other are
messing up.
I do every time after changes:
make clean; ./reconf; ./configure --disable-curl; make
-------------------
make[4]: Leaving directory `/usr/local/src/gambas-0.99/src/lib/vb'
Making all in libxml
make[4]: Entering directory `/usr/local/src/gambas-0.99/src/lib/libxml'
if /bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/share /usr/local/include/libxml2 -g -O2 -pipe -Wall -fno-strict-aliasing -g -Os -MT main.lo -MD -MP -MF ".deps/main.Tpo" \
-c -o main.lo `test -f 'main.c' || echo './'`main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Plo"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/share /usr/local/include/libxml2 -g -O2 -pipe -Wall -fno-strict-aliasing -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o main.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make[4]: *** [main.lo] Error 1
make[4]: Leaving directory `/usr/local/src/gambas-0.99/src/lib/libxml'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/gambas-0.99/src/lib'
I do not understand why:
gcc: cannot specify -o with -c or -S and multiple compilations ??????????????
*****************************************************************************
----------------
in */configure.in
dnl libxml
GB_COMPONENT(
libxml,
LIBXML,
[LIBXML component],
[GB_FIND(xmlversion.h, /usr/local /usr, include include/libxml* include/libxml*/*)],
[GB_FIND(libxml2.$SHLIBEXT, /usr/local /usr, lib)],
[-llibxml2])
note: In last [$GLIB_C -llibxml] changed to [-llibxml2]
if it must be the library then the name should be libxml2 instead libxml.
-----------------
in */src/lib/Makefile.am
SUBDIRS = debug eval db compress @QT_DIR@ @NET_DIR@ @SDL_DIR@ @VB_DIR@ @LIBXML_DIR@
EXTRA_DIST = *.component example
install-exec-local:
@cp -f *.component $(pkglibdir)
-----------------
in */src/lib/libxml/Makefile.am
INCLUDES = -I$(top_srcdir)/src/share /usr/local/include/libxml2 # @LIBXML_INC@
EXTRA_DIST = *.component
pkglib_LTLIBRARIES = lib.gb.xml.libxml.la
lib_gb_xml_libxml_la_LIBADD = /usr/local/include/libxml2 # @LIBXML_INC@
lib_gb_xml_libxml_la_LDFLAGS = @LD_FLAGS@ -lxml2 -lpthread -lz -lm
lib_gb_xml_libxml_la_SOURCES = \
main.h \
main.c \
CXMLNode.h \
CXMLNode.c \
CXMLReader.h \
CXMLReader.c \
CXMLWriter.h \
CXMLWriter.c \
CXMLDocument.h \
CXMLDocument.c
install-exec-local:
note1: /usr/local/include/libxml2 instead @LIBXML_INC@
note2: I had also to remove /libxml as end of above line
behind libxml2 to get it correct.
The @LIBXML_INC@ does not work as in the wiki page here.
--------------------------
./configure shows the correct path to the libxml however if I use the @xxx@
then during compile it is to /usr/include instead /usr/local/include
Sofar it is going OK for finding libraries and include as I can see.
libxml2 is build and installed to /usr/local as prefix.
'make test' with it says everything OK.
More information about the Devel
mailing list