how can I modify this code to test the sidelink?

133 views
Skip to first unread message

Anthony R

unread,
Jul 19, 2023, 11:32:59 AM7/19/23
to ns-3-users

Hello everyone,
I'm posting a message in this group to get your opinion and an idea of how I could move forward in correcting my various errors.

The reason for all this is that I ran an example file called "cttc-nr-v2x-demo-simple.cc" so that I could first test a NR Sidelink connection between two UEs and then try to use this technology as part of a project on VANETs and 5G.
I got the file from this gitlab by adding the NR-V2X module to my NS3 folders and adding the various additional libraries used, such as :
"ue-phy-pscch-rx-output-stats.h" or "ue-phy-pssch-rx-output-stats.h".


When I run the script I get many errors (I've copied the errors into the file: error.txt), however there are many pointer errors and I don't know why I get this, because I think the code I wanted to test from Tom Henderson's gitlab originally doesn't have these types of errors.  (https://gitlab.com/cttc-lena/nr/-/tree/nr-v2x-dev/examples/nr-v2x-examples)

So I wanted to know if anyone had any ideas so that I could correct my errors and be able to use the sidelink of the NR-V2X module?

Thank you in advance for your help!! 
Have a nice day,
Ringeissen Anthony

Anthony R

unread,
Jul 19, 2023, 11:41:36 AM7/19/23
to ns-3-users
The list of errors:

Consolidate compiler generated dependencies of target scratch_cttc-nr-v2x-demo-simple
[  0%] Building CXX object scratch/CMakeFiles/scratch_cttc-nr-v2x-demo-simple.dir/cttc-nr-v2x-demo-simple.cc.o
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc: In function ‘int main(int, char**)’:
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:490:13: error: ‘class ns3::NrHelper’ has no member named ‘SetBwpManagerTypeId’; did you mean ‘GetBwpManagerUe’?
  490 |   nrHelper->SetBwpManagerTypeId (TypeId::LookupByName ("ns3::NrSlBwpManagerUe"));
      |             ^~~~~~~~~~~~~~~~~~~
      |             GetBwpManagerUe
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:540:7: error: ‘NrSlHelper’ was not declared in this scope; did you mean ‘nrHelper’?
  540 |   Ptr<NrSlHelper> nrSlHelper = CreateObject <NrSlHelper> ();
      |       ^~~~~~~~~~
      |       nrHelper
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:540:17: error: template argument 1 is invalid
  540 |   Ptr<NrSlHelper> nrSlHelper = CreateObject <NrSlHelper> ();
      |                 ^
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:540:58: error: no matching function for call to ‘CreateObject<NrSlHelper>()’
  540 |   Ptr<NrSlHelper> nrSlHelper = CreateObject <NrSlHelper> ();
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/model/object-factory.h:23,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/model/simulator.h:27,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/build/include/ns3/simulator.h:1,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/helper/event-garbage-collector.h:23,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/build/include/ns3/event-garbage-collector.h:1,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/build/include/ns3/core-module.h:9,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:52:
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/model/object.h:579:1: note: candidate: ‘template<class T, class ... Args> ns3::Ptr<T> ns3::CreateObject(Args&& ...)’
  579 | CreateObject(Args&&... args)
      | ^~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/model/object.h:579:1: note:   template argument deduction/substitution failed:
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:544:13: error: base operand of ‘->’ is not a pointer
  544 |   nrSlHelper->SetEpcHelper (epcHelper);
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:553:13: error: base operand of ‘->’ is not a pointer
  553 |   nrSlHelper->SetSlErrorModel (errorModel);
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:554:13: error: base operand of ‘->’ is not a pointer
  554 |   nrSlHelper->SetUeSlAmcAttribute ("AmcModel", EnumValue (NrAmc::ErrorModel));
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:561:13: error: base operand of ‘->’ is not a pointer
  561 |   nrSlHelper->SetNrSlSchedulerTypeId (NrSlUeMacSchedulerSimple::GetTypeId());
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:561:39: error: ‘NrSlUeMacSchedulerSimple’ has not been declared
  561 |   nrSlHelper->SetNrSlSchedulerTypeId (NrSlUeMacSchedulerSimple::GetTypeId());
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:562:13: error: base operand of ‘->’ is not a pointer
  562 |   nrSlHelper->SetUeSlSchedulerAttribute ("FixNrSlMcs", BooleanValue (true));
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:563:13: error: base operand of ‘->’ is not a pointer
  563 |   nrSlHelper->SetUeSlSchedulerAttribute ("InitialNrSlMcs", UintegerValue (14));
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:571:13: error: base operand of ‘->’ is not a pointer
  571 |   nrSlHelper->PrepareUeForSidelink (ueVoiceNetDev, bwpIdContainer);
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:581:14: error: ‘SlResourcePoolNr’ is not a member of ‘ns3::LteRrcSap’
  581 |   LteRrcSap::SlResourcePoolNr slResourcePoolNr;
      |              ^~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:583:7: error: ‘NrSlCommPreconfigResourcePoolFactory’ was not declared in this scope
  583 |   Ptr<NrSlCommPreconfigResourcePoolFactory> ptrFactory = Create<NrSlCommPreconfigResourcePoolFactory> ();
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:583:43: error: template argument 1 is invalid
  583 |   Ptr<NrSlCommPreconfigResourcePoolFactory> ptrFactory = Create<NrSlCommPreconfigResourcePoolFactory> ();
      |                                           ^
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:583:103: error: no matching function for call to ‘Create<NrSlCommPreconfigResourcePoolFactory>()’
  583 |   Ptr<NrSlCommPreconfigResourcePoolFactory> ptrFactory = Create<NrSlCommPreconfigResourcePoolFactory> ();
      |                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/model/event-id.h:23,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/build/include/ns3/event-id.h:1,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/helper/event-garbage-collector.h:22,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/build/include/ns3/event-garbage-collector.h:1,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/build/include/ns3/core-module.h:9,
                 from /home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:52:
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/model/ptr.h:481:1: note: candidate: ‘template<class T, class ... Ts> ns3::Ptr<T> ns3::Create(Ts&& ...)’
  481 | Create(Ts&&... args)
      | ^~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/src/core/model/ptr.h:481:1: note:   template argument deduction/substitution failed:
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:593:13: error: base operand of ‘->’ is not a pointer
  593 |   ptrFactory->SetSlTimeResources (slBitmap);
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:594:13: error: base operand of ‘->’ is not a pointer
  594 |   ptrFactory->SetSlSensingWindow (100); // T0 in ms
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:595:13: error: base operand of ‘->’ is not a pointer
  595 |   ptrFactory->SetSlSelectionWindow (5);
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:596:13: error: base operand of ‘->’ is not a pointer
  596 |   ptrFactory->SetSlFreqResourcePscch (10); // PSCCH RBs
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:597:13: error: base operand of ‘->’ is not a pointer
  597 |   ptrFactory->SetSlSubchannelSize (50);
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:598:13: error: base operand of ‘->’ is not a pointer
  598 |   ptrFactory->SetSlMaxNumPerReserve (3);
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:600:14: error: ‘SlResourcePoolNr’ is not a member of ‘ns3::LteRrcSap’
  600 |   LteRrcSap::SlResourcePoolNr pool = ptrFactory->CreatePool ();
      |              ^~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:601:3: error: ‘slResourcePoolNr’ was not declared in this scope
  601 |   slResourcePoolNr = pool;
      |   ^~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:601:22: error: ‘pool’ was not declared in this scope; did you mean ‘powl’?
  601 |   slResourcePoolNr = pool;
      |                      ^~~~
      |                      powl
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:604:14: error: ‘SlResourcePoolConfigNr’ is not a member of ‘ns3::LteRrcSap’
  604 |   LteRrcSap::SlResourcePoolConfigNr slresoPoolConfigNr;
      |              ^~~~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:605:3: error: ‘slresoPoolConfigNr’ was not declared in this scope
  605 |   slresoPoolConfigNr.haveSlResourcePoolConfigNr = true;
      |   ^~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:608:14: error: ‘SlResourcePoolIdNr’ is not a member of ‘ns3::LteRrcSap’
  608 |   LteRrcSap::SlResourcePoolIdNr slResourcePoolIdNr;
      |              ^~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:609:3: error: ‘slResourcePoolIdNr’ was not declared in this scope
  609 |   slResourcePoolIdNr.id = poolId;
      |   ^~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:614:14: error: ‘SlBwpPoolConfigCommonNr’ is not a member of ‘ns3::LteRrcSap’
  614 |   LteRrcSap::SlBwpPoolConfigCommonNr slBwpPoolConfigCommonNr;
      |              ^~~~~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:616:3: error: ‘slBwpPoolConfigCommonNr’ was not declared in this scope
  616 |   slBwpPoolConfigCommonNr.slTxPoolSelectedNormal [slResourcePoolIdNr.id] = slresoPoolConfigNr;
      |   ^~~~~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:619:14: error: ‘Bwp’ is not a member of ‘ns3::LteRrcSap’
  619 |   LteRrcSap::Bwp bwp;
      |              ^~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:620:3: error: ‘bwp’ was not declared in this scope
  620 |   bwp.numerology = numerologyBwpSl;
      |   ^~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:626:14: error: ‘SlBwpGeneric’ is not a member of ‘ns3::LteRrcSap’
  626 |   LteRrcSap::SlBwpGeneric slBwpGeneric;
      |              ^~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:627:3: error: ‘slBwpGeneric’ was not declared in this scope
  627 |   slBwpGeneric.bwp = bwp;
      |   ^~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:628:45: error: ‘GetSlLengthSymbolsEnum’ is not a member of ‘ns3::LteRrcSap’
  628 |   slBwpGeneric.slLengthSymbols = LteRrcSap::GetSlLengthSymbolsEnum (14);
      |                                             ^~~~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:629:43: error: ‘GetSlStartSymbolEnum’ is not a member of ‘ns3::LteRrcSap’
  629 |   slBwpGeneric.slStartSymbol = LteRrcSap::GetSlStartSymbolEnum (0);
      |                                           ^~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:632:14: error: ‘SlBwpConfigCommonNr’ is not a member of ‘ns3::LteRrcSap’
  632 |   LteRrcSap::SlBwpConfigCommonNr slBwpConfigCommonNr;
      |              ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:633:3: error: ‘slBwpConfigCommonNr’ was not declared in this scope
  633 |   slBwpConfigCommonNr.haveSlBwpGeneric = true;
      |   ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:640:14: error: ‘SlFreqConfigCommonNr’ is not a member of ‘ns3::LteRrcSap’
  640 |   LteRrcSap::SlFreqConfigCommonNr slFreConfigCommonNr;
      |              ^~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:646:7: error: ‘slFreConfigCommonNr’ was not declared in this scope
  646 |       slFreConfigCommonNr.slBwpList [it] = slBwpConfigCommonNr;
      |       ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:650:14: error: ‘TddUlDlConfigCommon’ is not a member of ‘ns3::LteRrcSap’
  650 |   LteRrcSap::TddUlDlConfigCommon tddUlDlConfigCommon;
      |              ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:651:3: error: ‘tddUlDlConfigCommon’ was not declared in this scope
  651 |   tddUlDlConfigCommon.tddPattern = "DL|DL|DL|F|UL|UL|UL|UL|UL|UL|";
      |   ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:654:14: error: ‘SlPreconfigGeneralNr’ is not a member of ‘ns3::LteRrcSap’
  654 |   LteRrcSap::SlPreconfigGeneralNr slPreconfigGeneralNr;
      |              ^~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:655:3: error: ‘slPreconfigGeneralNr’ was not declared in this scope
  655 |   slPreconfigGeneralNr.slTddConfig = tddUlDlConfigCommon;
      |   ^~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:658:14: error: ‘SlUeSelectedConfig’ is not a member of ‘ns3::LteRrcSap’
  658 |   LteRrcSap::SlUeSelectedConfig slUeSelectedPreConfig;
      |              ^~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:659:3: error: ‘slUeSelectedPreConfig’ was not declared in this scope
  659 |   slUeSelectedPreConfig.slProbResourceKeep = 0;
      |   ^~~~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:661:14: error: ‘SlPsschTxParameters’ is not a member of ‘ns3::LteRrcSap’
  661 |   LteRrcSap::SlPsschTxParameters psschParams;
      |              ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:662:3: error: ‘psschParams’ was not declared in this scope
  662 |   psschParams.slMaxTxTransNumPssch = 5;
      |   ^~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:664:14: error: ‘SlPsschTxConfigList’ is not a member of ‘ns3::LteRrcSap’
  664 |   LteRrcSap::SlPsschTxConfigList pscchTxConfigList;
      |              ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:665:3: error: ‘pscchTxConfigList’ was not declared in this scope
  665 |   pscchTxConfigList.slPsschTxParameters [0] = psschParams;
      |   ^~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:672:14: error: ‘SidelinkPreconfigNr’ is not a member of ‘ns3::LteRrcSap’
  672 |   LteRrcSap::SidelinkPreconfigNr slPreConfigNr;
      |              ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:673:3: error: ‘slPreConfigNr’ was not declared in this scope
  673 |   slPreConfigNr.slPreconfigGeneral = slPreconfigGeneralNr;
      |   ^~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:675:47: error: ‘slFreConfigCommonNr’ was not declared in this scope
  675 |   slPreConfigNr.slPreconfigFreqInfoList [0] = slFreConfigCommonNr;
      |                                               ^~~~~~~~~~~~~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:678:13: error: base operand of ‘->’ is not a pointer
  678 |   nrSlHelper->InstallNrSlPreConfiguration (ueVoiceNetDev, slPreConfigNr);
      |             ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:687:23: error: base operand of ‘->’ is not a pointer
  687 |   stream += nrSlHelper->AssignStreams (ueVoiceNetDev, stream);
      |                       ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:705:7: error: ‘LteSlTft’ was not declared in this scope
  705 |   Ptr<LteSlTft> tft;
      |       ^~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:705:15: error: template argument 1 is invalid
  705 |   Ptr<LteSlTft> tft;
      |               ^
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:722:31: error: ‘LteSlTft’ is not a class, namespace, or enumeration
  722 |       tft = Create<LteSlTft> (LteSlTft::Direction::BIDIRECTIONAL, LteSlTft::CommType::GroupCast, groupAddress4, dstL2Id);
      |                               ^~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:722:67: error: ‘LteSlTft’ is not a class, namespace, or enumeration
  722 |       tft = Create<LteSlTft> (LteSlTft::Direction::BIDIRECTIONAL, LteSlTft::CommType::GroupCast, groupAddress4, dstL2Id);
      |                                                                   ^~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:724:17: error: base operand of ‘->’ is not a pointer
  724 |       nrSlHelper->ActivateNrSlBearer (finalSlBearersActivationTime, ueVoiceNetDev, tft);
      |                 ^~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:742:31: error: ‘LteSlTft’ is not a class, namespace, or enumeration
  742 |       tft = Create<LteSlTft> (LteSlTft::Direction::BIDIRECTIONAL, LteSlTft::CommType::GroupCast, groupAddress6, dstL2Id);
      |                               ^~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:742:67: error: ‘LteSlTft’ is not a class, namespace, or enumeration
  742 |       tft = Create<LteSlTft> (LteSlTft::Direction::BIDIRECTIONAL, LteSlTft::CommType::GroupCast, groupAddress6, dstL2Id);
      |                                                                   ^~~~~~~~
/home/abdelmadjid/Downloads/ns-allinone-3.37/ns-3.37/scratch/cttc-nr-v2x-demo-simple.cc:744:17: error: base operand of ‘->’ is not a pointer
  744 |       nrSlHelper->ActivateNrSlBearer (finalSlBearersActivationTime, ueVoiceNetDev, tft);
      |                 ^~
gmake[3]: *** [scratch/CMakeFiles/scratch_cttc-nr-v2x-demo-simple.dir/build.make:78: scratch/CMakeFiles/scratch_cttc-nr-v2x-demo-simple.dir/cttc-nr-v2x-demo-simple.cc.o] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:19233: scratch/CMakeFiles/scratch_cttc-nr-v2x-demo-simple.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:19239: scratch/CMakeFiles/scratch_cttc-nr-v2x-demo-simple.dir/rule] Error 2
gmake: *** [Makefile:6446: scratch_cttc-nr-v2x-demo-simple] Error 2


Tom Henderson

unread,
Jul 19, 2023, 3:09:27 PM7/19/23
to ns-3-...@googlegroups.com, Anthony R
The errors look to me that you are trying to run this example program on
some repository or branches that are not supporting V2X.

You need to clone a specific repository (not ns-allinone-3.37) for
NR-V2X support, and you need to then checkout a specific branch of the
nr module to match this repository. Please see the NR V2X documentation
on this.
>  (https://gitlab.com/cttc-lena/nr/-/tree/nr-v2x-dev/examples/nr-v2x-examples <https://gitlab.com/cttc-lena/nr/-/tree/nr-v2x-dev/examples/nr-v2x-examples>)
>
> So I wanted to know if anyone had any ideas so that I could correct
> my errors and be able to use the sidelink of the NR-V2X module?
>
> Thank you in advance for your help!!
> Have a nice day,
> Ringeissen Anthony
>
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting>
> ---
> You received this message because you are subscribed to the Google
> Groups "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ns-3-users+...@googlegroups.com
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/452a72dd-f072-41a3-97ed-5e984629c0e5n%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/452a72dd-f072-41a3-97ed-5e984629c0e5n%40googlegroups.com?utm_medium=email&utm_source=footer>.

ABDULJABBAR ALSHARIF

unread,
Jul 19, 2023, 5:04:16 PM7/19/23
to ns-3-...@googlegroups.com, Anthony R
this error cmake file try to check the path of cmake  cxx or update your
 cmake some time happens if the terminal kept loading for longer process get stack?



Jabbar
" if you want the rainbow you have deal with rains"




To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/5784b1ca-8799-db25-0cab-7a54b29cf0d9%40tomh.org.

ABDULJABBAR ALSHARIF

unread,
Jul 19, 2023, 5:11:26 PM7/19/23
to ns-3-...@googlegroups.com, Anthony R
hi,

reconfigure  cmake from the path directory without creating run   #cmake --build . -j from  run ning directory 

Jabbar 
" if you want the rainbow you have deal with rains"



Anthony R

unread,
Jul 21, 2023, 4:16:35 AM7/21/23
to ns-3-users
okay I did that and it seems to work now, thanks for your help
Reply all
Reply to author
Forward
0 new messages