Re: [LAD] Suil Lv2 UI: Unable to wrap UI type

From: Rui Nuno Capela <rncbc@email-addr-hidden>
Date: Fri Jun 10 2011 - 21:43:49 EEST

On 06/10/2011 04:29 PM, Harry Van Haaren wrote:
> Hey all,
>
> I'm having a problem instantiating the UI of the parametric EQ by Nedko
> & Fons. ( http://nedko.arnaudov.name/soft/lv2fil/trac/wiki/WikiStart )
>
> I can instantiate the Invada suite no problem. They have a
> http://lv2plug.in/ns/extensions/ui#GtkUI type UI & the host is also Gtk.
>
> instance = suil_instance_new( suilHost,
> 0, // pass a pointer to the
> controller objects here
> "http://lv2plug.in/ns/extensions/ui#GtkUI", // target UI
> widget type
>
> "http://nedko.aranaudov.org/soft/filter/2/mono", // plugin URI
> "http://nedko.aranaudov.org/soft/filter/2/gui", // plugin UI URI
> "http://lv2plug.in/ns/extensions/ui#external", // plugin UI TYPE URI
> "/usr/lib/lv2/filter.lv2/", //
> plugin UI bundle
> "/usr/lib/lv2/filter.lv2/filter.so", //
> plugin UI binary
>
> &featureArray[0]); //
> supported features by host
>
> // get widget of the UI instance
> SuilWidget widget = suil_instance_get_widget(instance);
>
> // add widget to container, casting "SuilWidget" to "GtkWidget*" as
> the target UI type is ui#GtkUI
> gtk_container_add (GTK_CONTAINER ( hbox->gobj() ), (GtkWidget*)
> widget);
>
> The error I get (at runtime) is the following:
> error: get_wrap_module: Unable to wrap UI type
> <http://lv2plug.in/ns/extensions/ui#external> as type
> <http://lv2plug.in/ns/extensions/ui#GtkUI>
> error: suil_instance_new: Failed to instantiate UI
> <http://nedko.aranaudov.org/soft/filter/2/gui> in
> /usr/lib/lv2/filter.lv2/filter.so
>
> Would anybody shed some light onto what I'm doing wrong?
> Cheers, -Harry
>

i'm affraid you'll have to work it out yourself (as lv2 host) with the
lv2_exeternal_ui extension, 'coz drobilla's suil won't help you here,
ever ;)

byee

-- 
rncbc aka Rui Nuno Capela
rncbc@email-addr-hidden
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sat Jun 11 00:15:02 2011

This archive was generated by hypermail 2.1.8 : Sat Jun 11 2011 - 00:15:02 EEST