Did you do the "type ncc" and get something valid? The error indicates that the makefile can't find "ncc" MS
wafa jaballah wrote: > Hello ! > > I have checked : the nesc compiler is installed and configured also in > my PATH. > I have still the problem of : - MAIN.EXE is not found in build/pc > - ncc not found. > > What it is probably the origin of these errors, though I have nesc > Installed? > Best Regards, > > > 2009/3/28 Michael Schippling <[email protected] <mailto:[email protected]>> > > Looks like you don't have the NESCC compiler installed, > or more likely, in your PATH: > *make: ncc: Command not found > > Try this: > type ncc > you should get something like: > ncc is /usr/bin/ncc > > If not look for "ncc" in /usr/bin and elsewhere and search > this list for advice on setting your PATH variable. > > MS > > wafa jaballah wrote: > > Hello all > > I'm a new in programming in TinyOS and I have a question about > compiling an application. > In fact, I want to check the platforms supported by this > applications using the following command : > > *$ make tos.th <http://tos.th> <http://tos.th> system-wide* > Makerules:165: *** mica pc all tos.th <http://tos.th> > <http://tos.th> system-wide > > > Usage: make <platform> > make all > make clean > make install[.n] <platform> > make reinstall[.n] <platform> # no rebuild of target > make docs <platform> > > Valid platforms are: mica pc > > Stop. > The I type the following command to compile the application > > *$ make pc* > mkdir -p build/pc > compiling sim to a pc binary > ncc -board=micasb -o build/pc/main.exe -g -O0 -pthread > -target=pc -Wall -Wshado > w -DDEF_TOS_AM_GROUP=0x7d -fnesc-nido-tosnodes=1000 > -fnesc-cfile=build/pc/app.c > sim.nc <http://sim.nc> <http://sim.nc> -lm > > *make: ncc: Command not found > make: *** [build/pc/main.exe] Error 127* > > I have take a look into the file MAKERULES in order to verify > > *BUILDDIR = build/$(PLATFORM) > MAIN_EXE = $(BUILDDIR)/main.exe > MAIN_SREC = $(BUILDDIR)/main.srec > > ifeq ($(PLATFORM), pc) > PFLAGS := -g -O0 -pthread $(PFLAGS) -fnesc-nido-tosnodes=1000 > -fnesc-cfile=$(BUILDDIR)/app.c > MAIN_TARGET = $(MAIN_EXE) > else > PFLAGS := -Os $(PFLAGS) -finline-limit=100000 > -fnesc-cfile=$(BUILDDIR)/app.c > MAIN_TARGET = $(MAIN_SREC) > endif > > NCC := $(NCC) -board=$(SENSORBOARD) > > > *I have realize that I don't have MAIN.EXE in the directory > BUILD/PC in my application. > I have attached the file MAKERULES. > > I don't know what is the problem? > Is there someone who could give me a hand ? > I will be very thankful. > > Best Regards, > * > * > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > <mailto:[email protected]> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > -- > Platform: WinXP/Cygwin > TinyOS version: 1.x, Boomerang > Programmer: MIB510 > Device(s): Mica2, MicaZ, Tmote > Sensor board: homebrew > > > > > -- > Wafa Ben Jaballah > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Platform: WinXP/Cygwin TinyOS version: 1.x, Boomerang Programmer: MIB510 Device(s): Mica2, MicaZ, Tmote Sensor board: homebrew _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
