[ndnSIM] A compiling problem

李孟涵 limenghan1101 at gmail.com
Sat May 4 03:02:24 PDT 2013


Hi Alex,

    Thanks for your efforts in continuously updating the code. I have fixed
the above problem. However, when I try to continue to compile the code, I
met libboost problem below.

ndnSIM will not be build as it requires boost libraries: iostreams
Please upgrade your distribution or install custom boost libraries (
http://ndnsim.net/faq.html#boost-libraries)

    I have already built boost 1.53 in accordance with the tips form the
FAQ, and the boost libs indeed included iostreams. So I checked wscript in
ndnSIM to search the cause of error. Finally I tried to delete line 37 and
38. Then I can successfully build ndnSIM. But I don't know whether delete
the judgement of "mt" can cause other problems. Seemingly, I failed to run
ndn-simple and caused the following error:

assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
ns3::LteNetDevice not found", file=../src/core/model/type-id.cc, line=419
terminate called without an active exception

    If my behavior of deleting the code is inappropriate, then what should
I do to successfully build the code.

    Thanks!


2013/5/4 Alex Afanasyev <alexander.afanasyev at ucla.edu>

> Hi Menghan,
>
> Thanks for catching the problem!  Yesterday I was updating NS-3 base to
> the latest version (based on NS-3.17 release candidate / developer head)
> and forgot to push out necessary changes to ndnSIM.
>
> If you re-clone everything again, the error should disappear and the code
> should compile successfully.
>
> ---
> Alex
>
> On May 3, 2013, at 9:13 AM, 李孟涵 <limenghan1101 at gmail.com> wrote:
>
> > Hi all,
> >
> >     I downloaded ndnSIM code from github without making any changes. But
> I can't build ndnSIM successfully. When I used waf to compile ndnSIM code,
> there were following error messages appeared.
> >
> > parallels at parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf
> configure --enable-examples --enable-ndn-plugins=topology,mobility
> > Traceback (most recent call last):
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
> line 97, in waf_entry_point
> >     run_commands()
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
> line 149, in run_commands
> >     parse_options()
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
> line 127, in parse_options
> >     Context.create_context('options').execute()
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py",
> line 134, in execute
> >     super(OptionsContext,self).execute()
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 87, in execute
> >     self.recurse([os.path.dirname(g_module.root_path)])
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 128, in recurse
> >     user_function(self)
> >   File "/home/parallels/ndnSIM/ns-3/wscript", line 209, in options
> >     opt.recurse('src')
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 128, in recurse
> >     user_function(self)
> >   File "/home/parallels/ndnSIM/ns-3/src/wscript", line 47, in options
> >     opt.recurse(module, mandatory=False)
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 128, in recurse
> >     user_function(self)
> >   File "/home/parallels/ndnSIM/ns-3/src/ndnSIM/wscript", line 15, in
> options
> >     opt.tool_options('boost', tooldir=["waf-tools"])
> > AttributeError: 'OptionsContext' object has no attribute 'tool_options'
> > parallels at parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf
> configure
> > Traceback (most recent call last):
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
> line 97, in waf_entry_point
> >     run_commands()
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
> line 149, in run_commands
> >     parse_options()
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py",
> line 127, in parse_options
> >     Context.create_context('options').execute()
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py",
> line 134, in execute
> >     super(OptionsContext,self).execute()
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 87, in execute
> >     self.recurse([os.path.dirname(g_module.root_path)])
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 128, in recurse
> >     user_function(self)
> >   File "/home/parallels/ndnSIM/ns-3/wscript", line 209, in options
> >     opt.recurse('src')
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 128, in recurse
> >     user_function(self)
> >   File "/home/parallels/ndnSIM/ns-3/src/wscript", line 47, in options
> >     opt.recurse(module, mandatory=False)
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 122, in recurse
> >     wscript_module=load_module(node.abspath())
> >   File
> "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py",
> line 281, in load_module
> >     exec(compile(code,path,'exec'),module.__dict__)
> >   File "/home/parallels/ndnSIM/ns-3/src/ndnSIM/wscript", line 4, in
> <module>
> >     import Logs
> > ImportError: No module named Logs
> >
> >   If above errors are due to lacking necessary patches or other reasons?
> >   Look forward to your reply!Thanks a lot~
> >
> > Best regards,
> > --
> > Menghan Li
> > Ph.D. Candidate,
> > Department of Computer Science and Technology,
> > Tsinghua University, Beijing, China.
> > _______________________________________________
> > ndnSIM mailing list
> > ndnSIM at lists.cs.ucla.edu
> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>


-- 
李孟涵(Menghan Li)
Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, China.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130504/f472ec14/attachment.html>


More information about the ndnSIM mailing list