how to add a new module to ns-3

1,207 views
Skip to first unread message

Wilson Francis

unread,
Jun 18, 2012, 5:14:55 AM6/18/12
to ns-3-...@googlegroups.com

Hi,


 I tried to integrate the " New Module" to NS-3 as explained athttp://www.nsnam.org/docs/release/3.11/manual/html/new-modules.html. I have a struck in the step-8 given inhttp://www.nsnam.org/docs/release/3.11/manual/html/new-modules.html. I don't know how to add the module on the list of NS-3 module. I would like to know where to add the module name in src-wscript. In wscript file, Can I know the place to add the 'New Module's Name'. Kindly help me out in solving this issue. 


Trunk loads of thanks in advance....

            Wilson

Konstantinos

unread,
Jun 18, 2012, 5:18:41 AM6/18/12
to ns-3-...@googlegroups.com
Hi,

Since NS-3.13 there is no need to add your module in the list. So you can skip STEP 8.
WAF will automatically see that there is a new module and will include it in the build.


Regards,
Konstantinos

Konstantinos

unread,
Jun 18, 2012, 5:21:17 AM6/18/12
to ns-3-...@googlegroups.com
See also the documentation for building a new module with NS-3.14
http://www.nsnam.org/docs/release/3.14/manual/html/new-modules.html

Wilson Francis

unread,
Jun 18, 2012, 7:15:22 AM6/18/12
to ns-3-...@googlegroups.com
Dear Sir,

  Thank you very much for your prompt reply. I tried following the direction that you have mentioned. But still I face some errors during the compilation. I will tell you clearly, what that right now I am trying to implement. I downloaded module named "ns3qoemonitor" from https://sourceforge.net/projects/ns3qoemonitor/files/ site named Download qoe-monitor-0.1-RC.tar.gz (34.4 kB) . I am trying to include this module to my ns-3. Could you please kindly help me out to add this module to my ns-3. 

Truck loads of Thanks in Advance,
     Wilson.

Konstantinos

unread,
Jun 18, 2012, 7:25:04 AM6/18/12
to ns-3-...@googlegroups.com
Hi,

As far as I know, and from what I see in the wscript file of this module, you could just copy the whole folder (qoe-monitor) put it inside src/ and then clean, configure, and re-build NS3
 
./waf clean
./waf configure
./waf

Wilson Francis

unread,
Jun 18, 2012, 7:38:32 AM6/18/12
to ns-3-...@googlegroups.com
Hi Sir,

         Yes I did the same but still shows some errors. For your reference, I have attached the errors shown. Kindly have a look to it and guide what should I further change. Looking forward to receiving your reply eagerly...

With Kind,
  Wilson...
errors in qoemonitor-ns3.txt

ahmed elawamry

unread,
Jun 18, 2012, 7:51:18 AM6/18/12
to ns-3-...@googlegroups.com
Hello all,

May any one share a code for packet transmission and reception?

Best Regards,
Ahmed Elawamry

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/McOcKjdV96AJ.

To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

Konstantinos

unread,
Jun 18, 2012, 7:57:44 AM6/18/12
to ns-3-...@googlegroups.com
Hi,

A simple count of the number of files in the model folder and those in the wscript give a possible solution to your problem.

38 files in model, 36 in wscript. You are missing 2 files (could be header or source files). Go through the list of the files in wscript and the model folder.

The error you are getting does not have to do with "including" a new module.

Wilson Francis

unread,
Jun 18, 2012, 8:30:59 AM6/18/12
to ns-3-...@googlegroups.com
Dear Sir,

   You were correct. There was two files missing. Even though adding of those two file names don't allow me to go further as it shows the same kind of errors during compilation. I have been trying it for a quite long time. But couldn't get the solution still. Any kind of help would surely take me to explore more in my Research. I know I am disturbing you a lot. I am very sorry about it...

Thanks in Advance,
   Wilson Francis,.....

Konstantinos

unread,
Jun 18, 2012, 8:37:56 AM6/18/12
to ns-3-...@googlegroups.com
Hi Ahmed,


On Monday, 18 June 2012 12:51:18 UTC+1, ahmed elawamry wrote:
Hello all,

May any one share a code for packet transmission and reception?


There are plenty of examples available in /examples folder (for different types of connections) sending and receiving packets.
 
Best Regards,
Ahmed Elawamry

To unsubscribe from this group, send email to ns-3-users+unsubscribe@googlegroups.com.

Konstantinos

unread,
Jun 18, 2012, 8:47:32 AM6/18/12
to ns-3-...@googlegroups.com
I tried to build it also and I got the same errors.

What I think is the problem (given the output) is this point (in container.h):

#ifdef __cplusplus
extern "C"
{
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/mathematics.h>
}
#endif

So, I guess you have to add some libraries that might be missing (could be dependencies that you haven't install).
I guess you have to contact directly to the developers of this module and ask them if an external library/codec is needed.

 * Authors: Alessandro Paganelli <alessandro...@unimore.it>
 *          Daniela Saladino <daniela....@unimore.it>

Wilson Francis

unread,
Jun 18, 2012, 9:08:55 AM6/18/12
to ns-3-...@googlegroups.com
Thank you very much Mr. Konstantinos. You have been very kind. And your way of guidance is really good. Nice to get you through this Group. I would like to keep in touch with you in Future. Once again thanking you very much for this help.

With kind Regards,
     Wilson Francis.


On Monday, 18 June 2012 21:47:32 UTC+9, Konstantinos wrote:
I tried to build it also and I got the same errors.

What I think is the problem (given the output) is this point (in container.h):

#ifdef __cplusplus
extern "C"
{
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/mathematics.h>
}
#endif

So, I guess you have to add some libraries that might be missing (could be dependencies that you haven't install).
I guess you have to contact directly to the developers of this module and ask them if an external library/codec is needed.


Reply all
Reply to author
Forward
0 new messages