[Ctk-developers] plugin dll not found

Sascha Zelzer s.zelzer at dkfz-heidelberg.de
Thu Dec 27 11:45:23 EST 2012


Hi,

the error you get is quite clear: "The shared library was not found". I 
assume that this really is the problem. You could try to put a 
break-point on ctkPluginFrameworkLauncher.cpp:153 and check the contents 
of the "pluginPath" variable.

I will let you know if I can think of anything else.

- Sascha

On 12/27/2012 05:29 PM, Sergio Vera wrote:
> Hi Sascha,
>
> Indeed, I've checked that the file exists. (I even tried copying it to 
> other directories, like VC working directory and exe directory to no 
> avail)
>
> Using the / instead of \\ is not working either.
>
> I have some std::cout statements in plugin constructor and start 
> method that cannot be seen.
>
> thanks
>
>
>
> On Thu, Dec 27, 2012 at 5:10 PM, Sascha Zelzer 
> <s.zelzer at dkfz-heidelberg.de <mailto:s.zelzer at dkfz-heidelberg.de>> wrote:
>
>     Hi Sergio,
>
>     I guess you verified that the file at
>
>     C:\\work\\pruebas-bin\\CTKTest\\Plugins\\com.alma.rd.tracker\\Release\libcom_alma_rd_tracker.dll
>
>     really exists? Did you also try with a path like
>
>     C:/work/pruebas-bin/CTKTest/Plugins/com.alma.rd.tracker/Release
>
>     ?
>
>     Best,
>     Sascha
>
>
>     On 12/27/2012 03:29 PM, Sergio Vera wrote:
>>
>>     Hello all,
>>
>>     I have my test CTK plugin configured with cmake (its a dummy
>>     plugin, no services registered yet, just the minimum
>>     ctkPluginActivator methods)
>>
>>     I build my project, and when I try to start my empty plugin from
>>     an executable using
>>
>>     ctkPluginFrameworkLauncher::addSearchPath("C:\\work\\pruebas-bin\\CTKTest\\Plugins\\com.alma.rd.tracker\\Release");
>>     succeeded = ctkPluginFrameworkLauncher::start("com.alma.rd.tracker");
>>
>>     I get:
>>
>>     ctkRuntimeException: ctkPlugin start failed
>>     with a ctkException cause():
>>     Loading plugin  failed: The shared library was not found.
>>
>>     I have a proper
>>     Q_EXPORT_PLUGIN2(com_alma_rd_tracker, TrackerListenerActivator)
>>     in my dummy plugin
>>
>>     and
>>     set(PLUGIN_export_directive "com_alma_rd_tracker_EXPORT") in my
>>     plugin's CmakeLists.txt
>>
>>     What can be wrong? I've tried manually moving the generated dll
>>     file next to my exe file to no avail.
>>
>>     many thanks
>>
>>     -- 
>>     Sergio Vera
>>
>>      Alma IT Systems
>>      C/ Vilana, 4B, 4º 1ª
>>      08022 Barcelona
>>      T. (+34) 932 380 592 <tel:%28%2B34%29%20932%20380%20592>
>>     www.alma3d.com <http://www.alma3d.com>
>
>
>
>
> -- 
> Sergio Vera
>
>  Alma IT Systems
>  C/ Vilana, 4B, 4º 1ª
>  08022 Barcelona
>  T. (+34) 932 380 592
> www.alma3d.com <http://www.alma3d.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20121227/22a0762e/attachment.html>


More information about the Ctk-developers mailing list