[mythtv] dlerror when compiling a plugin

Bradley Kite bradley.kite at gmail.com
Fri Jan 4 14:34:30 UTC 2008


On 04/01/2008, Bradley Kite <bradley.kite at gmail.com> wrote:
> Hi guys,
>
> I'm just messing around trying to write a very simple plugin and learn
> more about the MythUI classes.
>
> I can get my plugin to compile without any problems (compile produces
> a libmythstest.so) but MythTV wont load it - and wont produce an error
> either - dlerror() returns an empty string in
> mythplugin.cpp:
>
>     VERBOSE(VB_IMPORTANT, QString("MythPlugin::init() dlerror: %1")
>             .arg(dlerror()));
>
> produces no dlerrors:
>
> 2008-01-04 14:04:01.835 MythPlugin::init() dlerror:
> 2008-01-04 14:04:01.835 Unable to initialize plugin 'mythtest'.
>
> Has any body had any similar problems when trying to write/debug their
> own plugins? How can I find out why MythTV wont link with it?
>
> --
> Brad
>

Actually I just found the problem - dlerror() is called twice - the
first call clears the error in mythplugin.cpp. I'll submit a patch
shortly.

--
Brad


More information about the mythtv-dev mailing list