Hi, Which version of TinyOS are you using? For TinyOS-1.x the command to build the TOSSIM executable is indeed "make pc". If you're using TinyOS-1.x, maybe you forgot to include the Makerules file in your make file. See for instance the Makefile of the Blink application in the app folder in your TinyOS intallation. For more details on TOSSIM for TinyOS-1.x see http://www.tinyos.net/tinyos-1.x/doc/nido.pdf
In TinyOS-2.x the command to build the TOSSIM library is now "make micaz sim". Simulation in TinyOS-2.x is quite different from the approach in TinyOS-1.x. If you're using TinyOS-2.x you really should have a look at the tutorial: http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson11.html Cheers, Urs pinku bajpai schrieb: > hello Hunkler > I want to simulate the code on pc. and i wont be installing it on the > mote, i just want to run it on the Tossim simulator. So please now tell > me whats the reason of this kind of error, do i need to specify any > special code in makerules or makefile of the application so that it can > be compiled for the simulator(pc). > > > Regards > > > >> From: Urs Hunkeler <[EMAIL PROTECTED]> >> To: pinku bajpai <[EMAIL PROTECTED]>, >> [email protected] >> Subject: Re: [Tinyos-help] Compilation error"Make:*** no rule to make >> target pc" >> Date: Wed, 04 Apr 2007 09:51:17 +0200 >> >> Hi, >> >> What do you want to make exactly on the PC? If you want to compile the >> code on a PC, and then install it on a mote, you have to specify the >> type of mote for which you want to compile the code, for instance: >> make micaz >> >> If you want to simulate the code on the PC, you still need to specify >> the hardware type to simulate, plus that it should be simulated. >> Something like: >> make micaz sim >> >> If you want to actually run the WSN software on the PC: most likely you >> don't actually want to compile the TinyOS nesC code for the PC platform. >> You probably want to run the PC side of the code, which might be written >> in Java and probably will also be compiled when you compile the code for >> the motes. If the PC code is in Java and in a separate directory, go to >> this directory and type make there. >> >> Cheers, >> Urs >> >> pinku bajpai schrieb: >> > Hii >> > I am working on telemonitoring health system. Codeblue is the >> > application which is also being developed for the same. Whenever i try >> > to compile this application on pc, i get error:" Make:*** no rule to >> > make target pc.stop.". I have tried a lot to compile it on pc, but the >> > same error comes again and again. Please tell me where i have to make >> > changes (in makefile or makerule) so that application could be compiled >> > on pc. >> > please help me, its urgent. >> > thx in advance. _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
