Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-02

libxml on MacOS X

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andreas Schneider

Hello,

is there a specific reason why libxml is not built for MacOS X / darwin? My first instinct was to "just try it" and but then I found out the hard way, that I have no idea how to correctly use fpmake ...

So in case there is simply no one who tried libxml on OSX, I would be willing to do. However, how to correctly build it? I modified fpmake.pp to include "darwin" as possible target, but calling fpmake fails:

./fpmake
The installer encountered the following error:
Could not find unit directory for dependency package "rtl"

What would be the best next step from here?

Thanks!

Reply by email

Marco van de Voort
to Andreas Schneider

In our previous episode, Andreas Schneider said:

Show quoted text 11 lines
So in case there is simply no one who tried libxml on OSX, I would be willing to do. However, how to correctly build it? I modified fpmake.pp to include "darwin" as possible target, but calling fpmake fails: ./fpmake The installer encountered the following error: Could not find unit directory for dependency package "rtl" What would be the best next step from here?

Copy libxml/src/* simply to your working dir and compile your demo ?

Reply by email

Andreas Schneider
to Marco van de Voort

Oh god, that must have been tunnel vision. Yeah, that was the obvious next step. Thanks :-)

I compiled all the supplied examples and ran them, and they seem to print plausible results.
The only hurdle is, that ld doesn't pick up libxml2.dylib on its own - for whatever reason.

I had to explicitly add {$linklib xml2} to the code to get it to link. (Although in the code it explicitly references
"'libxml2.'+sharedsuffix;" already, which should have the same result, imho.)

Can I easily install the libxml package into my installed fpc for the given target? (by using fppkg, fpmake, or whatever?)

Marco van de Voort 21. Februar 2015 20:33 Copy libxml/src/* simply to your working dir and compile your demo ?

Reply by email