Bryan Forbes wrote:
I'm pleased to hear that. I don't think libbonobomm has really be used seriously so we need someone to test it. But that means you are probably in for a bit of grief. I'll help as much as I can though.I'm trying to generate some orbit classes to wrap evolution-data- server's API and it relies heavily on bonobo.
Better than that /usr/share/idl/bonobo-activation-2.0/Bonobo_Unknown.idl:28 is where Bonobo::Unknown is defined.I've been trying to generate the cpp source with orbitcpp like this: orbit-idl-2 --headerguardprefix=EVOLUTION_CALMM_ - I /usr/share/idl/evolution-data-server-1.0 -I /usr/share/idl/bonobo-2.0 -I /usr/share/idl/bonobo-activation-2.0 /usr/share/idl/evolution-data- server-1.0/Evolution-DataServer-Calendar.idl orbit-idl-2 -lcpp -D__GNOME_Evolution_Calendar_CalView_COMPILATION - I /usr/include/libbonobomm-2.6/bonobomm/ -I /usr/share/idl/evolution- data-server-1.0 -I /usr/share/idl/bonobo-2.0 -I /usr/share/idl/bonobo- activation-2.0 /usr/share/idl/evolution-data-server-1.0/Evolution- DataServer-Calendar.idl but I get this error: /usr/share/idl/bonobo- activation-2.0/Bonobo_Unknown.idl:28: unknown identifier ::Bonobo::Unknown I know ::Bonobo::Unknown is defined in libbonobomm, but I'm not sure how to tell orbitcpp that. Thanks in advance!
What happens if you add -D__Bonobo_Unknown_COMPILATION to the orbit-idl-2 arguments. Without it Bonobo::Unknown is pragma inhibit'ed. I know there is an outstanding bug (http://bugzilla.gnome.org/show_bug.cgi?id=101455) which exists because we only partially support inhibit'ing stuff. But Bonobo::Unknown is something that should work.
-- Bowie Owens CSIRO Mathematical & Information Sciences phone : +61 3 9545 8055 fax : +61 3 9545 8080 mobile : 0425 729 875 email : Bowie Owens csiro au