thexaib / ctp-castalia

Automatically exported from code.google.com/p/ctp-castalia
0 stars 0 forks source link

Make errors #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. following your directions to use CTP within Castalia

What is the expected output? What do you see instead?
expected is there is no bugs and errors.
after copying included files and follow make clean, ./makemake, make i get the 
following output

-Isrc/node/mobilityManager -Isrc/node/mobilityManager/lineMobilityManager 
-Isrc/node/mobilityManager/noMobilityManager -Isrc/node/resourceManager 
-Isrc/node/sensorManager -Isrc/physicalProcess 
-Isrc/physicalProcess/carsPhysicalProcess 
-Isrc/physicalProcess/customizablePhysicalProcess -Isrc/wirelessChannel 
-I/home/laith/omnetpp/omnetpp-4.1/include -o 
out/gcc-release//src/node/application/ctpTestingApplication/CtpTestingApplicatio
n.o src/node/application/ctpTestingApplication/CtpTestingApplication.cc
In file included from 
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:19:
src/node/application/ctpTestingApplication/CtpTestingApplication.h:54: error: 
‘ApplicationGenericDataPacket’ has not been declared
src/node/application/ctpTestingApplication/CtpTestingApplication.cc: In 
function ‘cObject* __uniquename_21()’:
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:21: error: 
cannot allocate an object of abstract type ‘CtpTestingApplication’
src/node/application/ctpTestingApplication/CtpTestingApplication.h:34: note:   
because the following virtual functions are pure within 
‘CtpTestingApplication’:
src/node/application/VirtualApplication.h:63: note:     virtual void 
VirtualApplication::fromNetworkLayer(ApplicationPacket*, const char*, double, 
double)
src/node/application/ctpTestingApplication/CtpTestingApplication.cc: At global 
scope:
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:44: error: 
variable or field ‘fromNetworkLayer’ declared void
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:44: error: 
‘ApplicationGenericDataPacket’ was not declared in this scope
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:44: error: 
‘rcvPacket’ was not declared in this scope
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:45: error: 
expected primary-expression before ‘const’
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:45: error: 
expected primary-expression before ‘double’
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:45: error: 
expected primary-expression before ‘double’
src/node/application/ctpTestingApplication/CtpTestingApplication.cc: In member 
function ‘void CtpTestingApplication::update_packets_received(int, int)’:
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:78: error: 
no matching function for call to ‘CtpTestingApplication::declareOutput(const 
char [17], int&)’
src/helpStructures/CastaliaModule.h:87: note: candidates are: void 
CastaliaModule::declareOutput(const char*)
src/node/application/ctpTestingApplication/CtpTestingApplication.cc: In member 
function ‘void CtpTestingApplication::update_ddr_per_sn(int, int)’:
src/node/application/ctpTestingApplication/CtpTestingApplication.cc:88: error: 
no matching function for call to ‘CtpTestingApplication::declareOutput(const 
char [9], int&)’
src/helpStructures/CastaliaModule.h:87: note: candidates are: void 
CastaliaModule::declareOutput(const char*)
make: *** 
[out/gcc-release//src/node/application/ctpTestingApplication/CtpTestingApplicati
on.o] Error 1

What version of the product are you using? On what operating system?
I am using version 1.01, under ubuantu 10.4 LTS (Castalia 3.2, omnetpp 4.1)

Please provide any additional information below.

Original issue reported on code.google.com by jordan.j...@yahoo.com on 21 Sep 2011 at 4:48

GoogleCodeExporter commented 8 years ago
Ctp-castalia will not work on Castalia 3.2 due to some changes. An updated 
version already exist but has not been tested. It will be available by the end 
of October (sorry but I have my phd defense before :) ). Until that date please 
switch to Castalia 3.1 (check issue 1 before) or Castalia 3.0.

Original comment by ucolesa...@gmail.com on 29 Sep 2011 at 3:25

GoogleCodeExporter commented 8 years ago

Original comment by ucolesa...@gmail.com on 29 Sep 2011 at 3:35

GoogleCodeExporter commented 8 years ago
Dear sir,
Thanks for your replay, and hope to be always in contact with us to benefit of 
your experience.

hope you best always. 

Original comment by jordan.j...@yahoo.com on 4 Oct 2011 at 10:34

GoogleCodeExporter commented 8 years ago
Ok here's what you need to do to get the released CTP code to work with 
Castalia 3.2 (or the upcoming 3.3)

in CtpTestingApplication.cc and CtpTestingApplication.h 
- replace ApplicationGenericDataPacket with ApplicationPacket
in CtpTestingApplication.cc
- comment out the whole update_packets_received() method
- delete   declareOutput("My Stats", SN) ; from the update_ddr_perSN() method
  and put declareOutput("My Stats") ;  at the startup() method

in mac/cc2420Mac/CC2420Mac.cc
- replace instances of getRoutingInteractionControl() with 
getNetMacInfoExchange()
- replace getMacInteractionControl() with getMacRadioInfoExchange()
- swap RSSI with LQI in the right hand side of the assignments (little bug in 
the original code)

Optional, depends on platform (I had to do it for my Mac OSX)
in mac/cc2420Mac/TosEnvironment.h  AND in 
routing/ctpNoe/components/TosEnvironment.h:79
- line 79 replace 0x100000000 with 0xffffffff

in routing/ctpNoe/components/CtpForwardingEngine.cc
- replace line 1080 netPkt->getNetMacInfoExchange().source = 
selfAddress.c_str() ; // ok
  with            netPkt->setSource(selfAddress.c_str()) ; // ok
- replace instances of getRoutingInteractionControl() with 
getNetMacInfoExchange()   (lines 213, 1053, 1081)

in routing/ctpNoe/components/CtpRoutingEngine.cc  AND 
routing/ctpNoe/components/DualBuffer.cc AND 
routing/ctpNoe/components/LinkEstimator.cc
- replace instances of getRoutingInteractionControl() with 
getNetMacInfoExchange() 

Original comment by bou...@gmail.com on 18 Oct 2011 at 10:29

GoogleCodeExporter commented 8 years ago
Please check the new CtpCastalia-beta-1.1 release in the download section. Now 
it supports Castalia 3.2.

Original comment by ucolesa...@gmail.com on 4 Jan 2012 at 1:44