TinyOS 学习笔记2 2010.8.3 3. 测试 TinyOS 中的 Toosim make micaz sim 提示找不到 python2.5 查看本机 python 的版本,我的版本为 2.6 进入 /opt/tinyos-2.1.1/support/make/sim.extra 修改 python 的版本 PYTHON_VERSION=2.6 重新 make micazsim 提示 ***
TinyOS 学习笔记2
2010.8.3
3. 测试 TinyOS 中的 Toosim
make micaz sim
提示找不到 python2.5
查看本机 python 的版本,我的版本为 2.6
进入 /opt/tinyos-2.1.1/support/make/sim.extra
修改 python 的版本 PYTHON_VERSION=2.6
重新 make micazsim
提示 *** Successfullybuilt micaz TOSSIM library. 则可运行 tossim 。
4. 安装 Eclipse 以及 TinyOS 的 IDE-Yeti2
1 )下载 ,解压 Eclipse
Eclipse ,在桌面创建启动器,连接 Eclipse.
2) 参考 http://tos-ide.ethz.ch/wiki/index.php
Help->Install New Software
3) 点击 Add , Name:Yeti2 , location : http://tos-ide.ethz.ch/update/site.xml
4) next 等待更新
5 )选择如下,进行安装
6 ) 安装 Graphical Editing Framework
若出现如下错误:
Cannot complete the install because one or more required items could not be found.
Software being installed: Yeti 2 - TinyOS Debugger (optional) 1.2.18 (tinyos.yeti.debugger.feature.group 1.2.18)
Missing requirement: Yeti 2 - TinyOS Debugger (optional) 1.2.18 (tinyos.yeti.debugger.feature.group 1.2.18) requires 'org.eclipse.cdt.debug.core 0.0.0' but it could not be found
在安装Eclipse时解压错误,导致一些文件没有正确安装,卸载Eclipse重新安装,注意是先解压后再拷贝到相应的目录(使用tar出错的),再次安装问题解决。
7 )安装完毕,设置环境变量
Window->Preferences->TinyOS->Environments
检查各个目录,点击 Apply , OK ,设置完毕。
8 )检查 TinyOS 的安装
TinyOS->CheckInstallation(需要新建一个TinyOS项目才会出来此选项,在上部Window旁)
我的返回: Done
Errors : 0
Warnings : 1
警告的部分:
Test:Environment variables
Description: Compare the environment variables known toEclipse with the variables known to the shell
Environment variables differ, this can lead to failureswhen compiling or debugging an application.
CLASSPATH:
Eclipse = ''
Shell =':/opt/tinyos-2.1.1/support/sdk/java'
LESSCLOSE:
Eclipse = ''
Shell ='/usr/bin/lesspipe %s %s'
LESSOPEN:
Eclipse = ''
Shell ='| /usr/bin/lesspipe %s'
LS_COLORS:
Eclipse = ''
Shell =''
MAKERULES:
Eclipse = ''
Shell ='/opt/tinyos-2.1.1/support/make/Makerules'
TOSDIR:
Eclipse = ''
Shell ='/opt/tinyos-2.1.1/tos'
TOSROOT:
Eclipse = ''
Shell ='/opt/tinyos-2.1.1'
Status: warning
Message: Not all environment variables are thesame
警告未解决!!!