[ndnSIM] Installation error

Anil Jangam anilj.mailing at gmail.com
Wed Dec 14 15:42:41 PST 2016


Hello Sepehr,

For now, follow the steps as mentioned by Ashlesh. This is a one time
workaround (till the time you make next ./waf distclean) to get around this
problem.

Additionally, patch the attached diff to your ns-3/wscript file and then
(re) configure the nlsr into ndnSIM using following command.

./waf configure --enable-examples --enable-nlsr


After these things are done, you can start building the ndnSIM.

/anil.


On Wed, Dec 14, 2016 at 1:25 PM, Ashlesh Gawande (agawande) <
agawande at memphis.edu> wrote:

> Just go to the NLSR folder and do:
>
> ./waf configure
>
> ./waf
>
> cp build/nsync/sync-state.pb.*    ../../../build/ns3/ndnSIM/NLSR/nsync/
>
> (Assuming you are in NLSR folder under ns-3/src/ndnSIM).
>
>
> Then go back to the ns-3 folder and continue:
>
> ./waf
>
>
> (Updated instructions:
>
> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/
> master/PORTING.md#building)
>
>
> Ashlesh
>
> ------------------------------
> *From:* ndnSIM <ndnsim-bounces at lists.cs.ucla.edu> on behalf of sepehr
> abdous <sepehrabdous1375 at gmail.com>
> *Sent:* Monday, December 12, 2016 12:51:55 PM
> *To:* ndnsim at lists.cs.ucla.edu
> *Subject:* [ndnSIM] Installation error
>
> Hello all,
> I'm trying to install ndnSIM-NLSR from the following link:
> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/
> master/PORTING.md#orgea224d3
> but when I try to use the following command:
> ./waf
> I encounter the following error:
>
> In file included from ns3/ndnSIM/NLSR/nsync/sync-diff-state.h:26:0,
>                  from ns3/ndnSIM/NLSR/nsync/sync-logic.h:37,
>                  from ns3/ndnSIM/NLSR/nsync/sync-socket.h:30,
>                  from ../src/ndnSIM/NLSR/src/communication/sync-logic-
> handler.hpp:27,
>                  from ../src/ndnSIM/NLSR/src/nlsr.hpp:44,
>                  from ns3/ndnSIM/apps/ndn-nlsr-exec.hpp:25,
>                  from ns3/ndnSIM/apps/ndn-nlsr-app.hpp:23,
>                  from ../src/ndnSIM/utils/topology/
> nlsr-conf-reader.cpp:72:
> ns3/ndnSIM/NLSR/nsync/sync-state.h:28:27: fatal error: sync-state.pb.h:
> No such file or directory
> compilation terminated.
>
> can anyone help me with it please?
> thank you
> --
> Sepehr Abdous
> Faculty: abdous at ce.sharif.edu
> Yahoo mail: sepehrabdous at yahoo.com
> Cellphone:+989194030591 <+98%20919%20403%200591>
> School of computer engineering
> Sharif University of Technology
> Tehran, Iran
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161214/8cba3510/attachment.html>
-------------- next part --------------
diff --git a/wscript b/wscript
index 455ce4d..8ea199e 100644
--- a/wscript
+++ b/wscript
@@ -208,6 +208,10 @@ def options(opt):
                          'but do not wait for ns-3 to finish the full build.'),
                    action="store_true", default=False,
                    dest='doxygen_no_build')
+    opt.add_option('--enable-nlsr',
+                   help=('Compile NS-3 with NLSR simulation support'),
+                   dest='enable_nlsr', action='store_true',
+                   default=False)
 
     # options provided in subdirectories
     opt.recurse('src')
@@ -311,6 +315,10 @@ def configure(conf):
         env.append_value('LINKFLAGS', '-lgcov')
         env.append_value('LINKFLAGS', '-coverage')
 
+    if Options.options.enable_nlsr:
+        env['NLSR_ENABLED'] = True
+        env.append_value('DEFINES', 'NS3_NLSR_SIM')
+
     if Options.options.build_profile == 'debug':
         env.append_value('DEFINES', 'NS3_BUILD_PROFILE_DEBUG')
         env.append_value('DEFINES', 'NS3_ASSERT_ENABLE')


More information about the ndnSIM mailing list