Hi there
Thanks for your prompt reply, I have run the following:
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P tinyos-2.x
Which created, amongst many other things the directory tymo under
$TOSROOT/TOS/LIB/NET
Within here are sub-directories for mh and dymo.
I then altered my Makefile as follows to incorporate these new directories:
COMPONENT=TymoAppC
CFLAGS += -I$(TOSDIR)/lib/net \
-I$(TOSDIR)/lib/net/tymo \
-I$(TOSDIR)/lib/net/tymo/dymo \
-I$(TOSDIR)/lib/net/tymo/mh \
-I.
TFLAGS += -I(TOSDIR)/types
include $(MAKERULES)
Confusingly running make micaz sim gives the following results:
In file included from /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHServiceC.nc:33,
from /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
from TymoAppC.nc:8:
In component `MHPacketM':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:38: conflicting types for
`Packet.getPayload'
/opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of
`Packet.getPayload'
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function
`Packet.getPayload':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:39: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function
`Packet.payloadLength':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:48: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function
`Packet.setPayloadLength':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:52: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function
`MHPacket.destination':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:66: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function
`MHPacket.isForMe':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:70: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:70: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function
`MHPacket.setDestination':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:74: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function
`MHPacket.setSource':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:78: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function
`MHPacket.setType':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:82: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function `MHPacket.source':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:87: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function `MHPacket.type':
/opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:91: warning: passing argument
2 of `SubPacket.getPayload' makes pointer from integer without a cast
In file included from /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHServiceC.nc:34,
from /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
from TymoAppC.nc:8:
In component `ForwardingEngineM':
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: In function
`SubReceive.receive':
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:97: warning: passing
argument 2 of `PPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:103: warning: passing
argument 2 of `PPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: In function
`Timer.fired':
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:158: warning: passing
argument 2 of `PPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: At top level:
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:201: conflicting types
for `AMSend.getPayload'
/opt/tinyos-2.x/tos/interfaces/AMSend.nc:125: previous declaration of
`AMSend.getPayload'
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: In function
`AMSend.getPayload':
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:202: warning: passing
argument 2 of `PPacket.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: At top level:
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:218: conflicting types
for `Intercept.forward'
/opt/tinyos-2.x/tos/interfaces/Intercept.nc:31: previous declaration of
`Intercept.forward'
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:40:
`Receive.payloadLength' not implemented
/opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:40: `Receive.getPayload'
not implemented
In file included from
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/sim/DymoServiceC.nc:34,
from /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
from TymoAppC.nc:8:
In component `DymoPacketM':
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function
`DymoPacket.getType':
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:44: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function
`DymoPacket.getSize':
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:49: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function
`DymoPacket.createRM':
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:60: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function
`DymoPacket.addInfo':
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:90: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function
`processMessage.runTask':
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:132: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:148: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a cast
make: *** [sim-exe] Error 1
----------------------------------------
> Date: Thu, 10 Jul 2008 08:49:32 +0200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [Tinyos-help] Tymo and TOSSIM not compiling
> CC: [email protected]
>
> On Wed, Jul 9, 2008 at 10:03 PM, Anthony Smee wrote:
>>
>> Hi there
>>
>> I am trying to get the Tymo tutorial up and running and have put together my
>> App and C files and on compiling I have the following errors (make micaz
>> sim):
>>
>> In component `MHPacketM':
>> /opt/tinyos-2.x/tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.group' not
>> implemented
>> /opt/tinyos-2.x/tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.setGroup'
>> not implemented
>> /opt/tinyos-2.x/tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.localGroup'
>> not implemented
>> /opt/tinyos-2.x/tos/lib/net/dymo/DymoServiceC.nc:6:28: error:
>> StorageVolumes.h: No such file or directory
>> In file included from TymoAppC.nc:8:
>> In component `DymoNetworkC':
>>
>> I have today downloaded the Tymo files from SourceForge.net, it is
>> tymo0.2beta. I installed the latest RPM files from the Tinyos.net last month
>> for TinyOS.
>>
>> I am not sure if I have made a mistake in my code, or if I am missing a file
>> or the wrong version.
>
> That's it. The version code from the tymo sourceforge project is
> deprecated, please use the latest CVS code of TinyOS instead.
>
> Regards,
> Romain
_________________________________________________________________
Invite your Facebook friends to chat on Messenger
http://clk.atdmt.com/UKM/go/101719649/direct/01/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help