首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试在TinyOS中编译时出错

尝试在TinyOS中编译时出错
EN

Stack Overflow用户
提问于 2017-08-23 16:27:02
回答 1查看 158关注 0票数 0

我试图在Ubuntu16.06安装的TinyOS中运行Blink应用程序。

代码语言:javascript
复制
`make telosb reinstallbsl,/dev/ttyUSB0`

它显示出

代码语言:javascript
复制
../../support/make/Makerules:56:  Old TinyOS environment variables detected.

This version of the TinyOS make system has deprecated the TOSDIR, TOSROOT,
and MAKERULES environment variables. Generally, you shouldn't need
environment variables with this version of the TinyOS make system, and if
you are not using any older versions of TinyOS on your system you should
delete these environment variables. If you wish to leave these variables
but hide this warning, set the TINYOS_NO_DEPRECATION_WARNING environment
variable. If you are looking to compile against a different TinyOS tree,
configure the makefiles used when compiling, or setup an external TinyOS
tree with additional source files, please visit
https://github.com/tinyos/tinyos-main/blob/master/support/make/README.md
for more information about the TinyOS make system.

再往下看,它显示:

代码语言:javascript
复制
`<JAVA_HOME> /lib/ext exists, extensions mechanism no longer supported; 
Use -classpath instead.
.Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
../../support/make/Makerules:362: recipe for target 'wiring_check' failed
make: *** [wiring_check] Error 1`

当我检查java -version的时候,它显示,

代码语言:javascript
复制
<JAVA_HOME>/lib/ext exists, extensions mechanism no longer supported; Use -classpath instead.
.Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

请告诉我如何改正这个错误。

EN

回答 1

Stack Overflow用户

发布于 2017-12-09 04:25:47

您安装了tinyOS 3。与tinyOS 2-不同,它不会使用TOSDIR、TOSROOT和MAKERULES环境变量。您应该安装tinyos2-1-2并使用该环境变量。或者,您应该遵循tinyOS 3的安装指南-并删除所有旧版本的环境变量。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45834476

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档