tags:

views:

321

answers:

3

Hello everyone,

I am a new in Tinyos.

I am following the tinyos Tutorial lesson 3: Mote-mote radio communication.

When I use 'make' to compile the program BlinkToRadio in lesson 3, I got a error message:

make: *** No rule to make target 'micaz'. Stop.

But when I compile the program Blink, it works. So I dont think its the problem in enviorement variables.

Can anyone help me what it the problem.

Thank you!

A: 

Have you defined MAKERULES?

You can check the definition of MAKERULES this way :

echo $MAKERULES

If not defined, you can define MAKERULES this way:

export MAKERULES=/opt/tinyos-2.1.0/support/make/MAKERULES

Regards,

Akshaya Aradhya

Teaching Assistant, Department of Computer Science, SMU

Akshaya Aradhya
A: 

I have encountered the same problem. But, I have defined MAKERULES:

echo $MAKERULES
/opt/tinyos-2.1.1/support/make/Makerules

How can i solve this problem?

Ikbear
A: 

Are you using sudo when you're trying to build the app? sudo will likely reset all your environment variable while you're using sudo. You can set env_keep in the /etc/sudoers file to keep your $MAKERULES

Defaults env_keep += "MAKERULES"

or you could look at this

Of course, it could be something entirely different....

Have you defined a Makefile? The Makefile for lesson 3 should be:

COMPONENT=BlinkToRadioAppC
include $(MAKERULES)
jaffachief