<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Ahh that was it, thanks Klaus! I copied the command from the getting started page exactly, so I'm not sure why it didn't work before. Maybe something to do with "pkgconfig" on the getting started page vs "pkg-config" that you told me to install?<div><br></div><div>Also, I tried to proceed with running the interest flooding scenarios and I received the following error:</div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><div><div>max@max-VirtualBox:~/ndnSIM/ndnSIM-ddos-interest-flooding$ ./waf --run attack-small-tree --vis</div></div></div></div><div><br></div><div><div><div><div>Waf: Entering directory `/home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build'</div></div></div></div><div><div><div><div>[ 1/13] cxx: extensions/ddos-app.cc -> build/extensions/ddos-app.cc.1.o</div></div></div></div><div><div><div><div>In file included from ../extensions/ddos-app.cc:21:0:</div></div></div></div><div><div><div><div>../extensions/ddos-app.h:29:17: error: reference to ‘ndn’ is ambiguous</div></div></div></div><div><div><div><div> using namespace ndn;</div></div></div></div><div><br></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>... (more of the stack trace errors here)</div><div><br></div><div><div>Waf: Leaving directory `/home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build'</div><div>Build failed</div><div> -> task in 'extensions' failed (exit status 1): </div><div><span style="white-space:pre">        </span>{task 139723315306192: cxx ddos-app.cc -> ddos-app.cc.1.o}</div><div>['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/max/ndnSIM/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/max/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/max/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/max/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/max/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/max/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/max/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/max/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/max/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/max/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/max/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/local/include', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '../extensions/ddos-app.cc', '-c', '-o', 'extensions/ddos-app.cc.1.o']</div></div></blockquote><div dir="ltr"><br></div>I'm not sure what this error means because at this point, I have configured and built NS-3 correctly and configured the Interest Flooding code. What do you think is causing this?</div><div><br>Thanks!</div><div>Max</div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 27, 2018 at 8:12 PM Klaus Schneider <<a href="mailto:klaus@cs.arizona.edu">klaus@cs.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Btw, you should install all the prerequisites from<br>
<a href="http://ndnsim.net/current/getting-started.html" rel="noreferrer" target="_blank">http://ndnsim.net/current/getting-started.html</a> if you haven't done so yet.<br>
<br>
<br>
On 11/27/18 10:06 PM, Klaus Schneider wrote:<br>
> Did you install pkgconfig?<br>
> <br>
> "apt install pkg-config" if you're on Ubuntu.<br>
> <br>
> Also sometimes it helps to run "sudo ldconfig" after installing libraries.<br>
> <br>
> Best regards,<br>
> Klaus<br>
> <br>
> <br>
> On 11/27/18 9:51 PM, Maxwell You wrote:<br>
>> Hello,<br>
>><br>
>> I was trying to run the Interest Flooding code<br>
>> <<a href="https://github.com/cawka/ndnSIM-ddos-interest-flooding" rel="noreferrer" target="_blank">https://github.com/cawka/ndnSIM-ddos-interest-flooding</a>> and I got to<br>
>> the part where we try to configure the interest flooding scenarios. When<br>
>> I run ./waf configure with PKG_CONFIG_PATH set, I get the following<br>
>> error. I also confirmed that I have a pkgconfig folder at<br>
>> /usr/local/lib/pkgconfig.<br>
>><br>
>>     max@max-VirtualBox:~/ndnSIM/ndnSIM-ddos-interest-flooding$<br>
>>     *PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./waf configure*<br>
>><br>
>>     Setting top to                           :<br>
>>     /home/max/ndnSIM/ndnSIM-ddos-interest-flooding <br>
>>     Setting out to                           :<br>
>>     /home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build <br>
>>     Checking for 'g++' (c++ compiler)        : /usr/bin/g++ <br>
>>     Checking for compiler flags -std=c++11   : yes <br>
>>     Checking boost includes                  : 1_62 <br>
>>     Checking boost libs                      : ok <br>
>>     Checking for boost linkage               : ok <br>
>>     Checking for program pkg-config          : not found <br>
>>     NS-3 or one of the required NS-3 modules not found<br>
>>     NS-3 needs to be compiled and installed somewhere.  You may need<br>
>>     also to set PKG_CONFIG_PATH variable in order for configure find<br>
>>     installed NS-3.<br>
>>     For example:<br>
>>         PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./waf<br>
>>     configure<br>
>><br>
>>     (complete log in<br>
>>     /home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build/config.log)<br>
>><br>
>> I looked at this past thread<br>
>> <<a href="https://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000175.html" rel="noreferrer" target="_blank">https://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000175.html</a>><br>
>> with the same issue and confirmed that I have the<br>
>> /usr/local/include/ns3-dev folder. I also tried configuring NS-3 with: <br>
>> ./waf configure --*prefix=/home/max/ndnSIM*<br>
>> --boost-includes=/usr/local/include --boost-libs=/usr/local/lib -d optimized<br>
>> but this gives the same error.<br>
>><br>
>> How can I get NS-3 to find my pkgconfig folder? <br>
>><br>
>> Thank you!<br>
>><br>
>> Max<br>
>><br>
>> _______________________________________________<br>
>> ndnSIM mailing list<br>
>> <a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
>> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
>><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best,</div><div>Max</div></div></div></div>