Hi Joe, Thanks for taking a look at this.
On Sat, Aug 27, 2011 at 6:03 PM, Joe Groff <arc...@gmail.com> wrote: > It looks like the glib.ffi version got factored out after Blei originally > branched, but the merge threw it all back in again. I pushed a patch that > merges the actual changes in by hand. Does it get further now? There's one remaining load error; GError' s definition is duplicated. In glib.ffi, it's a struct, in gobject.ffi it's a opaque C-TYPE. This suggests the latter is erronous: resource:basis/gdk/pixbuf/ffi/ffi.factor 27: f { { pointer: GError initial: f } } ^ More than one vocabulary defines a word named “GError” The following restarts are available: :1 Use the glib.ffi vocabulary :2 Use the gobject.ffi vocabulary :3 Load resource:basis/gdk/pixbuf/ffi/ffi.factor again 4 :res Load resource:basis/gdk/ffi/ffi.factor again 5 :res Load resource:basis/ui/backend/gtk/gtk.factor again When I try to run it, I get this error: ( scratchpad ) "ui.tools" run Generic word underlying>> does not define a method for the fixnum class. Dispatching on object: 192 Type :help for debugging help. ( scratchpad ) :c (U) Quotation: [ c-to-factor -> ] Word: c-to-factor (U) Quotation: [ swap >c call -> c> drop ] (O) Word: command-line-startup (O) Word: listener (O) Word: (listener) (U) Quotation: [ [ ~quotation~ dip swap ~quotation~ dip ] dip swap [ call datastack ] dip -> swap [ set-datastack ] dip ] (U) Quotation: [ call -> datastack ] (O) Method: M\ gtk-ui-backend (with-ui) (O) Word: start-ui (U) Quotation: [ listener-window* -> drop ] (O) Word: listener-window* (O) Word: <listener-gadget> (O) Word: add-toolbar (O) Word: <toolbar> (O) Word: <command-button> (O) Word: <border-button> (O) Method: M\ button-pen pen-pref-dim (O) Method: M\ tile-pen pen-pref-dim (O) Word: image-dim (O) Word: cached-image (O) Method: M\ gtk-image stream>image (O) Word: GdkPixbuf>image (O) Word: memory>byte-array (O) Method: M\ object underlying>> (O) Word: no-method (O) Method: M\ object throw (U) Quotation: [ 63 special-object error-thread set-global continuation -> error-continuation set-global [ original-error set-global ] [ rethrow ] bi ] Looks like the ffi definition for gdk_pixbuf_get_pixels is wrong; look at the return type: USING: alien.syntax gobject-introspection.standard-types ; IN: gdk.pixbuf.ffi LIBRARY: gdk.pixbuf FUNCTION: guint8 gdk_pixbuf_get_pixels ( GdkPixbuf* pixbuf ) ; inline Slava ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk