<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>I think that gcc is running out of memory (you can make sure this is the case by doing "free -mh" in another terminal when compiling). You can increase swap on the RPi. But it is not recommended because it will shorten your SD card life and compilation would
 be very slow.</p>
<p><br>
</p>
<p>May be cross compilation is better option (complex and time consuming to setup, but easier after that).</p>
<p>You can start here and use crosstool-ng (outdated but good starting point):</p>
<p><a href="https://redmine.named-data.net/projects/ndn-embedded/wiki/Cross-compiling_NDN_projects_for_Raspberry_Pi" class="OWAAutoLink" id="LPlnk910562" previewremoved="true">https://redmine.named-data.net/projects/ndn-embedded/wiki/Cross-compiling_NDN_projects_for_Raspberry_Pi</a><br>
<br>
</p>
<p>Croostool-ng provides sample files for raspberry pi:</p>
<p><a href="https://github.com/crosstool-ng/crosstool-ng/tree/master/samples" class="OWAAutoLink" id="LPlnk735857" previewremoved="true">https://github.com/crosstool-ng/crosstool-ng/tree/master/samples</a><br>
</p>
<p><br>
</p>
<p>Ashlesh</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nfd-dev <nfd-dev-bounces@lists.cs.ucla.edu> on behalf of Marzieh Babaeianjelodar <babaeim@clarkson.EDU><br>
<b>Sent:</b> Friday, March 31, 2017 10:12:05 AM<br>
<b>To:</b> nfd-dev@lists.cs.ucla.edu<br>
<b>Subject:</b> Re: [Nfd-dev] NDN for Raspberry Pi</font>
<div> </div>
</div>
<div>
<div class="">Regarding what I have been previously doing which was building NFD from source on Raspberry pi, </div>
<div class="">When I run the ./waf after ./waf configure that I finished successfully I get this following error:</div>
<div class="">How can I find this problem?</div>
<div class=""><br class="">
</div>
<div class=""><img apple-inline="yes" id="FE04F562-44B3-426E-BB85-5FEC391A422B" class="" src="cid:BBAB3C62-0489-4BB3-AFD2-854BB1F36F86@clarkson.edu"></div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 30, 2017, at 11:59 PM, Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" class="">babaeim@clarkson.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Thank you. The problem is fixed.</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Mar 30, 2017, at 10:58 PM, Alex Afanasyev <<a href="mailto:aa@cs.ucla.edu" class="">aa@cs.ucla.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
Assuming you have installed boost libraries, try this command to configure:
<div class=""><br class="">
</div>
<div class=""><span style="color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(255, 255, 255);" class="">export
 LIBDIR=/usr/lib/</span><span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(255, 255, 255);">$(dpkg-architecture
 -qDEB_HOST_MULTIARCH)</span></div>
<div class=""><span style="color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(255, 255, 255);" class="">./waf
 configure </span><span style="color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(255, 255, 255);" class="">--boost-libs=</span><span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(255, 255, 255);"><span class="pl-pds" style="box-sizing: border-box;">"</span><span class="pl-s" style="box-sizing: border-box;"><span class="pl-pds" style="box-sizing: border-box;">$</span>LIBDIR</span><span class="pl-pds" style="box-sizing: border-box;">"</span></span></div>
<div class="">
<div class=""></div>
</div>
<div class=""><br class="">
</div>
<div class="">--</div>
<div class="">Alex</div>
<div class="">
<div style="orphans: 2; widows: 2;" class=""><font color="#183691" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="white-space: pre; background-color: rgb(255, 255, 255);" class=""><br class="">
</span></font></div>
<div class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Mar 30, 2017, at 9:35 PM, Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" class="">babaeim@clarkson.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" class="">babaeim@clarkson.edu</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [Nfd-dev] NDN for Raspberry Pi</b><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">March 30, 2017 at 10:35:09 PM GMT-4<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Alex Afanasyev <<a href="mailto:aa@cs.ucla.edu" class="">aa@cs.ucla.edu</a>><br class="">
</span></div>
<br class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
In this photo it says: Building Static Library : No
<div class=""><br class="">
</div>
<div class="">And at the end this is what it shows:</div>
<div class=""><br class="">
</div>
<div class=""><span id="cid:120F9D97-7FEF-4FC1-9B4B-804A61BDAE0C@clarkson.edu" class=""><2017-03-30 10.34.50.jpeg></span></div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Mar 30, 2017, at 10:29 PM, Alex Afanasyev <<a href="mailto:aa@cs.ucla.edu" class="">aa@cs.ucla.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="auto" class="">
<div class="">What is the problem? The picture shows no errors.<br class="">
<br class="">
---
<div class="">Alex</div>
</div>
<div class=""><br class="">
On Mar 30, 2017, at 9:19 PM, Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" class="">babaeim@clarkson.edu</a>> wrote:<br class="">
<br class="">
</div>
<blockquote type="cite" class="">
<div class="">
<div class="">Hi</div>
<div class=""><br class="">
</div>
<div class="">Thank you for your suggestion. I chose to build from source on Raspberry Pi. </div>
<div class=""><br class="">
</div>
<div class="">I have a problem in building it with Waf. It is shown in the picture below</div>
<div class=""><br class="">
</div>
<div class="">How can I fix this? </div>
<div class=""><br class="">
</div>
<div class=""><2017-03-30 10.16.11.jpeg></div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Mar 30, 2017, at 5:36 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 Marzieh</div>
<div class=""><br class="">
</div>
<div class="">Your machine is running Raspbian jessie. You are attempting to add a Ubuntu PPA.</div>
<div class="">The Ubuntu PPA only supports Ubuntu systems, but Raspbian is not Ubuntu, hence the error.</div>
<div class=""><br class="">
</div>
<div class="">If feasible, you can reinstall your machine with Ubuntu MATE, which is a Ubuntu flavor that works well on the Pi. Ubuntu MATE can be installed through berryboot.</div>
<div class="">My desktop is a RPi3 and I installed NFD from PPA on Ubuntu MATE successfully.</div>
<div class=""><br class="">
</div>
<div class="">Alternatively, you can compile ndn-cxx and NFD source code on Raspbian.</div>
<div class="">On RPi3 with Raspbian Lite (no PIXEL desktop) this will take several hours, but can complete correctly.</div>
<div class=""><br class="">
</div>
<div class="">Yours, Junxiao<br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Thu, Mar 30, 2017 at 11:57 AM, Marzieh Babaeianjelodar
<span dir="ltr" class=""><<a href="mailto:babaeim@clarkson.edu" target="_blank" class="">babaeim@clarkson.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div style="word-wrap:break-word" class=""><span class="">
<div class="">
<blockquote type="cite" class="">
<div style="word-wrap:break-word" class="">
<div class=""><font class="">I am running a raspberry machine and the OS is raspbian. I get this following error when I want to install the repositories for NFD:</font></div>
</div>
</blockquote>
<br class="">
</div>
</span>
<div class=""><span id="cid:6F15292B-9297-44F9-B7DE-373F1B2F8782@clarkson.edu" class=""><s.jpg></span></div>
<div class="">
<div class="m_1595383084358407307gmail-h5">
<div class=""><br class="">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
<blockquote type="cite" class="">
<div class=""><span class="">_______________________________________________</span><br class="">
<span class="">Nfd-dev mailing list</span><br class="">
<span class=""><a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a></span><br class="">
<span class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a></span><br class="">
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
_______________________________________________<br class="">
Nfd-dev mailing list<br class="">
<a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>