<div dir="ltr">Thanks for your kindness, IOhannes. I'm still trying on it. I'll post again when it solved.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 11, 2015 at 9:31 PM, IOhannes m zmölnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/10/15 22:07, Jonghyun Kim wrote:<br>
> FYI, leapmotion.pd_linux compiled with flext(c++).<br>
><br>
<br>
</span>disclaimer: this is only general advice, i don't have a leapmotion nor<br>
ever used the external in question.<br>
<br>
- properly link leapmotion.pd_linux against libLeap.so<br>
if you do<br>
$ ldd leapmotion.pd_linux | grep -i leap<br>
you should see a line containing "libLeap.so"<br>
<br>
<br>
- make sure that the libLeap.so library can be found by the runtime linker.<br>
you can see that it is not found properly, if the above cmdline gives<br>
you something like:<br>
  libLeap.so => not found<br>
<br>
there are two ways to fix this:<br>
- either use the environment variable LD_LIBRARY_PATH to point to the<br>
path where libLeap.so is liven before starting Pd (this is a hack; if<br>
possible do not use it; it's also very similar to what you already have)<br>
- install libLeap.so into a place that is searched automatically by your<br>
linker (e.g. /usr/local/lib)<br>
<br>
<br>
the second one is obviously preferred.<br>
if - for whatever reasons - you want to keep using an evnironment<br>
variable, you could create a wrapper script, that you run instead of the<br>
actual Pd-binary, and which set's up the envvar:<br>
 #!/bin/sh<br>
 LD_LIBRARY_PATH=/path/to/my/leap-library/ /usr/bin/pd $@<br>
<br>
if your actual Pd-binary is /usr/bin/pd (as installed by the Debian<br>
packages, e.g. on  ubuntu), you could even call this script "pd" and put<br>
it into "/usr/local/bin" (requires root).<br>
if you then type "pd" on the cmdline, it will call the script from<br>
/usr/local which in turn calls the binary in /usr/bin...<br>
<br>
gfmds<br>
<span class="HOEnZb"><font color="#888888">IOhannes<br>
<br>
</font></span><br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>