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

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Dec 18 12:57:34 PST 2013


Hi Quan,

You may want to edit wscript file (line 64) and add lte to the list of NS-3 modules that the scenario requires.  This way, the scenario will be linked to LTE module as well and you should not get the compilation error.

---
Alex

On Dec 12, 2013, at 12:32 AM, Quan Wei <cheewii126 at gmail.com> wrote:

> 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
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 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/20131218/74d3b0dc/attachment.html>


More information about the ndnSIM mailing list