[LV2] Qt5 plugin UIs and libsuil
stefan at space.twc.de
Sat Mar 18 08:29:36 PDT 2017
On Sat, Mar 18, 2017 at 12:11:11PM +0100, David Robillard wrote:
> I've pushed an attempt at sorting out these issues to suil (and
> corresponding commits to jalv and ingen):
> Similar to Stefan's preliminary init work, but with a suil_init that
> takes argc, argv, and an extensible key/value arguments in case we need
> to pass more stuff here in the future.
Thanks. First time my SpectMorph plugin just works as it should with upstream
suil. :-) There is one slight problem remaining, if you try to use a Qt4 and a
Qt5 plugin UI in Ardour5, this message pops up:
(ardour-5.8.165:3744): GLib-GObject-WARNING **: cannot register existing type 'SuilQtWrapper'
(ardour-5.8.165:3744): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
This is because the class names defined by the wrappers are identical. Simple
renaming of the Qt5 wrapper class will solve this:
> Alas, the suil API was not designed with a global library state object
> (shame on me), so argc, argv, and whatever else gets added here is
> global data in the library. I don't think this is a problem, though...
Sounds ok to me.
Stefan Westerfeld, http://space.twc.de/~stefan
More information about the Devel