Io on OS X: Get a fixed libsgml
libsgml.zip is the libsgml library with a slightly modified build sequence, to accomodate the Mac OS X need for .dylib instead of .so files.
I learnt a bit on making Makefile.in and configure.in do my bidding, but don’t do this with your spare time. Try and download this file instead.
- get the fixed libsgml, unpack it
make clean && ./configure && makesudo make install- recompile your Io!
- start
io, and test:
SGML; "<foo>bar</foo>" asXML
Update: I just took a look at this again, now on a newer Intel Mac. Here, there was trouble. There is a newer, better source code chunk at: http://www.hick.org/code/skape/libsgml/. Patch that instead. If and when I have something, I’ll post it here. It seems to be the LIBBIN line that irks.
LIBBIN="\\${CXX} \\${DEBUG} -Wall -dynamiclib -install_name /usr/local/lib/libsgml.dylib -fPIC -o ../libsgml.dylib \\${OBJS}"
That was my blind try. And, it compiles a “dylib” alright. The install step is broken, though. I can not figure out how to get the Makefile.in to recreate the Makefile. That should happen on leaving the .configure.in, I think. Gotta learn more about this.
Update again: GNU Autoconf, Automake and Libtool helps understanding what those files are about. Now I have a little working knowledge, but my head’s spinning with all the things you could do with your Makefiles…
[tags]Io[/tags]

Thanks! Made my SGML parser work in Io. I appriciate your help.
Glad it helped, Jeremy. May your Io days be happy.