Hi all, I was trying to add component MultiHopLqiP. At the very beginning, the compiler said the component not found, then I add the the following line to Makefile:
PFLAGS += -I/Users/jinhongxu/tinyos-2.x/tos/lib/net/lqi/ Then it seems the component has been found. However, here comes the following problem that the component cannot find its used interface or other component it is trying to use and giving some error information like following: n component `LqiRoutingEngineP': /Users/jinhongxu/tinyos-2.x/tos/lib/net/lqi/LqiRoutingEngineP.nc:60: interface CC2420Packet not found /Users/jinhongxu/tinyos-2.x/tos/lib/net/lqi/LqiRoutingEngineP.nc: In function `Receive.receive': /Users/jinhongxu/tinyos-2.x/tos/lib/net/lqi/LqiRoutingEngineP.nc:339: interface has no command or event named `getLqi' In file included from /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:37, from /Users/jinhongxu/tinyos-2.x/tos/lib/net/lqi/MultiHopLqiP.nc:103, from APSAppC.nc:36: In C file: /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420.h: At top level: /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420.h:120: syntax error before `nx_bool' /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420.h:120: warning: no semicolon at end of struct or union /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420.h:121: syntax error before `ack' /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420.h:122: syntax error before `timesync' /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420.h:132: syntax error before `}' /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420.h:132: warning: type defaults to `int' in declaration of `cc2420_metadata_t' /Users/jinhongxu/tinyos-2.x/tos/chips/cc2420/CC2420.h:132: warning: data definition has no type or storage class In file included from /Users/jinhongxu/tinyos-2.x/tos/lib/net/lqi/MultiHopLqiP.nc:103, ...... Did anyone meet this kind of problem when trying to use some components? This problem is not happening to all the components and I can successfully use TimerMilliC and LedsC, but the problems come up when I try to use MultiHopLqiP and CC2420ControlC Thanks -- Jinhong Xu Indiana University Bloomington Department of Computer Science
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help