<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 3, 2016 at 2:37 PM, Ashlesh Gawande (agawande) <span dir="ltr"><<a href="mailto:agawande@memphis.edu" target="_blank">agawande@memphis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all</p>
<p><br>
</p>
<p></p>
<div>I have setup a cross compilation environment based on</div>
<div><a href="http://redmine.named-data.net/projects/ndn-embedded/wiki/Cross-compiling_NDN_projects_for_Raspberry_Pi" target="_blank">http://redmine.named-data.net/projects/ndn-embedded/wiki/Cross-compiling_NDN_projects_for_Raspberry_Pi</a></div>
<div>and crosstool-ng</div>
<div><br>
</div>
<div>ndn-cxx, NFD, NLSR, ping compiles, links and works on RPi.</div>
<div><br>
</div>
<div>In ndn-tools I was compiling ping and ndndump. </div>
<div>Ping compiles and links successfully but ndndump fails to link because</div>
<div>libc.a  libm.so  libpthread.a  librt.so not found.</div>
<div>I bring them over from RPi. ndndump compiles, but that does not work (on the Pi).</div>
<div>Backtrace attached.</div>
<div><br>
</div>
<div>Also ndn-cxx fails while linking after the files are copied over for compilation of ndndump (waf output attached).</div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols;font-size:16px">(I copied the *.so and *.a in the same lib folder I use for all
 the projects).</span><br>
</div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols;font-size:16px">Anybody have an idea how to resolve this (seems to stem from the
 libc.a I copied over)?</span></div></div></div></blockquote><div><br></div><div>You can't link a static library (libc.a) into a shared library (libndn-cxx.so). And also you should use the C runtime library provided by the cross-compiler instead of copying from somewhere else. (libc.so should be part of the GCC distribution)</div><div><br></div><div>Wentao</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div></div>
<div><br>
</div>
<div>I can compile ndndump on the Pi (using the cross compiled ndn-cxx library from the same environment) and run it successfully.</div>
<div><br>
</div>
<div>Thanks</div><span class="HOEnZb"><font color="#888888">
<div>Ashlesh</div>
<p></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">PhD @ IRL, CSD, UCLA</div></div>
</div></div>