Re: [ooc-compiler] How to use H2O?
Brought to you by:
mva
|
From: Stewart G. <sgr...@us...> - 2009-09-28 15:02:48
|
Hi Frank and Bernhard, Thanks Bernhard for putting that documentation together. H2O is unfinished, but is still usable within limits. The main problem it has is dealing with the myriad ways that the language is mangled in header declarations. Many of the base files can include nasty bits of code including templates, assembler, etc. Therefore, its usually necessary to eliminate these by a process of trial and error. Unfortunately, the error reporting is often not as good as it could be, so it can be hard to find out where the translator runs into difficulty. Most APIs like GTK are reasonably stable; it tends to be the base files that change over time. I've attached an example configuration file, which I last used to translate GTK, probably on a Windows system. Note the list of "Excludes" and the definitions required to replace them. If you're interested in GTK, I think its probably not too difficult to get something working. GTK is coded for a C-language interface, which makes it an easy target. Let me know if you need help with it. I've got a current Debian system I can test it out on. Cheers, Stewart Treutwein Bernhard wrote: > Hi Frank, > > hopefully Stewart also repllies, maybe a conjoint effort could yield some > more documentation for H2O, but to get started take a look at the enclosed > pdf. It contains my short notices about installation and Stewart's hints > about usage ... > > > I don't have a lot experiences with OOC and H2O it, but I successfully > compiled it under Cygwin and I have a setup for using it with > BlackBox/ComponentPascal. That is also the reason for the pdf, I've written > up my notes in standard format of the BlaxBox Component Framework (see > http://www.oberon.ch/BlackBox.html). > > I've used it only very occasional. > > regards > -- > Bernhard Treutwein > e-mail: bernhard treutwein (at) verwaltung uni-muenchen de > > >> -----Original Message----- >> From: Frank Hrebabetzky [mailto:hr...@te...] >> Sent: Saturday, September 26, 2009 7:52 PM >> To: ooc...@li... >> Subject: [ooc-compiler] How to use H2O? >> >> >> Hi all, >> >> For my actual toy program I need a GTK interface module which I am >> completing gradually. A (direct) response to my last >> question ([ooc-compiler] Bug? Record field changes on its own) >> convinced me that the error lies in the interface module. To >> check it I >> would like to generate the interface with H2O and compare it with my >> own. My questions are: >> >> 1. How to install H2O? >> I didn't compile oo2c from source, but installed the Ubuntu >> repository version. I would like to keep it like this because >> everything works well. I found the H2O sources on >> oo2c_32-21.9.tar.bz2. What do I do with them? >> >> 2. How to use H20? >> Will installation result in an executable which I call like >> 'h20 /usr/share/include' and out come miraculously the interfaces to >> all the header files on my machine? >> Or do I have to write my own program calling imported H2O >> modules in the >> right manner (parsing the correct header files in the correct >> sequence, >> then generating the interface code), or something like that? >> -- >> Frank Hrebabetzky +55 / 48 / 3235 1106 >> Florianopolis, Brazil >> >> -------------------------------------------------------------- >> ---------------- >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. >> Jumpstart your >> developing skills, take BlackBerry mobile applications to >> market and stay >> ahead of the curve. Join us from November 9-12, 2009. >> Register now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> ooc-compiler mailing list >> ooc...@li... >> https://lists.sourceforge.net/lists/listinfo/ooc-compiler >> |