<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
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.<br>
<br>
I will let you know if I can think of anything else.<br>
<br>
- Sascha<br>
<br>
On 12/27/2012 05:29 PM, Sergio Vera wrote:<br>
</div>
<blockquote
cite="mid:CAD1Tg9SVoZ5ZJk+asg-fZWCrN7sRyAAVKwM4OWvp_skbJDizHA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Sascha,
<div><br>
</div>
<div style="">Indeed, I've checked that the file exists. (I even
tried copying it to other directories, like <span class=""
style="">VC</span> working directory and <span class=""
style="">exe</span> directory to no avail)</div>
<div style=""><br>
</div>
<div style="">Using the / instead of \\ is not working either.</div>
<div style=""><br>
</div>
<div style="">I have some std::<span class="" style="">cout</span>
statements in <span class="" style="">plugin</span> <span
class="" style="">constructor</span> and start method that
cannot be seen. </div>
<div style=""><br>
</div>
<div style="">thanks</div>
<div style=""><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Dec 27, 2012 at 5:10 PM, Sascha
Zelzer <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:s.zelzer@dkfz-heidelberg.de" target="_blank">s.zelzer@dkfz-heidelberg.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi Sergio,<br>
<br>
I guess you verified that the file at<br>
<br>
<font face="courier new, monospace">C:\\work\\pruebas-bin\\CTKTest\\Plugins\\com.alma.rd.tracker\\Release\libcom_alma_rd_tracker.dll</font><br>
<br>
really exists? Did you also try with a path like<br>
<br>
<font face="courier new, monospace">C:/work/pruebas-bin/CTKTest/Plugins/com.alma.rd.tracker/Release</font><br>
<br>
?<br>
<br>
Best,<br>
Sascha
<div>
<div class="h5"><br>
<br>
On 12/27/2012 03:29 PM, Sergio Vera wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr"><br clear="all">
<div>Hello all,</div>
<div><br>
</div>
<div>I have my test CTK plugin configured with
cmake (its a dummy plugin, no services
registered yet, just the minimum
ctkPluginActivator methods)</div>
<div><br>
</div>
<div>I build my project, and when I try to start
my empty plugin from an executable using</div>
<div><br>
</div>
<div><font face="courier new, monospace">ctkPluginFrameworkLauncher::addSearchPath("C:\\work\\pruebas-bin\\CTKTest\\Plugins\\com.alma.rd.tracker\\Release");<br>
</font></div>
<div><font face="courier new, monospace">succeeded
=
ctkPluginFrameworkLauncher::start("com.alma.rd.tracker");</font><br>
</div>
<div><br>
</div>
<div>I get:</div>
<div><br>
</div>
<div>
<div>ctkRuntimeException: ctkPlugin start failed</div>
<div>with a ctkException cause():</div>
<div>Loading plugin failed: The shared library
was not found.</div>
<div><br>
</div>
<div>I have a proper </div>
<div><font face="courier new, monospace">Q_EXPORT_PLUGIN2(com_alma_rd_tracker,
TrackerListenerActivator)</font> in my dummy
plugin<br>
</div>
</div>
<div><br>
</div>
<div>and </div>
<div><font face="courier new, monospace">set(PLUGIN_export_directive
"com_alma_rd_tracker_EXPORT")</font> in my
plugin's CmakeLists.txt<br>
</div>
<div><br>
</div>
<div>What can be wrong? I've tried manually moving
the generated dll file next to my exe file to no
avail.</div>
<div><br>
</div>
<div>many thanks</div>
<div><br>
</div>
-- <br>
Sergio Vera<br>
<br>
Alma IT Systems<br>
C/ Vilana, 4B, 4º 1ª<br>
08022 Barcelona<br>
T. <a moz-do-not-send="true"
href="tel:%28%2B34%29%20932%20380%20592"
value="+34932380592" target="_blank">(+34) 932
380 592</a><br>
<a moz-do-not-send="true"
href="http://www.alma3d.com" target="_blank">www.alma3d.com</a>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Sergio Vera<br>
<br>
Alma IT Systems<br>
C/ Vilana, 4B, 4º 1ª<br>
08022 Barcelona<br>
T. (+34) 932 380 592<br>
<a moz-do-not-send="true" href="http://www.alma3d.com">www.alma3d.com</a>
</div>
</blockquote>
<br>
</body>
</html>