<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I would have to rephrase and expand what Junxiao said.  It is a challenge to do a cross compilation. Possible, but really challenging.  Unfortunately, I wouldn't be able to give you specific advise.  You would definitely need to include pthread flag and disable all types of self-checks in wscripts.  You could try to check <a href="https://github.com/named-data-mobile/android-crew-staging" class="">https://github.com/named-data-mobile/android-crew-staging</a> repo that defines infrastructure for android cross-compilation, but it would take a lot of time to figure this out.   Doing native compilation indeed eliminate a lot of headaches.<br class=""><div><br class=""></div><div>And extension.  If you're using Ubuntu for pi2, then you can just use NDN PPA with binary packages.</div><div><br class=""></div><div>-</div><div>Alex</div><div><br class=""><blockquote type="cite" class=""><div class="">On Sep 29, 2019, at 7:40 PM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi Athreya</div><div class=""><br class=""></div><div class="">Do not attempt to cross-compile with crosstool-ng et al. Compile natively and you can eliminate a lot of problems.</div><div class=""><br class=""></div><div class="">I have Debian packages built for ARMv7, published here:<br class=""></div><div class=""><span style="font-family:monospace" class="">echo 'deb [trusted=yes] <a href="http://dl.bintray.com/yoursunny/named-data" class="">http://dl.bintray.com/yoursunny/named-data</a> stretch main' | sudo tee /etc/apt/sources.list.d/named-data.list<br class=""></span></div><div class=""><br class=""></div><div class="">The scripts are here: <a href="https://github.com/yoursunny/docker-nfd" class="">https://github.com/yoursunny/docker-nfd</a></div><div class="">Basically, you launch a Docker container that has a complete ARMv7 operating system (Debian, Raspbian, etc), then execute every binary via QEMU.</div><div class="">This allows you to execute native binaries within ARMv7 operating system, but on a powerful Intel machine.<br class=""></div><div class=""><br class=""></div><div class="">Yours, Junxiao<br class=""></div><div dir="ltr" class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 29, 2019 at 5:33 PM Athreya Nagaraj via Ndn-interest <<a href="mailto:ndn-interest@lists.cs.ucla.edu" target="_blank" class="">ndn-interest@lists.cs.ucla.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Hi All<div class=""><br class=""></div><div class="">I'm trying to build the binaries of ndn-cxx in my linux 64-bit machine and hoping to compile it for raspberry pi 2. I've built crosstool-ng and have compiled the programs. However, I'm unable to link the symbols in the program. Here's the output of the program. I've used <a href="https://github.com/ath-90/discover-conf/blob/master/ndn.sh" target="_blank" class="">this</a> shell script to run the compilation. Below are the lines that are causing the issue (Full log with verbose <a href="https://github.com/ath-90/discover-conf/blob/master/log-wo-pthread" target="_blank" class="">here</a>).</div><div class=""><br class=""></div><div class="">/home/ath/raspberrypi/x-tools/arm-rpi-linux-gnueabihf/lib/gcc/arm-rpi-linux-gnueabihf/7.4.1/../../../../arm-rpi-linux-gnueabihf/bin/ld: tools/ndnsec/cert-dump.cpp.1.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'<br class="">/home/ath/raspberrypi/x-tools/arm-rpi-linux-gnueabihf/arm-rpi-linux-gnueabihf/sysroot/lib/libpthread.so.0: error adding symbols: DSO missing from command line<br class="">collect2: error: ld returned 1 exit status<br class=""></div><div class=""><br class=""></div><div class="">This seems to be an issue that the waf is unable to locate the pthread library. Could someone please guide me on how I can get the waf to recognize the pthread library? Also, I tried using the -pthread flag but it seems to introduce new linkage errors for some unknown reason. <a href="https://github.com/ath-90/discover-conf/blob/master/log-w-pthread" target="_blank" class="">Here</a> is the output when I have included the -pthread in LDFLAGS.</div><div class=""><br class=""></div><div class="">Any help would be appreciated. </div><div class=""><br class=""></div><div class="">Regards</div><div class="">Athreya H N</div></div><br class="">
</blockquote></div></div>
</div>
_______________________________________________<br class="">Ndn-interest mailing list<br class=""><a href="mailto:Ndn-interest@lists.cs.ucla.edu" class="">Ndn-interest@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest<br class=""></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">______________<br class="">Alex Afanasyev<br class="">Assistant Professor, SCIS, Florida International University<br class="">11200 SW 8th Street, PG6 Room 140D, Miami, FL 33199<br class="">phone: +1.305.348.4960 (office); <a href="mailto:aa@cs.fiu.edu" class="">email: aa@cs.fiu.edu</a><br class="">web: <a href="https://users.cs.fiu.edu/~afanasyev/" class="">https://users.cs.fiu.edu/~afanasyev/</a><br class=""><br class=""></div>

</div>
<br class=""></body></html>