<div dir="ltr"><div><div><div>Hi,<br><br><br></div>I am new to NS 3 and ndnSIM. I am trying to simulate the car2car scenarion in ndnd. <br><br>I have successfully configured the car2car code:<br><br>bouk@ubuntu:~/ndnSIM/my-simulations$ sudo ./waf configure<br>
Setting top to                           : /home/bouk/ndnSIM/my-simulations <br>Setting out to                           : /home/bouk/ndnSIM/my-simulations/build <br>Checking for 'g++' (c++ compiler)        : /usr/bin/g++ <br>
Checking boost includes                  : 1_48 <br>Checking boost libs                      : ok <br>Checking for boost linkage               : ok <br>Checking for program pkg-config          : /usr/bin/pkg-config <br>Checking for pkg-config version >= '0.0.0' : yes <br>
Checking for ns3-ndnSIM                    : yes <br>Checking for ns3-core                      : yes <br>Checking for ns3-network                   : yes <br>Checking for ns3-internet                  : yes <br>Checking for ns3-point-to-point            : yes <br>
Checking for ns3-topology-read             : yes <br>Checking for ns3-applications              : yes <br>Checking for ns3-mobility                  : yes <br>Checking for ns3-wifi                      : yes <br>Checking for ns3-visualizer                : yes <br>
'configure' finished successfully (0.611s)<br><br><br> However, when I build the Car2Car scenario as per given directions and get the following error<br><br>bouk@ubuntu:~/ndnSIM/my-simulations$ sudo ./waf<br>Waf: Entering directory `/home/bouk/ndnSIM/my-simulations/build'<br>
[ 1/11] cxx: extensions/car-relay-tracer.cc -> build/extensions/car-relay-tracer.cc.1.o<br>[ 5/11] cxx: extensions/ndn-fw-v2v.cc -> build/extensions/ndn-fw-v2v.cc.1.o<br>[ 6/11] cxx: extensions/ndn-v2v-net-device-face.cc -> build/extensions/ndn-v2v-net-device-face.cc.1.o<br>
../extensions/car-relay-tracer.cc:33:36: fatal error: ns3/ndn-content-object.h: No such file or directory<br>compilation terminated.<br>In file included from ../extensions/ndn-v2v-net-device-face.cc:22:0:<br>../extensions/ndn-v2v-net-device-face.h:78:28: error: ‘ProtocolHandler’ has not been declared<br>
../extensions/ndn-v2v-net-device-face.cc: In constructor ‘ns3::ndn::V2vNetDeviceFace::Item::Item(const ns3::Time&, const ns3::Ptr<ns3::Packet>&)’:<br>../extensions/ndn-v2v-net-device-face.cc:184:12: error: ‘GetName’ is not a member of ‘ns3::ndn::HeaderHelper’<br>
../extensions/ndn-v2v-net-device-face.cc: In member function ‘virtual bool ns3::ndn::V2vNetDeviceFace::SendImpl(ns3::Ptr<ns3::Packet>)’:<br>../extensions/ndn-v2v-net-device-face.cc:319:14: error: ‘SendImpl’ is not a member of ‘ns3::ndn::NetDeviceFace’<br>
../extensions/ndn-v2v-net-device-face.cc: In member function ‘void ns3::ndn::V2vNetDeviceFace::TagAndNetDeviceSendImpl(ns3::Ptr<ns3::Packet>)’:<br>../extensions/ndn-v2v-net-device-face.cc:471:3: error: ‘SendImpl’ is not a member of ‘ns3::ndn::NetDeviceFace’<br>
../extensions/ndn-v2v-net-device-face.cc: At global scope:<br>../extensions/ndn-v2v-net-device-face.cc:496:44: error: variable or field ‘RegisterProtocolHandler’ declared void<br>../extensions/ndn-v2v-net-device-face.cc:496:44: error: ‘ProtocolHandler’ was not declared in this scope<br>
../extensions/ndn-v2v-net-device-face.cc:691:1: error: expected ‘}’ at end of input<br>../extensions/ndn-v2v-net-device-face.cc:691:1: error: expected ‘}’ at end of input<br>../extensions/ndn-fw-v2v.cc:35:40: fatal error: ns3/ndn-ndn-content-object.h: No such file or directory<br>
compilation terminated.<br>Waf: Leaving directory `/home/bouk/ndnSIM/my-simulations/build'<br>Build failed<br> -> task in 'extensions' failed (exit status 1): <br>    {task 164919372: cxx car-relay-tracer.cc -> car-relay-tracer.cc.1.o}<br>
['/usr/bin/g++', '-O3', '-g', [], '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_WIFI=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '../extensions/car-relay-tracer.cc', '-c', '-o', 'extensions/car-relay-tracer.cc.1.o']<br>
 -> task in 'extensions' failed (exit status 1): <br>    {task 164919692: cxx ndn-v2v-net-device-face.cc -> ndn-v2v-net-device-face.cc.1.o}<br>['/usr/bin/g++', '-O3', '-g', [], '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_WIFI=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '../extensions/ndn-v2v-net-device-face.cc', '-c', '-o', 'extensions/ndn-v2v-net-device-face.cc.1.o']<br>
 -> task in 'extensions' failed (exit status 1): <br>    {task 164919628: cxx ndn-fw-v2v.cc -> ndn-fw-v2v.cc.1.o}<br>['/usr/bin/g++', '-O3', '-g', [], '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_WIFI=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '../extensions/ndn-fw-v2v.cc', '-c', '-o', 'extensions/ndn-fw-v2v.cc.1.o']<br>
<br></div>I need your help in this regard to solve the issue.<br><br></div>Regards<br><div><div><br clear="all"><div><div><div><div dir="ltr"><b><u><font color="#0000ff">Bouk</font></u></b><div><div><div>Wireless & Mobile Internet Lab.</div>
<div>School of Computer Science and Engineering</div><div>Kyungpook National University, Daegu, Korea.</div><div><a href="http://monet.knu.ac.kr" target="_blank">shbouk.info</a></div></div></div></div></div>
</div></div></div></div></div>