[ndnSIM] How to add LTE module into ndnsim-car2car?

Quan Wei cheewii126 at gmail.com
Thu Dec 12 00:32:23 PST 2013


Dear Alex,

    We have tried to add Lte interface into the Car node based on the
ndnsim-car2car
sources.

    In detail, we modified the car-relay.cc by adding the head files:
-------------------------------------------------------
       #include "ns3/lte-module.h"
       #include "ns3/lte-helper.h"
-------------------------------------------------------

     and the create LTE object codes:
------------------------------------------------------------------------------------------
       Ptr<LteHelper> lteHelper = CreateObject<LteHelper> ();
       NetDeviceContainer ueDevs = lteHelper->InstallUeDevice (nodes);.
------------------------------------------------------------------------------------------

   When we conduct the "./waf", it shows the following errors:
----------------------------------------------------------------------------------------------
[11/11] cxxprogram: build/scenarios/car-relay.cc.3.o
build/extensions/car-relay-tracer.cc.1.o
build/extensions/custom-constant-velocity-mobility-model.cc.1.o
build/extensions/geo-tag.cc.1.o
build/extensions/highway-position-allocator.cc.1.o
build/extensions/ndn-fw-v2v.cc.1.o
build/extensions/ndn-v2v-net-device-face.cc.1.o
build/extensions/v2v-tracer.cc.1.o -> build/car-relay
scenarios/car-relay.cc.3.o: In function `CreateObject<ns3::LteHelper>':
/usr/local/include/ns3-dev/ns3/object.h:393: undefined reference to
`ns3::LteHelper::LteHelper()'
scenarios/car-relay.cc.3.o: In function `CompleteConstruct<ns3::LteHelper>':
/usr/local/include/ns3-dev/ns3/object.h:385: undefined reference to
`ns3::LteHelper::GetTypeId()'
scenarios/car-relay.cc.3.o: In function `main':
/home/cheewii/ndnSIM/ndnSIM-nom-rapid-car2car/build/../scenarios/car-relay.cc:166:
undefined reference to `ns3::LteHelper::InstallUeDevice(ns3::NodeContainer)'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/cheewii/ndnSIM/ndnSIM-nom-rapid-car2car/build'
--------------------------------------------------------------------------------

It seems that the compiling is finished but there are some problems in the
linking process with lte module, is it right?

How can we reslove this problem?

Thank you very much.

cheewii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20131212/d7fda4c3/attachment.html>


More information about the ndnSIM mailing list