<div dir="ltr">Hi Spyros.<div><br></div><div>I have integrated the NSLR codebase under ndnSIM (just like it is done for NFD) and have modified the ndnSIM/wscript file towards this goal. So far, I have been able to compile all the NLSR files except the following issues:</div><div><ul><li>NLSR includes a compilation of a .proto file. The corresponding tool - src/ndnSIM/NLSR/.waf-tools/protoc.py - I believe is being loaded. When I start the build after configure, it throws the following error and stops. </li><ul><li></li><li>[ 484/2982] Processing src/ndnSIM/NLSR/nsync/sync-state.proto </li></ul></ul></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>19:24:00 runner ['/usr/bin/protoc', '--cpp_out=/home/anilj1/sandbox/ndnSIM/ns-3/build/src/ndnSIM/NLSR/nsync', '-Isrc/ndnSIM/NLSR/nsync', '-I../src/ndnSIM/NLSR/nsync', '-I/usr/include', '/home/anilj1/sandbox/ndnSIM/ns-3/src/ndnSIM/NLSR/nsync/sync-state.proto']</div><div><br></div><div>/home/anilj1/sandbox/ndnSIM/ns-3/src/ndnSIM/NLSR/nsync/sync-state.proto: File does not reside within any path specified using --proto_path (or -I). You must specify a --proto_path which encompasses this file. Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think).<br></div><div><br></div></blockquote></blockquote><div><ul><ul><li>The changes I have made to the ndnSIM/wscript file are attached herewith. Can you suggest any clue to fix this? As a workaround, I have another NLSR buid, from where I copy the protoc generated files, and use them. But that's just a workaround. </li></ul><li>After workaround, the build again fails end in the end during linking phase with the following erros, again related to the protobuf library. Not sure how to configure this library during the configure time. </li></ul></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div>3030 [2896/2968] Linking build/src/ndnSIM/examples/ns3-dev-ndn-congestion-topo-plugin-debug</div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>3031 [2896/2968] Linking build/bindings/python/ns/internet.so</div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>3032 [2897/2968] Linking build/src/ndnSIM/examples/ns3-dev-ndn-csma-debug</div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>3033 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::Message::CheckTypeAndMergeFrom(google::proto buf::MessageLite const&)'</div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>3034 ./libns3-dev-ndnSIM-debug.so: undefined reference to `vtable for google::protobuf::Message'</div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>3035 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::internal::LogMessage::LogMessage(google::pro tobuf::LogLevel, char const*, int)'</div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>3036 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint64Fallback(u nsigned long*)'</div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>3037 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteUInt64(int, u nsigned long, google::protobuf::io::CodedOutputStream*)'</div></div><div><br></div><div><br></div></blockquote></blockquote>Can you suggest any solutions to this? <div><br></div><div>/anil.</div><div><br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 2, 2015 at 9:15 AM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Anil,<br>
<br>
the “.waf-tools” folder of ndnSIM and ndn-cxx are being loaded here:<br>
<br>
<a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/wscript#L15-L18" rel="noreferrer" target="_blank">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/wscript#L15-L18</a><br>
<br>
In the wscript of ndnSIM, functions that are included in the scripts of the “.waf-tools” folder are called.<br>
<br>
--<br>
Spyridon (Spyros) Mastorakis<br>
Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" rel="noreferrer" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br>
Internet Research Laboratory<br>
PhD Computer Science<br>
UCLA<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
> On Oct 1, 2015, at 11:23 PM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com">anilj.mailing@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I see that each major folder in ndnSIM 2.1 distribution e.g. ndn-cxx, NFD and even under ndnSIM, there is a hidden folder .waf-tools and bunch of python scripts in there.<br>
><br>
> I am trying to understand how these scripts are invoked by the waf builder. I am particularly interested to understand how they are invoked (if at all they are invoked) from NFD and ndn-cxx folder.<br>
><br>
> It will be helpful if you could point me to the specific section of the wscript file where these are invoked. I am tying to replicate the same with another module integration, which also has its own .waf-tools folder.<br>
><br>
> I thank in advance.<br>
><br>
> /anil.<br>
><br>
<br>
</div></div></blockquote></div><br></div>