[ndnSIM] fatal error: ns3/ndnSIM-module.h: No such file or directory

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu Dec 19 12:45:41 PST 2013


Hi Anil,

You should follow the instruction from README.md file in each template-based simulations.  These "templates" should be placed anywhere outside the actual NS-3 and are individually configured and compiled, as shown in README.md.

---
Alex

On Dec 18, 2013, at 11:35 PM, Anil J <anilj.mailing at gmail.com> wrote:

> One thing I noticed. There are some examples of template-based simulations provided under the ink:\
> 
> http://ndnsim.net/getting-started.html
> 
> I had put these example directories under ns-3/examples folder, and that was the issue. I just moved these folders (ndnSIM-comcom-stateful-fw,  ndnSIM-examples,  ndnSIM-nom-rapid-car2car,  ndnSIM-sample-topologies) out from here, and the ns-3 compilation worked. 
> 
> No question is: if I have to use/test these nsnSIM examples, where do I move these folders so that they get compiled and we can test them?
> 
> Thanks,
> /anil.
> 
> 
> 
> On Wed, Dec 18, 2013 at 11:18 PM, Anil J <anilj.mailing at gmail.com> wrote:
> Hi,
> 
> I installed the boost library as described in the http://ndnsim.net/faq.html#installing-boost-libraries. 
> 
> After this, configuration of the ns-3 was successful using the command:
> 
> ./waf configure --boost-includes=/usr/local/include --boost-libs=/usr/local/lib --enable-examples
> 
> 
> However, after compilation using ./waf it fails with the following error  message. 
> 
> vm1 at ubuntu:~/wsn/ndnSIM/ns-3$ ./waf
> Waf: Entering directory `/home/vm1/wsn/ndnSIM/ns-3/build'
> [1029/2442] cxx: examples/ndnSIM-sample-topologies/scenarios/rocketfuel-maps-cch-to-annotaded.cc -> build/examples/ndnSIM-sample-topologies/scenarios/rocketfuel-maps-cch-to-annotaded.cc.3.o
> ../examples/ndnSIM-sample-topologies/scenarios/rocketfuel-maps-cch-to-annotaded.cc:24:31: fatal error: ns3/ndnSIM-module.h: No such file or directory
> compilation terminated.
> Waf: Leaving directory `/home/vm1/wsn/ndnSIM/ns-3/build'
> Build failed
>  -> task in 'rocketfuel-maps-cch-to-annotaded' failed (exit status 1): 
>     {task 62289936: cxx rocketfuel-maps-cch-to-annotaded.cc -> rocketfuel-maps-cch-to-annotaded.cc.3.o}
> ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-Iexamples/ndnSIM-sample-topologies/extensions', '-I../examples/ndnSIM-sample-topologies/extensions', '-I/usr/local/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '../examples/ndnSIM-sample-topologies/scenarios/rocketfuel-maps-cch-to-annotaded.cc', '-c', '-o', 'examples/ndnSIM-sample-topologies/scenarios/rocketfuel-maps-cch-to-annotaded.cc.3.o']
> 
> I checked that the file "ndnSIM-module.h" exists in path "ns-3/build/ns3/ndnSIM-module.h". 
> 
> I even tried reconfiguring ns-3 code with following change, but no success. 
> ./waf configure --includedir=/home/vm1/ndnSIM/ns-3/build --boost-includes=/usr/local/include --boost-libs=/usr/local/lib --enable-examples
> 
>  
> Can someone please help to resolve this problem? Will it be wise to copy the content of ndnSIM/ns-3/build/ns3 to the /usr/local/include so that it finds the header?
> 
> /anil.
> 
>  
> 
> _______________________________________________
> 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/20131219/5988f2ac/attachment.html>


More information about the ndnSIM mailing list