[Nfd-dev] Cross compiling ndndump on RPi

Wentao Shang wentaoshang at gmail.com
Tue May 3 16:18:46 PDT 2016


On Tue, May 3, 2016 at 2:37 PM, Ashlesh Gawande (agawande) <
agawande at memphis.edu> wrote:

> Hi all
>
>
> I have setup a cross compilation environment based on
>
> http://redmine.named-data.net/projects/ndn-embedded/wiki/Cross-compiling_NDN_projects_for_Raspberry_Pi
> and crosstool-ng
>
> ndn-cxx, NFD, NLSR, ping compiles, links and works on RPi.
>
> In ndn-tools I was compiling ping and ndndump.
> Ping compiles and links successfully but ndndump fails to link because
> libc.a  libm.so  libpthread.a  librt.so not found.
> I bring them over from RPi. ndndump compiles, but that does not work (on
> the Pi).
> Backtrace attached.
>
> Also ndn-cxx fails while linking after the files are copied over for
> compilation of ndndump (waf output attached).
> (I copied the *.so and *.a in the same lib folder I use for all the
> projects).
> Anybody have an idea how to resolve this (seems to stem from the libc.a I
> copied over)?
>

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)

Wentao


>
> I can compile ndndump on the Pi (using the cross compiled ndn-cxx library
> from the same environment) and run it successfully.
>
> Thanks
> Ashlesh
>
>
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>
>


-- 
PhD @ IRL, CSD, UCLA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160503/5128d741/attachment.html>


More information about the Nfd-dev mailing list