[Gambas-devel] expat and XML trial report of R.O.

ron ronstk at ...124...
Wed Sep 15 23:11:37 CEST 2004


On Wednesday 15 September 2004 14:19, Benoit Minisini wrote:
> On Tuesday 14 September 2004 15:17, ron wrote:

> >
> > GB_COMPONENT(
> >   expatc,
> >   EXPATC,
> >   [expatc component],
> >   [GB_FIND(expat.h, /usr/local /usr, include )],
> >   [GB_FIND(libexpat.$SHLIBEXT, /usr/local /usr, lib)],
> >   [$C_LIB -lexpatc]) ** <-- not sure this is right
> >
> > dnl ---- Check for libxml library
> >
> > GB_COMPONENT(
> >   xml,
> >   XML,
> >   [XML component],
> > dnl  [GB_FIND(xmlversion.h, /usr/local /usr, include )],
> > dnl  [GB_FIND(libxml2.$SHLIBEXT, /usr/local /usr, lib)],
> >   [$C_LIB -lxml]) ** <-- not sure this is right
> >
> > ** I had to add the 2 dnl to get gbxml get in (gbxml is changed to xml)
> 
> GB_COMPONENT must be able to find the includes and the libraries. Just change 
> the search path so that it works.
> 
> [GB_FIND(xmlversion.h, /usr/local /usr, include include/libxml* include/libxml*/* )],
> [GB_FIND(libxml2.$SHLIBEXT, /usr/local /usr, lib)],
> 
> Otherwise, compilation will fails because of missing include paths, linking 
> will fail unless libraries are in /lib and /usr/lib, and surely other 
> problems...
> 

Yessss. Your my man ;)

Well the problem with the two line I found was right.
Most suspected was the first one. Thats solved and works 
now as should do.
In fact when I'm right in this case it is looking for a *.h file
to know the xyz-devel is installed.
Witch one is not important.

Open the line with
> >   [$C_LIB -lxml]) ** <-- not sure this is right
I have found other construction but I copied the 'int'
as template. I assume it is -l[name_of_something]
I did guess on xml is OK, it works, but not sure it
is correct.

Any quick reference to what it must be is welcome.

 





More information about the Devel mailing list