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 system-wide*
Makerules:165: *** mica pc all 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 -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]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help