[LV2] Qt5 plugin UIs and libsuil

Stefan Westerfeld stefan at space.twc.de
Sat Mar 18 08:29:36 PDT 2017


   Hi!

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):
> 
> http://git.drobilla.net/cgit.cgi/suil.git/commit/?id=43a25ed63a9144afe3
> 2a4fea520412770394822c
> 
> 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:

https://github.com/swesterfeld/suil/commit/7928c1a2179df570b0f369c2b1ad032a67893922

> 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.

   Cu... Stefan
-- 
Stefan Westerfeld, http://space.twc.de/~stefan


More information about the Devel mailing list