[ndnSIM] Modifying source files

chavoosh ghasemi chavoosh.ghasemi.off at gmail.com
Wed May 14 02:46:15 PDT 2014


Thanks Alex, disabling python, fairly mitigated the problem.


*---chavoosh*


On Wed, May 14, 2014 at 1:48 PM, Alex Afanasyev <
alexander.afanasyev at ucla.edu> wrote:

> Yes. If you modify NS-3 source, then you'll have to recompile all
> dependent things.
>
> You may save some time by disabling modules that you don't care.  The
> following may partially help:
>
> - disable python.  Building python bindings is slow and always requires a
> lot of rebuilding
> - enable only NS-3 modules that you're using.  You can do it from the
> command line, but it is easier if you create .ns3rc in ns-3 folder:
>
> Here is content of my .ns3rc:
>
> --- cut ---
> #! /usr/bin/env python
>
> # A list of the modules that will be enabled when ns-3 is run.
> # Modules that depend on the listed modules will be enabled also.
> #
> # All modules can be enabled by choosing 'all_modules'.
> modules_enabled = ['ndnSIM', 'point-to-point', 'point-to-point-layout']
>
> # Set this equal to true if you want examples to be run.
> examples_enabled = False
>
> # Set this equal to true if you want tests to be run.
> tests_enabled = False
> --- end cut ---
>
> (it is based on `utils/.ns3rc`)
>
> ---
> Alex
>
> On May 14, 2014, at 2:13 AM, chavoosh ghasemi <
> chavoosh.ghasemi.off at gmail.com> wrote:
>
> Well, e.g. when I modify '/src/ndnSIM/helper/ndn-global-routing-helper.cc',
> I will face rebuilding a big group of source files, before running my
> simulation. This problem occurs while I followed your instructions in the
> scenario template, exactly.
>
> Look, when I run my scenario under directory 'ns-dev/ns-3' I will face
> this issue (rebuilding source files), but when I  switch to directory
> 'ns-dev/my-scenarios', and run ./waf --run <*scenario-name*>, it does not
> consider my new changes in source files (actually, it use last built files
> and does not re-build specified source file after editing).
>
> ----
> *chavoosh*
>
>
> On Tue, May 13, 2014 at 10:29 PM, Alex Afanasyev <
> alexander.afanasyev at ucla.edu> wrote:
>
>> Hi Chavoosh,
>>
>> Unfortunately, unless you separate your code from NS-3, as is suggested
>> in https://github.com/cawka/ndnSIM-scenario-template  you will end up
>> recompiling a big chunk of NS-3 every time you make a minor change in your
>> scenario.
>>
>> However, if you are modifying NS-3 itself (e.g., something inside
>> src/internet or src/network), then this would unconditionally require
>> recompilation of NS-3, even if you have separated your scenario into
>> different repository.
>>
>> Btw. You mentioned that "it didn't work", but what exactly is the
>> problem?  I can try my best to update the instructions in the scenario
>> template, if they are confusing.
>>
>> ---
>> Alex
>>
>> On May 10, 2014, at 7:20 AM, chavoosh ghasemi <
>> chavoosh.ghasemi.off at gmail.com> wrote:
>>
>> Hi dear Alex
>>
>> I have a little problem with editing source files (both .h and .cc
>> files), so that after each modifying, I will face re-building source files
>> for running my scenario, which is so irritating! Please guide me to do this
>> in a better manner, and requires no re-building or same issues!
>>
>> Also I read this:
>> http://ndnsim.net/getting-started.html#simulating-using-ndnsim
>> but it did not work and I forced to write simulation directly inside
>> `/scratch'.
>>
>> Best regards
>> *chavoosh*
>>
>>
>> --
>>
>> *---------------------------- Chavoosh Ghasemi*
>>
>> Information Technology M.S - Computer Networks
>> Sharif University-Computer Engineer Department
>>
>> * "The quieter you become, the more you can hear"*
>>  _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>
>>
>>
>
>
> --
>
> *---------------------------- Chavoosh Ghasemi*
>
> Information Technology M.S - Computer Networks
> Sharif University-Computer Engineer Department
>
> * "The quieter you become, the more you can hear"*
>  _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
>


-- 

*---------------------------- Chavoosh Ghasemi*

Information Technology M.S - Computer Networks
Sharif University-Computer Engineer Department

* "The quieter you become, the more you can hear"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140514/ffc19aab/attachment.html>


More information about the ndnSIM mailing list