Hi, The output executable is named "Driver" in your case,
Just type: ./Driver and it should start. ---- Best Regards, LIU Yu On Mon, Jul 5, 2010 at 10:05 PM, shri humrudha <shri_humru...@yahoo.co.in> wrote: > > Hi, > > I tried the make -f Makefile.Driver command. It gave me the following output. > > [r...@wsn2 RadioCountToLeds]# make -f Makefile.Driver > make iris sim > make[1]: Entering directory `/opt/tinyos-2.x/apps/RadioCountToLeds' > mkdir -p simbuild/iris > placing object files in simbuild/iris > writing XML schema to app.xml > compiling RadioCountToLedsAppC to object file sim.o > ncc -c -shared -fPIC -o simbuild/iris/sim.o -g -O0 -tossim > -fnesc-nido-tosnodes=1000 -fnesc-simulate > -fnesc-nido-motenumber=sim_node\(\) -fnesc-separator=__ -Wall -Wshadow > -Wnesc-all -target=iris -fnesc-cfile=simbuild/iris/app.c -board=micasb > -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 > -DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"root\" > -DIDENT_HOSTNAME=\"wsn2.igcar.erne\" -DIDENT_USERHASH=0xd5ee7925L > -DIDENT_TIMESTAMP=0x4c32b677L -DIDENT_UIDHASH=0xc4019eeaL -Wno-nesc-data-race > RadioCountToLedsAppC.nc -fnesc-dump=components -fnesc-dump=variables > -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs > -fnesc-dump=tags -fnesc-dumpfile=app.xml > compiling Python support and C libraries into pytossim.o, tossim.o, and > c-support.o > g++ -c -shared -fPIC -o simbuild/iris/pytossim.o -g -O0 > -DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"root\" > -DIDENT_HOSTNAME=\"wsn2.igcar.erne\" -DIDENT_USERHASH=0xd5ee7925L > -DIDENT_TIMESTAMP=0x4c32b677L -DIDENT_UIDHASH=0xc4019eeaL > /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.5 > -I/opt/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H > g++ -c -shared -fPIC -o simbuild/iris/tossim.o -g -O0 > -DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"root\" > -DIDENT_HOSTNAME=\"wsn2.igcar.erne\" -DIDENT_USERHASH=0xd5ee7925L > -DIDENT_TIMESTAMP=0x4c32b677L -DIDENT_UIDHASH=0xc4019eeaL > /opt/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.5 > -I/opt/tinyos-2.x/tos/lib/tossim > g++ -c -shared -fPIC -o simbuild/iris/c-support.o -g -O0 > -DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"root\" > -DIDENT_HOSTNAME=\"wsn2.igcar.erne\" -DIDENT_USERHASH=0xd5ee7925L > -DIDENT_TIMESTAMP=0x4c32b677L -DIDENT_UIDHASH=0xc4019eeaL > /opt/tinyos-2.x/tos/lib/tossim/hashtable.c -I/usr/include/python2.5 > -I/opt/tinyos-2.x/tos/lib/tossim > linking into shared object ./_TOSSIMmodule.so > g++ -shared -fPIC simbuild/iris/pytossim.o simbuild/iris/sim.o > simbuild/iris/tossim.o simbuild/iris/c-support.o -lstdc++ -o _TOSSIMmodule.so > copying Python script interface TOSSIM.py from lib/tossim to local directory > > *** Successfully built iris TOSSIM library. > make[1]: Leaving directory `/opt/tinyos-2.x/apps/RadioCountToLeds' > g++ -g -c -o Driver.o Driver.cpp -I../../tos/lib/tossim/ > g++ -o Driver Driver.o simbuild/iris/tossim.o simbuild/iris/sim.o > simbuild/iris/c-support.o > > > [r...@wsn2 RadioCountToLeds]# ls > app.xml Driver.cpp Makefile.Driver RadioCountMsg.class > RadioCountToLedsC.nc test.py _TOSSIMmodule.so > Driver Driver.cpp~ Makefile.Driver~ RadioCountMsg.java > RadioCountToLeds.h test.py~ TOSSIM.py > Driver.c Driver.o meyer-heavy.txt RadioCountMsg.py > README.txt topo.txt TOSSIM.pyc > Driver.c~ Makefile meyer-heavy.txt~ RadioCountToLedsAppC.nc > simbuild topo.txt~ > > > [r...@wsn2 RadioCountToLeds]# ./Driver.out > bash: ./Driver.out: No such file or directory > > Can you help me how to proceed?? > > Thanks. > > --- On Mon, 5/7/10, harsh...@cse.iitk.ac.in <harsh...@cse.iitk.ac.in> wrote: > > From: harsh...@cse.iitk.ac.in <harsh...@cse.iitk.ac.in> > Subject: Re: [*] Re: [Tinyos-help] How to use TOSSIM with C++?? > To: "LIU Yu" <pineapple....@gmail.com> > Cc: "shri humrudha" <shri_humru...@yahoo.co.in>, > tinyos-help@millennium.berkeley.edu > Date: Monday, 5 July, 2010, 3:19 PM > > Hi, > You have to type the command > make -f Makefile.Driver > This will generate a file called Driver.out. You should run it by giving > ./Driver.out > > I hope it works. > > -- > Harshal A. Waghmare, > IIT Kanpur, > India > > > > Hello, > > > > Please refer the C++ section in, > > > > http://docs.tinyos.net/index.php/TOSSIM > > > > on how to compile the Driver into executable. > > > > -- > > Best Regards, > > LIU Yu > > > > > > On Sun, Jul 4, 2010 at 10:09 PM, shri humrudha > > <shri_humru...@yahoo.co.in> wrote: > >> > >> Hi all, > >> > >> I am learning to use TOSSIM with C++. I followed the Lesson 11 TOSSIM > >> tutorial: > >> > >> http://www.tinyos.net/dist-2.0.0/tinyos-2.x/doc/html/tutorial/lesson11.html > >> > >> As per the tutorial I have created Driver.C and Makefile.Driver files. > >> > >> After that I dont know how to run the code? > >> > >> Pls help me out if any of you are familiar with it. > >> > >> Thanks for reading.. > >> > >> > >> _______________________________________________ > >> Tinyos-help mailing list > >> Tinyos-help@millennium.berkeley.edu > >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > _______________________________________________ > > Tinyos-help mailing list > > Tinyos-help@millennium.berkeley.edu > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help