[ndnSIM] Unable to run CustomApp with my own scenario

Alex Afanasyev alexander.afanasyev at ucla.edu
Sat Apr 11 11:45:54 PDT 2015


> On Apr 8, 2015, at 9:30 PM, harshad shirwadkar <harshadshirwadkar at gmail.com> wrote:
> 
> Hello All,
> 
> I am a newbie in ndnsim.When I run "CustomApp" in a scenario as
> mentioned on this page:
> http://ndnsim.net/2.0/applications.html
> It runs perfectly.
> 
> But, when I try to do the following:
> 1) Make a copy of "ndn-simple-with-custom-app.cpp". Let's call the
> copy as "ndn-my-scenario.cpp”

This part if very important.  Where exactly you’re copying it?

To make NS-3 find CustomApp, you need custom-app.cpp to be linked together with your scenario.  Depending on where you’re copying it, there are different ways to accomplish what you want.

—
Alex

> 2) Run "NS_LOG=CustomApp ./waf --run=ndn-my-scenario".
> 
> After the second step I get following message:
> msg="Invalid or unregistered component name "CustomApp" in env
> variable NS_LOG, see above for a list of valid components"
> 
> Could anyone please let me know what might be the issue? I might be
> doing something obviously wrong but have spent hours finding the issue
> and have not been able to find one. Any help is much appreciated.
> 
> Thanks,
> Harshad.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150411/4aecb92d/attachment.bin>


More information about the ndnSIM mailing list