Error compiling new module for NS-3

1,042 views
Skip to first unread message

mhmd262

unread,
Jan 28, 2013, 11:06:47 PM1/28/13
to ns-3-...@googlegroups.com
I am trying to add a new module into the NS-3.16 by copying it into the src directory. The module was actually previously built for ns-3.10 (after which ns-3 has got more modular) so I had to put the source and example files in corresponding directories and adjust the wscript file. But the problem is when I ./waf to build the project I get the error "Could not find a task generator for the name 'ns3-simulator'". I would really appreciate if you could let me know where you think the problem is.

Konstantinos

unread,
Jan 29, 2013, 4:50:19 PM1/29/13
to ns-3-...@googlegroups.com
I would suggest to create the folder/module using the create-module script inside /src and then copy your files in the folders and update the names in the wscript file.
You might miss something in the wscript file of your module

mhmd262

unread,
Feb 11, 2013, 3:43:07 PM2/11/13
to ns-3-...@googlegroups.com
Thanks for the reply. I also have a example file (made originally for ns-3.10) which has the include files:

ns3/common-module.h
ns3/node-module.h
ns3/helper-module.h

Apparantly these files no longer exist in the ns-3.16. do you know which files I need to include instead?

Thanks

On Tuesday, January 29, 2013 2:03:12 PM UTC-8, Mitch Watrous wrote:
Starting with version 3.11, ns-3 went to a modular directory structure.

Most modules have the same name as before.

These module names were changed:

   - core + simulator were merged into core
   - common + node were merged into network
   - internet-stack became internet
   - helper module was removed

The following chapter in the ns-3 Manual shows how modules are organized in the new modular directory structure:

    http://www.nsnam.org/docs/release/3.15/manual/html/new-modules.html

Mitch

Mitch Watrous

unread,
Feb 11, 2013, 4:21:33 PM2/11/13
to ns-3-...@googlegroups.com
Replace those 3 include files in your example with the single network module include file like this:

    #include "ns3/network-module.h"

Mitch

mhmd262

unread,
Feb 11, 2013, 5:00:13 PM2/11/13
to ns-3-...@googlegroups.com
Thanks Mitch!

Mitch Watrous

unread,
Jan 29, 2013, 5:03:12 PM1/29/13
to ns-3-...@googlegroups.com
Starting with version 3.11, ns-3 went to a modular directory structure.

Most modules have the same name as before.

These module names were changed:

   - core + simulator were merged into core
   - common + node were merged into network
   - internet-stack became internet
   - helper module was removed

The following chapter in the ns-3 Manual shows how modules are organized in the new modular directory structure:

    http://www.nsnam.org/docs/release/3.15/manual/html/new-modules.html

Mitch


On Tuesday, January 29, 2013 1:50:19 PM UTC-8, Konstantinos wrote:
Reply all
Reply to author
Forward
0 new messages