[ndnSIM] NDNSIM Car2Car Compilation Error

Safdar Hussain Bouk bouk at monet.knu.ac.kr
Sun Apr 13 10:45:13 PDT 2014


Hi,


I am new to NS 3 and ndnSIM. I am trying to simulate the car2car scenarion
in ndnd.

I have successfully configured the car2car code:

bouk at ubuntu:~/ndnSIM/my-simulations$ sudo ./waf configure
Setting top to                           : /home/bouk/ndnSIM/my-simulations
Setting out to                           :
/home/bouk/ndnSIM/my-simulations/build
Checking for 'g++' (c++ compiler)        : /usr/bin/g++
Checking boost includes                  : 1_48
Checking boost libs                      : ok
Checking for boost linkage               : ok
Checking for program pkg-config          : /usr/bin/pkg-config
Checking for pkg-config version >= '0.0.0' : yes
Checking for ns3-ndnSIM                    : yes
Checking for ns3-core                      : yes
Checking for ns3-network                   : yes
Checking for ns3-internet                  : yes
Checking for ns3-point-to-point            : yes
Checking for ns3-topology-read             : yes
Checking for ns3-applications              : yes
Checking for ns3-mobility                  : yes
Checking for ns3-wifi                      : yes
Checking for ns3-visualizer                : yes
'configure' finished successfully (0.611s)


 However, when I build the Car2Car scenario as per given directions and get
the following error

bouk at ubuntu:~/ndnSIM/my-simulations$ sudo ./waf
Waf: Entering directory `/home/bouk/ndnSIM/my-simulations/build'
[ 1/11] cxx: extensions/car-relay-tracer.cc ->
build/extensions/car-relay-tracer.cc.1.o
[ 5/11] cxx: extensions/ndn-fw-v2v.cc -> build/extensions/ndn-fw-v2v.cc.1.o
[ 6/11] cxx: extensions/ndn-v2v-net-device-face.cc ->
build/extensions/ndn-v2v-net-device-face.cc.1.o
../extensions/car-relay-tracer.cc:33:36: fatal error:
ns3/ndn-content-object.h: No such file or directory
compilation terminated.
In file included from ../extensions/ndn-v2v-net-device-face.cc:22:0:
../extensions/ndn-v2v-net-device-face.h:78:28: error: 'ProtocolHandler' has
not been declared
../extensions/ndn-v2v-net-device-face.cc: In constructor
'ns3::ndn::V2vNetDeviceFace::Item::Item(const ns3::Time&, const
ns3::Ptr<ns3::Packet>&)':
../extensions/ndn-v2v-net-device-face.cc:184:12: error: 'GetName' is not a
member of 'ns3::ndn::HeaderHelper'
../extensions/ndn-v2v-net-device-face.cc: In member function 'virtual bool
ns3::ndn::V2vNetDeviceFace::SendImpl(ns3::Ptr<ns3::Packet>)':
../extensions/ndn-v2v-net-device-face.cc:319:14: error: 'SendImpl' is not a
member of 'ns3::ndn::NetDeviceFace'
../extensions/ndn-v2v-net-device-face.cc: In member function 'void
ns3::ndn::V2vNetDeviceFace::TagAndNetDeviceSendImpl(ns3::Ptr<ns3::Packet>)':
../extensions/ndn-v2v-net-device-face.cc:471:3: error: 'SendImpl' is not a
member of 'ns3::ndn::NetDeviceFace'
../extensions/ndn-v2v-net-device-face.cc: At global scope:
../extensions/ndn-v2v-net-device-face.cc:496:44: error: variable or field
'RegisterProtocolHandler' declared void
../extensions/ndn-v2v-net-device-face.cc:496:44: error: 'ProtocolHandler'
was not declared in this scope
../extensions/ndn-v2v-net-device-face.cc:691:1: error: expected '}' at end
of input
../extensions/ndn-v2v-net-device-face.cc:691:1: error: expected '}' at end
of input
../extensions/ndn-fw-v2v.cc:35:40: fatal error:
ns3/ndn-ndn-content-object.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/home/bouk/ndnSIM/my-simulations/build'
Build failed
 -> task in 'extensions' failed (exit status 1):
    {task 164919372: cxx car-relay-tracer.cc -> car-relay-tracer.cc.1.o}
['/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']
 -> task in 'extensions' failed (exit status 1):
    {task 164919692: cxx ndn-v2v-net-device-face.cc ->
ndn-v2v-net-device-face.cc.1.o}
['/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']
 -> task in 'extensions' failed (exit status 1):
    {task 164919628: cxx ndn-fw-v2v.cc -> ndn-fw-v2v.cc.1.o}
['/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']

I need your help in this regard to solve the issue.

Regards

*Bouk*
Wireless & Mobile Internet Lab.
School of Computer Science and Engineering
Kyungpook National University, Daegu, Korea.
shbouk.info <http://monet.knu.ac.kr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140413/3a60b281/attachment.html>


More information about the ndnSIM mailing list