打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ARCH linux建立contiki开发环境

 

  1. 安装 Instant Contiki运行环境
 pacman -S  base-devel git jdk8-openjdk jre8-openjdk apache-ant 

    2.从contiki分支下载源码文件。 

https://github.com/JSLeo/contiki.git

    或者从官方分支clone源码文件

https://github.com/contiki-os/contiki.git

    3.下载并且安装msp430的编译工具

    下载地址:

http://simonduq.github.io/resources/mspgcc-4.7.2-compiled.tar.bz2

    或者:

aur/mspgcc-gcc-bin 20120406-1 (0) (0.00)

-------------------     (预留:下载不下来的直接联系我)

   4.将环境变量添加到系统的profile中。通过source更新系统变量.

vi /etc/profile# Set our default pathPATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/msp430/bin"export PATH

      更新系统变量:

source  /etc/profile [leonard@Archlinux opt]$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/msp430/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl[leonard@Archlinux opt]$ msp430-gcc -vUsing built-in specs.Reading specs from /opt/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/lib/msp430mcu.specCOLLECT_GCC=msp430-gccCOLLECT_LTO_WRAPPER=/opt/msp430/bin/../libexec/gcc/msp430/4.7.0/lto-wrapperTarget: msp430Configured with: ../gcc-4.7.0/configure --prefix=/home/user/local/msp430 --target=msp430 --enable-languages=c,c++ --program-prefix=msp430-Thread model: singlegcc version 4.7.0 20120322 (mspgcc dev 20120716) (GCC) 

        5.进入下载contiki/tools/cooja的目录,运行ant run。

[leonard@Archlinux tools]$ cd cooja/[leonard@Archlinux cooja]$ lsapps  build  build.xml  config  dist  examples  java  lib[leonard@Archlinux cooja]$ ant run

       熟悉的界面就出现在眼前了。                     

            

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
如何在CentOS上使用高版本的GCC编译
交叉编译git
编译U-Boot时command not found的解决方法
交叉编译模拟环境sbox2的使用
安装交叉编译工具arm-linux-gcc-4.3.2
MySQL 8.0.22 源码编译安装全过程
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服