Discussion:
[Shimmer-users] Problem compiling HelloWorld application from Shimmer User Manual
scott coleman
2012-09-19 20:09:16 UTC
Permalink
I'm new to Shimmer (and Linux).I'm trying to compile and run the HelloWorld
app and am getting the following errors:

In component `HelloWorldC':
HelloWorldC.nc: In function `sendData.runTask':
HelloWorldC.nc:28: `Blueooth' undeclared (first use in this function)
HelloWorldC.nc:28: (Each undeclared identifier is reported only once
HelloWorldC.nc:28: for each function it appears in.)
HelloWorldC.nc: In function `Timer.fired':
HelloWorldC.nc:33: implicit declaration of function `senddata'
HelloWorldC.nc:33: only tasks can be posted
HelloWorldC.nc: In function `Bluetooth.connectionMade':
HelloWorldC.nc:37: interface has no command or event named `led2on'
HelloWorldC.nc: In function `Bluetooth.connectionClosed':
HelloWorldC.nc:44: interface has no command or event named `led2off'
HelloWorldC.nc: At top level:
HelloWorldC.nc:47: `DataAvailable' is not in interface `Bluetooth'
HelloWorldC.nc:17: `Bluetooth.dataAvailable' not implemented
make: *** [exe0] Error 1

I'm at a loss on how to proceed
BTW I'm using the compressex linux image running in VMWare player from the
live dist disk.
My files are attached
Eric Decker
2012-09-19 23:11:00 UTC
Permalink
The files you incuded are HelloWorldAppC.nc

while the compiler is bitching about HelloWorldC.nc That's probably a
clue.
Post by scott coleman
I'm new to Shimmer (and Linux).I'm trying to compile and run the
HelloWorldC.nc:28: `Blueooth' undeclared (first use in this function)
HelloWorldC.nc:28: (Each undeclared identifier is reported only once
HelloWorldC.nc:28: for each function it appears in.)
HelloWorldC.nc:33: implicit declaration of function `senddata'
HelloWorldC.nc:33: only tasks can be posted
HelloWorldC.nc:37: interface has no command or event named `led2on'
HelloWorldC.nc:44: interface has no command or event named `led2off'
HelloWorldC.nc:47: `DataAvailable' is not in interface `Bluetooth'
HelloWorldC.nc:17: `Bluetooth.dataAvailable' not implemented
make: *** [exe0] Error 1
I'm at a loss on how to proceed
BTW I'm using the compressex linux image running in VMWare player from the
live dist disk.
My files are attached
_______________________________________________
Shimmer-users mailing list
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
--
Eric B. Decker
Senior (over 50 :-) Researcher
mike healy
2012-09-20 10:18:17 UTC
Permalink
Hi Scott,

As Eric mentioned you don't have HelloWorldC.nc attached, so it's difficult
to tell what exactly is going wrong.

As a sanity check i tried running the HelloWorld app as in the manual
(copied and pasted, so it's word for word). I did find two typos, but both
boot ready;
bool ready;
COMPONENT=TestBluetoothAppC
COMPONENT=HelloWorldAppC
(I see you've fixed this second error in your attached Makefile).
scott coleman
2012-09-20 16:58:44 UTC
Permalink
Thanks, that was it. Should have caught that on my own.
Post by mike healy
Hi Scott,
As Eric mentioned you don't have HelloWorldC.nc attached, so it's
difficult to tell what exactly is going wrong.
As a sanity check i tried running the HelloWorld app as in the manual
(copied and pasted, so it's word for word). I did find two typos, but both
boot ready;
bool ready;
COMPONENT=TestBluetoothAppC
COMPONENT=HelloWorldAppC
(I see you've fixed this second error in your attached Makefile).
Loading...